#include <rarNovosibirsk.hh>
Inheritance diagram for rarNovosibirsk:
Public Member Functions | |
rarNovosibirsk () | |
Trivial ctor. | |
rarNovosibirsk (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarNovosibirsk () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs. | |
RooAbsReal * | _peak |
Peak position of the PDF. | |
RooAbsReal * | _width |
Width of the PDF. | |
RooAbsReal * | _tail |
Tail parameter of the PDF. | |
Private Member Functions | |
rarNovosibirsk (const rarNovosibirsk &) | |
ClassDef (rarNovosibirsk, 0) |
Build RooNovosibirsk Pdf.
/// configStr = Exp ["<Optional Title>"] /// x = AbsReal Def /// peak = AbsReal Def /// width = AbsReal Def /// tail = AbsReal Def
x
is the default observable. peak
is the peak position of the pdf. width
is the width of the pdf. tail
is the tail parameter of the pdf. All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 36 of file rarNovosibirsk.hh.
rarNovosibirsk::rarNovosibirsk | ( | ) |
Trivial ctor.
Usually the objects should be created using other ctors.
Definition at line 41 of file rarNovosibirsk.cc.
References init().
rarNovosibirsk::rarNovosibirsk | ( | 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 60 of file rarNovosibirsk.cc.
References init().
00064 : rarBasePdf(configFile, configSec, configStr, 00065 theDatasets, theData, name, title), 00066 _x(0), _peak(0), _width(0), _tail(0) 00067 { 00068 init(); 00069 }
rarNovosibirsk::~rarNovosibirsk | ( | ) | [virtual] |
rarNovosibirsk::rarNovosibirsk | ( | const rarNovosibirsk & | ) | [private] |
rarNovosibirsk::ClassDef | ( | rarNovosibirsk | , | |
0 | ||||
) | [private] |
void rarNovosibirsk::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 RooNovosibirsk PDF.
Reimplemented from rarBasePdf.
Definition at line 80 of file rarNovosibirsk.cc.
References rarBasePdf::_params, rarBasePdf::_pdfType, _peak, _tail, rarBasePdf::_thePdf, _width, _x, and rarConfig::createAbsReal().
Referenced by rarNovosibirsk().
00081 { 00082 cout<<"init of rarNovosibirsk for "<<GetName()<<":"<<endl; 00083 00084 // first get its obs 00085 _x=createAbsReal("x", "observable"); assert(_x); 00086 // Config pdf params 00087 _peak=createAbsReal("peak", "peak", 0, -10, 10); 00088 _width=createAbsReal("width", "width", 0, -10, 10); 00089 _tail=createAbsReal("tail", "tail", 0, -10, 10); 00090 _params.Print("v"); 00091 00092 // create pdf 00093 _thePdf=new RooNovosibirsk(Form("the_%s", GetName()),_pdfType+" "+GetTitle(), 00094 *_x, *_peak, *_width, *_tail); 00095 }
RooAbsReal* rarNovosibirsk::_peak [protected] |
RooAbsReal* rarNovosibirsk::_tail [protected] |
RooAbsReal* rarNovosibirsk::_width [protected] |
RooAbsReal* rarNovosibirsk::_x [protected] |