DAS  3.0
Das Analysis System
Integral

Description

Functor to get the integral of the Double Crystal Ball function

The integral is useful when cosntructing the response matrix.

Todo:
write LaTeX version

#include <DoubleCrystalBall.h>

+ Inheritance diagram for Integral:
+ Collaboration diagram for Integral:

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.

115 {
116  if (*x < kL) {
117  double R = aL/nL;
118  result = (N/K) * expaL2*pow(1-R*(aL+z),1-nL) / (R* (nL-1));
119  }
120  else if (*x < kR) {
121  result = (N/K) * (CL + sqrt(M_PI/2.)*(erf(z/sqrt(2)) + erf(aL/sqrt(2))));
122  }
123  else {
124  double R = aR/nR;
125  result = (N/K) * (CL + DD + expaR2 * ( 1. - pow(1-R*(aR-z),1-nR) ) / ( R* (nR-1) ) );
126  }
127 }

The documentation for this struct was generated from the following files:
DAS::DoubleCrystalBall::Base::aL
double aL
normalised LHS turn-on point
Definition: DoubleCrystalBall.h:30
DAS::DoubleCrystalBall::Base::expaR2
double expaR2
value of core at normalised RHS turn-on point
Definition: DoubleCrystalBall.h:32
DAS::DoubleCrystalBall::Base::DD
double DD
area in core
Definition: DoubleCrystalBall.h:37
DAS::DoubleCrystalBall::Base::CL
double CL
area in LHS tail
Definition: DoubleCrystalBall.h:36
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::N
double N
global normalisation (best is to fix it to one)
Definition: DoubleCrystalBall.h:15
DAS::DoubleCrystalBall::Base::expaL2
double expaL2
value of core at normalised LHS turn-on point
Definition: DoubleCrystalBall.h:33
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
DAS::DoubleCrystalBall::Base::K
double K
total normalisation
Definition: DoubleCrystalBall.h:38