rarRelBreitWigner Class Reference

Relativistic Breit Wigner PDF builder. More...

#include <rarRelBreitWigner.hh>

Inheritance diagram for rarRelBreitWigner:

rarBasePdf rarConfig List of all members.

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)

Detailed Description

Relativistic Breit Wigner PDF builder.

Build RooRelBreitWigner Pdf.

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


Constructor & Destructor Documentation

rarRelBreitWigner::rarRelBreitWigner (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 38 of file rarRelBreitWigner.cc.

References init().

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

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

Definition at line 70 of file rarRelBreitWigner.cc.

00071 {
00072 }

rarRelBreitWigner::rarRelBreitWigner ( const rarRelBreitWigner  )  [private]


Member Function Documentation

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


Member Data Documentation

RooAbsReal* rarRelBreitWigner::_mass_a [protected]

Definition at line 54 of file rarRelBreitWigner.hh.

Referenced by init().

RooAbsReal* rarRelBreitWigner::_mass_b [protected]

Definition at line 55 of file rarRelBreitWigner.hh.

Referenced by init().

RooAbsReal* rarRelBreitWigner::_mean [protected]

Peak position of the PDF.

Definition at line 51 of file rarRelBreitWigner.hh.

Referenced by init().

RooAbsReal* rarRelBreitWigner::_radius [protected]

Width of the PDF.

Definition at line 53 of file rarRelBreitWigner.hh.

Referenced by init().

RooAbsReal* rarRelBreitWigner::_spin [protected]

Definition at line 56 of file rarRelBreitWigner.hh.

Referenced by init().

RooAbsReal* rarRelBreitWigner::_width [protected]

Width of the PDF.

Definition at line 52 of file rarRelBreitWigner.hh.

Referenced by init().

RooAbsReal* rarRelBreitWigner::_x [protected]

Default obs (mass).

Definition at line 50 of file rarRelBreitWigner.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