#include <rarOsipDisc.hh>
Inheritance diagram for rarOsipDisc:
Public Member Functions | |
rarOsipDisc () | |
Trivial ctor. | |
rarOsipDisc (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarOsipDisc () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs. | |
RooAbsReal * | _r |
RooAbsReal * | _b |
RooAbsReal * | _a |
RooAbsReal * | _h |
RooAbsReal * | _s |
Private Member Functions | |
rarOsipDisc (const rarOsipDisc &) | |
ClassDef (rarOsipDisc, 0) |
Build RooGaussian / RooBreitWigner Pdf.
/// configStr = Funky ["<Optional Title>"] /// x = AbsReal Def /// mean = AbsReal Def /// sigma = AbsReal Def
x
is the default observable. mean
is the mean of the PDF. sigma
is the sigma of the PDF. All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 38 of file rarOsipDisc.hh.
rarOsipDisc::rarOsipDisc | ( | ) |
rarOsipDisc::rarOsipDisc | ( | 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 58 of file rarOsipDisc.cc.
References init().
00062 : rarBasePdf(configFile, configSec, configStr, 00063 theDatasets, theData, name, title), 00064 _x(0), _r(0), _b(0), _a(0), _h(0), _s(0) 00065 { 00066 init(); 00067 }
rarOsipDisc::~rarOsipDisc | ( | ) | [virtual] |
rarOsipDisc::rarOsipDisc | ( | const rarOsipDisc & | ) | [private] |
rarOsipDisc::ClassDef | ( | rarOsipDisc | , | |
0 | ||||
) | [private] |
void rarOsipDisc::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 RooOsipDisc PDF with _pdfType being OsipDisc, respectively.
Reimplemented from rarBasePdf.
Definition at line 79 of file rarOsipDisc.cc.
References _a, _b, _h, rarBasePdf::_obsSet, rarBasePdf::_params, rarBasePdf::_pdfType, _r, _s, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().
Referenced by rarOsipDisc().
00080 { 00081 cout<<"init of rarOsipDisc 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 00088 _r=createAbsReal("r", "#r", .1, 0., 1., _x->getUnit()); 00089 _b=createAbsReal("b", "#b", .1, 0., 1., _x->getUnit()); 00090 _a=createAbsReal("a", "#a", .1, 0., 1., _x->getUnit()); 00091 _h=createAbsReal("h", "#h", 1.0, -10, 10, _x->getUnit()); 00092 _s=createAbsReal("s", "#s", .1, 0., 1., _x->getUnit()); 00093 00094 _params.Print("v"); 00095 00096 // create pdf 00097 if("OsipDisc"==_pdfType) { 00098 _thePdf=new RooOsipDisc(Form("the_%s", GetName()), 00099 _pdfType+" "+GetTitle(), *_x, *_r, *_b, *_a, *_h, *_s); 00100 } 00101 }
RooAbsReal* rarOsipDisc::_a [protected] |
RooAbsReal* rarOsipDisc::_b [protected] |
RooAbsReal* rarOsipDisc::_h [protected] |
RooAbsReal* rarOsipDisc::_r [protected] |
RooAbsReal* rarOsipDisc::_s [protected] |
RooAbsReal* rarOsipDisc::_x [protected] |