rarFlatte Class Reference

Flatte PDF builder. More...

#include <rarFlatte.hh>

Inheritance diagram for rarFlatte:

rarBasePdf rarConfig List of all members.

Public Member Functions

 rarFlatte ()
 Trivial ctor.
 rarFlatte (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title)
 Default ctor.
virtual ~rarFlatte ()

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs (mass).
RooAbsReal * _mean
RooAbsReal * _g0
RooAbsReal * _m0a
RooAbsReal * _m0b
RooAbsReal * _g1
RooAbsReal * _m1a
RooAbsReal * _m1b

Private Member Functions

 rarFlatte (const rarFlatte &)
 ClassDef (rarFlatte, 0)

Detailed Description

Flatte PDF builder.

Build RooFlatte Pdf.

Config Directives:
/// configStr = Flatte ["<Optional Title>"]
/// x = AbsReal Def
/// mean  = AbsReal Def
/// g0 = AbsReal Def
/// m0a = AbsReal Def
/// m0b = AbsReal Def
/// g1 = AbsReal Def
/// m1a = AbsReal Def
/// m1b = AbsReal Def
/// 
x is the default observable. mean is the peak position of the pdf. g0 is the square of the coupling constant to the first channel (default = 0.1108 GeV) m0a is the mass of one of the final state particles in the first channel (default = 0.1108 GeV) m0b is the mass of other final state particle in the first channel (default = 0.13957 GeV) g1 is the square of the coupling constant to the first channel (default = 0.4229 GeV) m1a is the mass of one of the final state particles in the second channel (default = 0.49368 GeV) m1b is the mass of other final state particle in the second channel (default = 0.49368 GeV) After being defined, the four masses are held constant in the fit. All the floating variables can be RooRealVar or RooFormulaVar.

Definition at line 46 of file rarFlatte.hh.


Constructor & Destructor Documentation

rarFlatte::rarFlatte (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 38 of file rarFlatte.cc.

References init().

00039   : rarBasePdf(),
00040     _x(0), _mean(0), _g0(0), _m0a(0), _m0b(0), _g1(0), _m1a(0), _m1b(0)
00041 {
00042   init();
00043 }

rarFlatte::rarFlatte ( const char *  configFile,
const char *  configSec,
const char *  configStr,
rarDatasets theDatasets,
RooDataSet *  theData,
const char *  name,
const char *  title 
)

Default ctor.

Parameters:
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
The default ctor first initializes data members, and then calls init.

Definition at line 57 of file rarFlatte.cc.

References init().

00063   : rarBasePdf(configFile, configSec, configStr,
00064                theDatasets, theData, name, title),
00065     _x(0), _mean(0), _g0(0), _m0a(0), _m0b(0),_g1(0), _m1a(0), _m1b(0)
00066 {
00067   init();
00068 }

rarFlatte::~rarFlatte (  )  [virtual]

Definition at line 70 of file rarFlatte.cc.

00071 {
00072 }

rarFlatte::rarFlatte ( const rarFlatte  )  [private]


Member Function Documentation

rarFlatte::ClassDef ( rarFlatte  ,
 
) [private]

void rarFlatte::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 RooFlatte PDF.

Reimplemented from rarBasePdf.

Definition at line 79 of file rarFlatte.cc.

References _g0, _g1, _m0a, _m0b, _m1a, _m1b, _mean, rarBasePdf::_params, rarBasePdf::_pdfType, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().

Referenced by rarFlatte().

00080 {
00081 
00082   cout <<"init of rarFlatte for " << GetName() << ":"<<endl;
00083   
00084   // first get its observable
00085   _x = createAbsReal("x", "observable"); assert(_x);
00086 
00087   // Config pdf params
00088   _mean = createAbsReal("mean", "mean", 0.980, -100, 100);
00089   _g0  = createAbsReal("g0", "g0", 0.1108, 0, 100);
00090   _m0a = createAbsReal("m0a", "m0a",  0.13957, 0, 100);
00091   _m0b = createAbsReal("m0b", "m0b", 0.13957, 0, 100);
00092   _g1  = createAbsReal("g1", "g1", 0.42, 0, 100);
00093   _m1a = createAbsReal("m1a", "m1a", 0.49368, 0, 100);
00094   _m1b = createAbsReal("m1b", "m1b", 0.49368, 0, 100);
00095 
00096   // masses will be made constant even if floated in configuration
00097   _m0a->setAttribute("Constant", kTRUE);
00098   _m0b->setAttribute("Constant", kTRUE);
00099   _m1a->setAttribute("Constant", kTRUE);
00100   _m1b->setAttribute("Constant", kTRUE);
00101 
00102   _params.Print("v");
00103   
00104   // create pdf
00105   _thePdf=new RooFlatte(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00106                         *_x, *_mean, *_g0, *_m0a, *_m0b, *_g1, *_m1a, *_m1b);
00107 }


Member Data Documentation

RooAbsReal* rarFlatte::_g0 [protected]

Definition at line 61 of file rarFlatte.hh.

Referenced by init().

RooAbsReal* rarFlatte::_g1 [protected]

Definition at line 64 of file rarFlatte.hh.

Referenced by init().

RooAbsReal* rarFlatte::_m0a [protected]

Definition at line 62 of file rarFlatte.hh.

Referenced by init().

RooAbsReal* rarFlatte::_m0b [protected]

Definition at line 63 of file rarFlatte.hh.

Referenced by init().

RooAbsReal* rarFlatte::_m1a [protected]

Definition at line 65 of file rarFlatte.hh.

Referenced by init().

RooAbsReal* rarFlatte::_m1b [protected]

Definition at line 66 of file rarFlatte.hh.

Referenced by init().

RooAbsReal* rarFlatte::_mean [protected]

Definition at line 60 of file rarFlatte.hh.

Referenced by init().

RooAbsReal* rarFlatte::_x [protected]

Default obs (mass).

Definition at line 59 of file rarFlatte.hh.

Referenced by init().


The documentation for this class was generated from the following files:
Generated on 30 Oct 2013 for RooRarFit by  doxygen 1.4.7