#include <RooCruijff.hh>
Public Member Functions | |
RooCruijff (const char *name, const char *title, RooAbsReal &_x, RooAbsReal &_m0, RooAbsReal &_sigmaL, RooAbsReal &_sigmaR, RooAbsReal &_alphaL, RooAbsReal &_alphaR) | |
RooCruijff (const RooCruijff &other, const char *name=0) | |
virtual TObject * | clone (const char *newname) const |
virtual | ~RooCruijff () |
Protected Member Functions | |
Double_t | evaluate () const |
Protected Attributes | |
RooRealProxy | x |
RooRealProxy | m0 |
RooRealProxy | sigmaL |
RooRealProxy | sigmaR |
RooRealProxy | alphaL |
RooRealProxy | alphaR |
Definition at line 20 of file RooCruijff.hh.
RooCruijff::RooCruijff | ( | const char * | name, | |
const char * | title, | |||
RooAbsReal & | _x, | |||
RooAbsReal & | _m0, | |||
RooAbsReal & | _sigmaL, | |||
RooAbsReal & | _sigmaR, | |||
RooAbsReal & | _alphaL, | |||
RooAbsReal & | _alphaR | |||
) |
Referenced by clone().
RooCruijff::RooCruijff | ( | const RooCruijff & | other, | |
const char * | name = 0 | |||
) |
Definition at line 38 of file RooCruijff.cc.
00038 : 00039 RooAbsPdf(other, name), 00040 x("x", this, other.x), 00041 m0("m0", this, other.m0), 00042 sigmaL("sigmaL", this, other.sigmaL), 00043 sigmaR("sigmaR", this, other.sigmaR), 00044 alphaL("alphaL", this, other.alphaL), 00045 alphaR("alphaR", this, other.alphaR) 00046 { 00047 }
virtual RooCruijff::~RooCruijff | ( | ) | [inline, virtual] |
virtual TObject* RooCruijff::clone | ( | const char * | newname | ) | const [inline, virtual] |
Definition at line 30 of file RooCruijff.hh.
References RooCruijff().
00030 { 00031 return new RooCruijff(*this,newname); }
Double_t RooCruijff::evaluate | ( | ) | const [protected] |
Definition at line 49 of file RooCruijff.cc.
References alphaL, alphaR, m0, sigmaL, sigmaR, and x.
00050 { 00051 // build the functional form 00052 double sigma = 0.0; 00053 double alpha = 0.0; 00054 double dx = (x - m0); 00055 if(dx<0){ 00056 sigma = sigmaL; 00057 alpha = alphaL; 00058 } else { 00059 sigma = sigmaR; 00060 alpha = alphaR; 00061 } 00062 double f = 2*sigma*sigma + alpha*dx*dx ; 00063 return exp(-dx*dx/f) ; 00064 }
RooRealProxy RooCruijff::alphaL [protected] |
RooRealProxy RooCruijff::alphaR [protected] |
RooRealProxy RooCruijff::m0 [protected] |
RooRealProxy RooCruijff::sigmaL [protected] |
RooRealProxy RooCruijff::sigmaR [protected] |
RooRealProxy RooCruijff::x [protected] |