#include <rarCruijff.hh>
Inheritance diagram for rarCruijff:
Public Member Functions | |
rarCruijff () | |
Trivial ctor. | |
rarCruijff (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarCruijff () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs. | |
RooAbsReal * | _m0 |
mean of the distribution | |
RooAbsReal * | _sigmaL |
Left handed width. | |
RooAbsReal * | _sigmaR |
Right handed width. | |
RooAbsReal * | _alphaL |
Left handed alpha. | |
RooAbsReal * | _alphaR |
Right haded alpha. | |
Private Member Functions | |
rarCruijff (const rarCruijff &) | |
ClassDef (rarCruijff, 0) |
Definition at line 24 of file rarCruijff.hh.
rarCruijff::rarCruijff | ( | ) |
rarCruijff::rarCruijff | ( | const char * | configFile, | |
const char * | configSec, | |||
const char * | configStr, | |||
rarDatasets * | theDatasets, | |||
RooDataSet * | theData, | |||
const char * | name, | |||
const char * | title | |||
) |
Default ctor.
configFile | The config file | |
configSec | The config section | |
configStr | The config string | |
theDatasets | Available datasets | |
theData | Default dataset for this PDF | |
name | The name | |
title | The title |
Definition at line 62 of file rarCruijff.cc.
References init().
00066 : rarBasePdf(configFile, configSec, configStr, 00067 theDatasets, theData, name, title), 00068 _x(0), _m0(0), _sigmaL(0), _sigmaR(0), _alphaL(0), _alphaR(0) 00069 { 00070 init(); 00071 }
rarCruijff::~rarCruijff | ( | ) | [virtual] |
rarCruijff::rarCruijff | ( | const rarCruijff & | ) | [private] |
rarCruijff::ClassDef | ( | rarCruijff | , | |
0 | ||||
) | [private] |
void rarCruijff::init | ( | ) | [protected, virtual] |
Initial function called by ctor.
init
is called by the ctor. It first creates the parameters by calling createAbsReal, and finally it builds the User-defined PDF.
Reimplemented from rarBasePdf.
Definition at line 82 of file rarCruijff.cc.
References _alphaL, _alphaR, _m0, rarBasePdf::_params, rarBasePdf::_pdfType, _sigmaL, _sigmaR, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().
Referenced by rarCruijff().
00083 { 00084 cout<<"init of rarCruijff for "<<GetName()<<":"<<endl; 00085 00086 // first get its obs 00087 _x=createAbsReal("x", "observable"); assert(_x); 00088 // Config pdf params 00089 // for example, a is now mean, b sigma, etc. 00090 // [myPdf Config] 00091 // configStr = UsrPdf 00092 // x = AbsReal Def 00093 // mean = AbsReal Def 00094 // sigmaL = AbsReal Def 00095 // sigmaR = AbsReal Def 00096 // alphaL = AbsReal Def 00097 // alphaR = AbsReal Def 00098 00099 // Default param creation 00100 _m0 = createAbsReal("mean", "#mu", 0, -10, 10); 00101 _sigmaL = createAbsReal("sigmaL", "#sigma_{L}", 0, -10, 10); 00102 _sigmaR = createAbsReal("sigmaR", "#sigma_{R}", 0, -10, 10); 00103 _alphaL = createAbsReal("alphaL", "#alpha_{L}", 0, -10, 10); 00104 _alphaR = createAbsReal("alphaR", "#alpha_{R}", 0, -10, 10); 00105 _params.Print("v"); 00106 00107 // create pdf 00108 _thePdf=new RooCruijff(Form("the_%s", GetName()),_pdfType+" "+GetTitle(), 00109 *_x, *_m0, *_sigmaL, *_sigmaR, *_alphaL, *_alphaR); 00110 00111 }
RooAbsReal* rarCruijff::_alphaL [protected] |
RooAbsReal* rarCruijff::_alphaR [protected] |
RooAbsReal* rarCruijff::_m0 [protected] |
RooAbsReal* rarCruijff::_sigmaL [protected] |
RooAbsReal* rarCruijff::_sigmaR [protected] |
RooAbsReal* rarCruijff::_x [protected] |