#include <rarVoigtian.hh>
Inheritance diagram for rarVoigtian:
Public Member Functions | |
rarVoigtian () | |
Trivial ctor. | |
rarVoigtian (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarVoigtian () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs. | |
RooAbsReal * | _mean |
Mean of Breit-Wigner PDF. | |
RooAbsReal * | _width |
Sigma of Breit-Wigner PDF. | |
RooAbsReal * | _sigma |
Sigma of Gaussian convolution function PDF. | |
Private Member Functions | |
rarVoigtian (const rarVoigtian &) | |
ClassDef (rarVoigtian, 0) |
Build RooVoigtian Pdf.
/// configStr = Voigtian ["<Optional Title>"] /// x = AbsReal Def /// mean = AbsReal Def /// sigma = AbsReal Def
x
is the default observable. mean
is the mean of the Breit-Wigner PDF. width
is the width of the Breit-Wigner PDF. sigma
is the width of gaussian that is convoluted with the Breit-Wigner PDF. All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 35 of file rarVoigtian.hh.
rarVoigtian::rarVoigtian | ( | ) |
Trivial ctor.
Usually the objects should be created using other ctors.
Definition at line 40 of file rarVoigtian.cc.
References init().
rarVoigtian::rarVoigtian | ( | 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 59 of file rarVoigtian.cc.
References init().
00063 : rarBasePdf(configFile, configSec, configStr, 00064 theDatasets, theData, name, title), 00065 _x(0), _mean(0), _width(0), _sigma(0) 00066 { 00067 init(); 00068 }
rarVoigtian::~rarVoigtian | ( | ) | [virtual] |
rarVoigtian::rarVoigtian | ( | const rarVoigtian & | ) | [private] |
rarVoigtian::ClassDef | ( | rarVoigtian | , | |
0 | ||||
) | [private] |
void rarVoigtian::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 RooVoigtian PDF with _pdfType being Voigtian, respectively.
Reimplemented from rarBasePdf.
Definition at line 80 of file rarVoigtian.cc.
References _mean, rarBasePdf::_obsSet, rarBasePdf::_params, rarBasePdf::_pdfType, _sigma, rarBasePdf::_thePdf, _width, _x, and rarConfig::createAbsReal().
Referenced by rarVoigtian().
00081 { 00082 cout<<"init of rarVoigtian for "<<GetName()<<":"<<endl; 00083 00084 // first get its dependent/observable 00085 _x=createAbsReal("x", "observable"); assert(_x); 00086 RooRealVar *x=(RooRealVar *)RooArgList(_obsSet).at(0); assert(x); 00087 00088 // Config pdf params 00089 _mean=createAbsReal("mean", "#mu", (x->getMin()+x->getMax())/2, 00090 x->getMin(), x->getMax(), _x->getUnit()); 00091 00092 _width=createAbsReal("width", "#mu", (x->getMin()+x->getMax())/8, 00093 x->getMin(), x->getMax(), _x->getUnit()); 00094 00095 _sigma=createAbsReal("sigma", "#sigma", 0.0, 0., 1., _x->getUnit()); 00096 00097 _params.Print("v"); 00098 00099 // create pdf 00100 Bool_t doFast = kTRUE; 00101 _thePdf=new RooVoigtian(Form("the_%s", GetName()), _pdfType+" "+GetTitle(), 00102 *_x, *_mean, *_width, *_sigma, doFast); 00103 }
RooAbsReal* rarVoigtian::_mean [protected] |
RooAbsReal* rarVoigtian::_sigma [protected] |
Sigma of Gaussian convolution function PDF.
Definition at line 50 of file rarVoigtian.hh.
Referenced by init().
RooAbsReal* rarVoigtian::_width [protected] |
RooAbsReal* rarVoigtian::_x [protected] |