#include <rarArgusBG.hh>
Inheritance diagram for rarArgusBG:
Public Member Functions | |
rarArgusBG () | |
Trivial ctor. | |
rarArgusBG (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarArgusBG () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs. | |
RooAbsReal * | _max |
End point. | |
RooAbsReal * | _c |
Slope parameter. | |
RooAbsReal * | _pow |
Power (normally 1/2). | |
Private Member Functions | |
rarArgusBG (const rarArgusBG &) | |
ClassDef (rarArgusBG, 0) |
Build RooArgusBG Pdf.
/// configStr = ArgusBG ["<Optional Title>"] /// x = AbsReal Def /// max = AbsReal Def /// c = AbsReal Def /// pow = AbsReal Def
x
is the default observable. max
is the end point of the pdf, usually a constant. c
is the slope parameter of the pdf. pow
is the power of the multiplying term (normally 1/2). All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 36 of file rarArgusBG.hh.
rarArgusBG::rarArgusBG | ( | ) |
Trivial ctor.
Usually the objects should be created using other ctors.
Definition at line 40 of file rarArgusBG.cc.
References init().
rarArgusBG::rarArgusBG | ( | 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 rarArgusBG.cc.
References init().
00063 : rarBasePdf(configFile, configSec, configStr, 00064 theDatasets, theData, name, title), 00065 _x(0), _max(0), _c(0), _pow(0) 00066 { 00067 init(); 00068 }
rarArgusBG::~rarArgusBG | ( | ) | [virtual] |
rarArgusBG::rarArgusBG | ( | const rarArgusBG & | ) | [private] |
rarArgusBG::ClassDef | ( | rarArgusBG | , | |
0 | ||||
) | [private] |
void rarArgusBG::init | ( | ) | [protected, virtual] |
Initial function called by ctor.
init
is called by the ctor. It first creates variables by calling createAbsReal, and finally it builds RooArgusBG PDF.
Reimplemented from rarBasePdf.
Definition at line 79 of file rarArgusBG.cc.
References _c, _max, rarBasePdf::_obsSet, rarBasePdf::_params, rarBasePdf::_pdfType, _pow, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().
Referenced by rarArgusBG().
00080 { 00081 cout<<"init of rarArgusBG for "<<GetName()<<":"<<endl; 00082 00083 // first get its dependent/observable 00084 _x=createAbsReal("x", "observable"); assert(_x); 00085 RooRealVar *x=(RooRealVar *)RooArgList(_obsSet).at(0); assert(x); 00086 // Config pdf params 00087 _max=createAbsReal("max", "E_{end}", x->getMax(), _x->getUnit()); 00088 _c=createAbsReal("c", "#xi", -23, -80, -1); 00089 _pow=createAbsReal("pow", "n", 0.5); 00090 _params.Print("v"); 00091 00092 // create pdf 00093 _thePdf=new RooArgusBG(Form("the_%s",GetName()), _pdfType+" "+GetTitle(), 00094 *_x, *_max, *_c, *_pow); 00095 }
RooAbsReal* rarArgusBG::_c [protected] |
RooAbsReal* rarArgusBG::_max [protected] |
RooAbsReal* rarArgusBG::_pow [protected] |
RooAbsReal* rarArgusBG::_x [protected] |