#include <rarGounarisSakurai.hh>
Inheritance diagram for rarGounarisSakurai:
Public Member Functions | |
rarGounarisSakurai () | |
Trivial ctor. | |
rarGounarisSakurai (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title) | |
Default ctor. | |
virtual | ~rarGounarisSakurai () |
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 * | _spin |
Spin (0,1, or 2). | |
RooAbsReal * | _radius |
Form factor radius. | |
RooAbsReal * | _mass_a |
Mass of daughter A. | |
RooAbsReal * | _mass_b |
Mass of daughter B. | |
Private Member Functions | |
rarGounarisSakurai (const rarGounarisSakurai &) | |
ClassDef (rarGounarisSakurai, 0) |
Build RooGounarisSakurai Pdf.
/// configStr = GounarisSakurai ["<Optional Title>"] /// spin = <0|1|2> /// x = AbsReal Def /// mean = AbsReal Def /// width = AbsReal Def /// spin = AbsReal Def /// radius = AbsReal Def /// mass_a = AbsReal Def /// mass_b = 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) (default 1). radius
is the form factor radius (default 3.1/GeV) mass_a
is the mass of the first daughter (default pi+ mass) mass_b
is the mass of the second daughter (default pi- mass) After being defined, the two daughter masses and the spin are held constant in the fit. All the variables can be RooRealVar
or RooFormulaVar
.
Definition at line 45 of file rarGounarisSakurai.hh.
rarGounarisSakurai::rarGounarisSakurai | ( | ) |
rarGounarisSakurai::rarGounarisSakurai | ( | 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 56 of file rarGounarisSakurai.cc.
References init().
00062 : rarBasePdf(configFile, configSec, configStr, 00063 theDatasets, theData, name, title), 00064 _x(0), _mean(0), _width(0), _spin(0), 00065 _radius(0), _mass_a(0), _mass_b(0) 00066 { 00067 init(); 00068 }
rarGounarisSakurai::~rarGounarisSakurai | ( | ) | [virtual] |
rarGounarisSakurai::rarGounarisSakurai | ( | const rarGounarisSakurai & | ) | [private] |
rarGounarisSakurai::ClassDef | ( | rarGounarisSakurai | , | |
0 | ||||
) | [private] |
void rarGounarisSakurai::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 RooGounarisSakurai PDF.
Reimplemented from rarBasePdf.
Definition at line 79 of file rarGounarisSakurai.cc.
References _mass_a, _mass_b, _mean, rarBasePdf::_params, rarBasePdf::_pdfType, _radius, _spin, rarBasePdf::_thePdf, _width, _x, and rarConfig::createAbsReal().
Referenced by rarGounarisSakurai().
00080 { 00081 00082 // first get its obs 00083 _x=createAbsReal("x", "observable"); assert(_x); 00084 00085 // Config pdf params 00086 _mean = createAbsReal("mean", "mean", 0, -10, 10); 00087 _width = createAbsReal("width", "width", 0, 0, 10); 00088 _spin = createAbsReal("spin", "spin", 1, 0, 3); 00089 _radius = createAbsReal("radius", "radius", 3.1, 0, 10); // GeV-1 00090 _mass_a = createAbsReal("mass_a", "mass_a", 0.1359, 0, 10); // pi mass 00091 _mass_b = createAbsReal("mass_b", "mass_b", 0.1359, 0, 10); 00092 00093 // set spin and masses to fixed ? 00094 _spin->setAttribute("Constant", kTRUE); 00095 _mass_a->setAttribute("Constant", kTRUE); 00096 _mass_b->setAttribute("Constant", kTRUE); 00097 00098 _params.Print("v"); 00099 00100 // create pdf 00101 _thePdf=new RooGounarisSakurai(Form("the_%s", GetName()),_pdfType+" "+GetTitle(), 00102 *_x, *_mean, *_width, *_spin, 00103 *_radius, *_mass_a, *_mass_b); 00104 }
RooAbsReal* rarGounarisSakurai::_mass_a [protected] |
RooAbsReal* rarGounarisSakurai::_mass_b [protected] |
RooAbsReal* rarGounarisSakurai::_mean [protected] |
Peak position of the PDF.
Definition at line 59 of file rarGounarisSakurai.hh.
Referenced by init().
RooAbsReal* rarGounarisSakurai::_radius [protected] |
RooAbsReal* rarGounarisSakurai::_spin [protected] |
RooAbsReal* rarGounarisSakurai::_width [protected] |
RooAbsReal* rarGounarisSakurai::_x [protected] |