rarVoigtian Class Reference

RooVoigtian PDF builder. More...

#include <rarVoigtian.hh>

Inheritance diagram for rarVoigtian:

rarBasePdf rarConfig List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs.
RooAbsReal * _mean
 Mean of Breit-Wigner PDF.
RooAbsReal * _width
 Sigma of Breit-Wigner PDF.
RooAbsReal * _sigma
 Sigma of Gaussian convolution function PDF.

Private Member Functions

 rarVoigtian (const rarVoigtian &)
 ClassDef (rarVoigtian, 0)

Detailed Description

RooVoigtian PDF builder.

Build RooVoigtian Pdf.

Config Directives:
/// configStr = Voigtian ["<Optional Title>"]
/// x = AbsReal Def
/// mean = AbsReal Def
/// sigma = AbsReal Def
x is the default observable. mean is the mean of the Breit-Wigner PDF. width is the width of the Breit-Wigner PDF. sigma is the width of gaussian that is convoluted with the Breit-Wigner PDF. All the variables can be RooRealVar or RooFormulaVar.

Definition at line 35 of file rarVoigtian.hh.


Constructor & Destructor Documentation

rarVoigtian::rarVoigtian (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 40 of file rarVoigtian.cc.

References init().

00041   : rarBasePdf(),
00042     _x(0), _mean(0), _width(0), _sigma(0)
00043 {
00044   init();
00045 }

rarVoigtian::rarVoigtian ( 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 59 of file rarVoigtian.cc.

References init().

00063   : rarBasePdf(configFile, configSec, configStr,
00064                theDatasets, theData, name, title),
00065     _x(0), _mean(0), _width(0), _sigma(0)
00066 {
00067   init();
00068 }

rarVoigtian::~rarVoigtian (  )  [virtual]

Definition at line 70 of file rarVoigtian.cc.

00071 {
00072 }

rarVoigtian::rarVoigtian ( const rarVoigtian  )  [private]


Member Function Documentation

rarVoigtian::ClassDef ( rarVoigtian  ,
 
) [private]

void rarVoigtian::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 RooVoigtian PDF with _pdfType being Voigtian, respectively.

Reimplemented from rarBasePdf.

Definition at line 80 of file rarVoigtian.cc.

References _mean, rarBasePdf::_obsSet, rarBasePdf::_params, rarBasePdf::_pdfType, _sigma, rarBasePdf::_thePdf, _width, _x, and rarConfig::createAbsReal().

Referenced by rarVoigtian().

00081 {
00082   cout<<"init of rarVoigtian for "<<GetName()<<":"<<endl;
00083   
00084   // first get its dependent/observable
00085   _x=createAbsReal("x", "observable"); assert(_x);
00086   RooRealVar *x=(RooRealVar *)RooArgList(_obsSet).at(0); assert(x);
00087 
00088   // Config pdf params
00089   _mean=createAbsReal("mean", "#mu", (x->getMin()+x->getMax())/2,
00090                       x->getMin(), x->getMax(), _x->getUnit());
00091 
00092   _width=createAbsReal("width", "#mu", (x->getMin()+x->getMax())/8,
00093                       x->getMin(), x->getMax(), _x->getUnit());
00094 
00095   _sigma=createAbsReal("sigma", "#sigma", 0.0, 0., 1., _x->getUnit());
00096 
00097   _params.Print("v");
00098   
00099   // create pdf
00100   Bool_t doFast = kTRUE;
00101   _thePdf=new RooVoigtian(Form("the_%s", GetName()), _pdfType+" "+GetTitle(),
00102                           *_x, *_mean, *_width, *_sigma, doFast);
00103 }


Member Data Documentation

RooAbsReal* rarVoigtian::_mean [protected]

Mean of Breit-Wigner PDF.

Definition at line 48 of file rarVoigtian.hh.

Referenced by init().

RooAbsReal* rarVoigtian::_sigma [protected]

Sigma of Gaussian convolution function PDF.

Definition at line 50 of file rarVoigtian.hh.

Referenced by init().

RooAbsReal* rarVoigtian::_width [protected]

Sigma of Breit-Wigner PDF.

Definition at line 49 of file rarVoigtian.hh.

Referenced by init().

RooAbsReal* rarVoigtian::_x [protected]

Default obs.

Definition at line 47 of file rarVoigtian.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