DAS  3.0
Das Analysis System
DLog

Description

Functor to get the first derivative of the logarithm of the Double Crystal Ball function

The reason for such a function is that the logarithm of a Gaussian is just a parabola, and its derivative a simple line. This provides an easy way to find the transition point.

Todo:
write LaTeX version

#include <DoubleCrystalBall.h>

+ Inheritance diagram for DLog:
+ Collaboration diagram for DLog:

Public Member Functions

void Eval (double *x) final
 
- Public Member Functions inherited from Base
double Z (double x)
 
void SetParameters (double *p)
 
double operator() (double *x, double *p)
 
 Base (TF1 *f=nullptr)
 
void dump ()
 
virtual ~Base ()=default
 

Additional Inherited Members

- Public Attributes inherited from Base
double N
 
double mu
 
double sigma
 
double kL
 
double nL
 
double kR
 
double nR
 
double AL
 
double AR
 
double BL
 
double BR
 
double z
 
double aR
 
double aL
 
double expaR2
 
double expaL2
 
double CR
 
double CL
 
double DD
 
double K
 
double result
 

Member Function Documentation

◆ Eval()

void Eval ( double *  x)
finalvirtual

Virtual method to calculate the value of the function, given the internal set of parameters and the value of x given as parameter.

Implements Base.

130 {
131  if (*x < kL) {
132  double B = nL/aL + aL;
133  result = (nL/sigma) / (B - z);
134  }
135  else if (*x < kR) {
136  result = -z/sigma;
137  }
138  else {
139  double B = nR/aR - aR;
140  result = -(nR/sigma) / (B + z);
141  }
142 }

The documentation for this struct was generated from the following files:
B
< SOURCE_DIR >< SOURCE_SUBDIR > B
Definition: Core-cfgcmd.txt:1
DAS::DoubleCrystalBall::Base::sigma
double sigma
width
Definition: DoubleCrystalBall.h:17
DAS::DoubleCrystalBall::Base::aL
double aL
normalised LHS turn-on point
Definition: DoubleCrystalBall.h:30
DAS::DoubleCrystalBall::Base::kL
double kL
LHS turn-on point.
Definition: DoubleCrystalBall.h:18
DAS::DoubleCrystalBall::Base::aR
double aR
normalised RHS turn-on point
Definition: DoubleCrystalBall.h:29
DAS::DoubleCrystalBall::Base::z
double z
normalised resolution
Definition: DoubleCrystalBall.h:28
DAS::DoubleCrystalBall::Base::nR
double nR
RHS power.
Definition: DoubleCrystalBall.h:21
DAS::DoubleCrystalBall::Base::result
double result
store last evaludation
Definition: DoubleCrystalBall.h:40
DAS::DoubleCrystalBall::Base::nL
double nL
LHS power.
Definition: DoubleCrystalBall.h:19
DAS::DoubleCrystalBall::Base::kR
double kR
RHS turn-on point.
Definition: DoubleCrystalBall.h:20