#include <rarBallack.hh>
Inheritance diagram for rarBallack:
Public Member Functions | |
rarBallack () | |
Trivial ctor. | |
rarBallack (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarBallack () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs. | |
RooAbsReal * | _mean |
Peak position of the PDF. | |
RooAbsReal * | _width |
Width of the PDF. | |
RooAbsReal * | _tail |
Tail parameter of the PDF. | |
RooAbsReal * | _alpha |
Attaching point. | |
RooAbsReal * | _n |
Attached polynomial power. | |
Private Member Functions | |
rarBallack (const rarBallack &) | |
ClassDef (rarBallack, 0) |
Build RooBallack Pdf.
/// configStr = Exp ["<Optional Title>"] /// x = AbsReal Def /// mean = AbsReal Def /// width = AbsReal Def /// tail = AbsReal Def /// alpha = AbsReal Def /// n = AbsReal Def
x
is the default observable. mean
is the peak position of the pdf. width
is the width of the pdf. tail
is the tail parameter of the pdf. alpha
is the atachment point of the polynomial tail. n
is the power of the polynomial of the pdf. All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 40 of file rarBallack.hh.
rarBallack::rarBallack | ( | ) |
rarBallack::rarBallack | ( | 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 62 of file rarBallack.cc.
References init().
00066 : rarBasePdf(configFile, configSec, configStr, 00067 theDatasets, theData, name, title), 00068 _x(0), _mean(0), _width(0), _tail(0), _alpha(0), _n(0) 00069 { 00070 init(); 00071 }
rarBallack::~rarBallack | ( | ) | [virtual] |
rarBallack::rarBallack | ( | const rarBallack & | ) | [private] |
rarBallack::ClassDef | ( | rarBallack | , | |
0 | ||||
) | [private] |
void rarBallack::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 RooBallack PDF.
Reimplemented from rarBasePdf.
Definition at line 82 of file rarBallack.cc.
References _alpha, _mean, _n, rarBasePdf::_params, rarBasePdf::_pdfType, _tail, rarBasePdf::_thePdf, _width, _x, and rarConfig::createAbsReal().
Referenced by rarBallack().
00083 { 00084 cout<<"init of rarBallack for "<<GetName()<<":"<<endl; 00085 00086 // first get its obs 00087 _x=createAbsReal("x", "observable"); assert(_x); 00088 // Config pdf params 00089 _mean=createAbsReal("mean", "mean", 0, -10, 10); 00090 _width=createAbsReal("width", "width", 0, -10, 10); 00091 _tail=createAbsReal("tail", "tail", 0, -10, 10); 00092 _alpha=createAbsReal("alpha", "alpha", 0, -10, 10); 00093 _n=createAbsReal("n", "n", 0, -10, 10); 00094 _params.Print("v"); 00095 00096 // create pdf 00097 _thePdf=new RooBallack(Form("the_%s", GetName()),_pdfType+" "+GetTitle(), 00098 *_x, *_mean, *_width, *_tail, *_alpha, *_n); 00099 }
RooAbsReal* rarBallack::_alpha [protected] |
RooAbsReal* rarBallack::_mean [protected] |
RooAbsReal* rarBallack::_n [protected] |
RooAbsReal* rarBallack::_tail [protected] |
RooAbsReal* rarBallack::_width [protected] |
RooAbsReal* rarBallack::_x [protected] |