#include <rarExp.hh>
Inheritance diagram for rarExp:
Public Member Functions | |
rarExp () | |
Trivial ctor. | |
rarExp (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarExp () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs. | |
RooAbsReal * | _c |
Exponent of the PDF. | |
Private Member Functions | |
rarExp (const rarExp &) | |
ClassDef (rarExp, 0) |
Build RooExponential Pdf.
/// configStr = Exp ["<Optional Title>"] /// x = AbsReal Def /// c = AbsReal Def
x
is the default observable. c
is the exponent of the pdf. All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 31 of file rarExp.hh.
rarExp::rarExp | ( | ) |
rarExp::rarExp | ( | 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 rarExp.cc.
References init().
00063 : rarBasePdf(configFile, configSec, configStr, 00064 theDatasets, theData, name, title), 00065 _x(0), _c(0) 00066 { 00067 init(); 00068 }
rarExp::rarExp | ( | const rarExp & | ) | [private] |
rarExp::ClassDef | ( | rarExp | , | |
0 | ||||
) | [private] |
void rarExp::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 RooExponential PDF.
Reimplemented from rarBasePdf.
Definition at line 79 of file rarExp.cc.
References _c, rarBasePdf::_params, rarBasePdf::_pdfType, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().
Referenced by rarExp().
00080 { 00081 cout<<"init of rarExp for "<<GetName()<<":"<<endl; 00082 00083 // first get its obs 00084 _x=createAbsReal("x", "observable"); assert(_x); 00085 // Config pdf params 00086 _c=createAbsReal("c", "c", 0, -10, 10); 00087 _params.Print("v"); 00088 00089 // create pdf 00090 _thePdf=new RooExponential(Form("the_%s", GetName()),_pdfType+" "+GetTitle(), 00091 *_x, *_c); 00092 }
RooAbsReal* rarExp::_c [protected] |
RooAbsReal* rarExp::_x [protected] |