#include <rarRelBreitWigner.hh>
Inheritance diagram for rarRelBreitWigner:
Public Member Functions | |
rarRelBreitWigner () | |
Trivial ctor. | |
rarRelBreitWigner (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarRelBreitWigner () |
Protected Member Functions | |
void | init () |
Initial function called by ctor. | |
Protected Attributes | |
RooAbsReal * | _x |
Default obs (mass). | |
RooAbsReal * | _mean |
Peak position of the PDF. | |
RooAbsReal * | _width |
Width of the PDF. | |
RooAbsReal * | _radius |
Width of the PDF. | |
RooAbsReal * | _mass_a |
RooAbsReal * | _mass_b |
RooAbsReal * | _spin |
Private Member Functions | |
rarRelBreitWigner (const rarRelBreitWigner &) | |
ClassDef (rarRelBreitWigner, 0) |
Build RooRelBreitWigner Pdf.
/// configStr = RelBreitWigner ["<Optional Title>"] /// spin = <0|1|2> /// x = AbsReal Def /// mean = AbsReal Def /// width = AbsReal Def /// spin = AbsReal Def ///
x
is the default observable. mean
is the peak position of the pdf. width
is the width of the pdf. spin
is the spin (= 0, 1, 2). All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 37 of file rarRelBreitWigner.hh.
rarRelBreitWigner::rarRelBreitWigner | ( | ) |
rarRelBreitWigner::rarRelBreitWigner | ( | 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 57 of file rarRelBreitWigner.cc.
References init().
00063 : rarBasePdf(configFile, configSec, configStr, 00064 theDatasets, theData, name, title), 00065 _x(0), _mean(0), _width(0), _radius(0), _mass_a(0), _mass_b(0), _spin(0) 00066 { 00067 init(); 00068 }
rarRelBreitWigner::~rarRelBreitWigner | ( | ) | [virtual] |
rarRelBreitWigner::rarRelBreitWigner | ( | const rarRelBreitWigner & | ) | [private] |
rarRelBreitWigner::ClassDef | ( | rarRelBreitWigner | , | |
0 | ||||
) | [private] |
void rarRelBreitWigner::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 RooRelBreitWigner PDF.
Reimplemented from rarBasePdf.
Definition at line 79 of file rarRelBreitWigner.cc.
References _mass_a, _mass_b, _mean, rarBasePdf::_params, rarBasePdf::_pdfType, _radius, _spin, rarBasePdf::_thePdf, _width, _x, and rarConfig::createAbsReal().
Referenced by rarRelBreitWigner().
00080 { 00081 // read in _parSpin from config section 00082 //_parSpin=atoi(readConfStr("spin", Form("%d", _parSpin), getVarSec())); 00083 00084 cout <<"init of rarRelBreitWigner for "<<GetName()<<endl; 00085 00086 // first get its obs 00087 _x=createAbsReal("x", "observable"); assert(_x); 00088 00089 // Config pdf params 00090 _mean=createAbsReal("mean", "mean", 0, -10, 10); 00091 _width=createAbsReal("width", "width", 0, 0, 100); 00092 _radius=createAbsReal("radius", "radius", 3.1, "RooConstVar"); 00093 _mass_a=createAbsReal("mass_a", "mass_a", 0.493677, "RooConstVar"); 00094 _mass_b=createAbsReal("mass_b", "mass_b", 0.139570, "RooConstVar"); 00095 _spin=createAbsReal("spin", "spin", 1, "RooConstVar"); 00096 00097 _params.Print("v"); 00098 00099 // create pdf 00100 _thePdf=new RooRelBreitWigner(Form("the_%s", GetName()),_pdfType+" "+GetTitle(), 00101 *_x, *_mean, *_width, *_radius, *_mass_a, *_mass_b, *_spin); 00102 }
RooAbsReal* rarRelBreitWigner::_mass_a [protected] |
RooAbsReal* rarRelBreitWigner::_mass_b [protected] |
RooAbsReal* rarRelBreitWigner::_mean [protected] |
RooAbsReal* rarRelBreitWigner::_radius [protected] |
RooAbsReal* rarRelBreitWigner::_spin [protected] |
RooAbsReal* rarRelBreitWigner::_width [protected] |
RooAbsReal* rarRelBreitWigner::_x [protected] |