rarGounarisSakurai Class Reference

GounarisSakurai rho line shape PDF builder. More...

#include <rarGounarisSakurai.hh>

Inheritance diagram for rarGounarisSakurai:

rarBasePdf rarConfig List of all members.

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)

Detailed Description

GounarisSakurai rho line shape PDF builder.

Build RooGounarisSakurai Pdf.

Config Directives:
/// 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.


Constructor & Destructor Documentation

rarGounarisSakurai::rarGounarisSakurai (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 36 of file rarGounarisSakurai.cc.

References init().

00037   : rarBasePdf(),
00038     _x(0), _mean(0), _width(0), _spin(0), 
00039     _radius(0), _mass_a(0), _mass_b(0)
00040 {
00041   init();
00042 }

rarGounarisSakurai::rarGounarisSakurai ( 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 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]

Definition at line 70 of file rarGounarisSakurai.cc.

00071 {
00072 }

rarGounarisSakurai::rarGounarisSakurai ( const rarGounarisSakurai  )  [private]


Member Function Documentation

rarGounarisSakurai::ClassDef ( rarGounarisSakurai  ,
 
) [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 }


Member Data Documentation

RooAbsReal* rarGounarisSakurai::_mass_a [protected]

Mass of daughter A.

Definition at line 63 of file rarGounarisSakurai.hh.

Referenced by init().

RooAbsReal* rarGounarisSakurai::_mass_b [protected]

Mass of daughter B.

Definition at line 64 of file rarGounarisSakurai.hh.

Referenced by init().

RooAbsReal* rarGounarisSakurai::_mean [protected]

Peak position of the PDF.

Definition at line 59 of file rarGounarisSakurai.hh.

Referenced by init().

RooAbsReal* rarGounarisSakurai::_radius [protected]

Form factor radius.

Definition at line 62 of file rarGounarisSakurai.hh.

Referenced by init().

RooAbsReal* rarGounarisSakurai::_spin [protected]

Spin (0,1, or 2).

Definition at line 61 of file rarGounarisSakurai.hh.

Referenced by init().

RooAbsReal* rarGounarisSakurai::_width [protected]

Width of the PDF.

Definition at line 60 of file rarGounarisSakurai.hh.

Referenced by init().

RooAbsReal* rarGounarisSakurai::_x [protected]

Default obs (mass).

Definition at line 58 of file rarGounarisSakurai.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