rarCruijff Class Reference

User-defined PDF builder. More...

#include <rarCruijff.hh>

Inheritance diagram for rarCruijff:

rarBasePdf rarConfig List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs.
RooAbsReal * _m0
 mean of the distribution
RooAbsReal * _sigmaL
 Left handed width.
RooAbsReal * _sigmaR
 Right handed width.
RooAbsReal * _alphaL
 Left handed alpha.
RooAbsReal * _alphaR
 Right haded alpha.

Private Member Functions

 rarCruijff (const rarCruijff &)
 ClassDef (rarCruijff, 0)

Detailed Description

User-defined PDF builder.

Config Directives:
See doc for UsrPdf configs.

Definition at line 24 of file rarCruijff.hh.


Constructor & Destructor Documentation

rarCruijff::rarCruijff (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 43 of file rarCruijff.cc.

References init().

00044   : rarBasePdf(),
00045     _x(0), _m0(0), _sigmaL(0), _sigmaR(0), _alphaL(0), _alphaR(0)
00046 {
00047   init();
00048 }

rarCruijff::rarCruijff ( 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 62 of file rarCruijff.cc.

References init().

00066   : rarBasePdf(configFile, configSec, configStr,
00067                theDatasets, theData, name, title),
00068     _x(0), _m0(0), _sigmaL(0), _sigmaR(0), _alphaL(0), _alphaR(0)
00069 {
00070   init();
00071 }

rarCruijff::~rarCruijff (  )  [virtual]

Definition at line 73 of file rarCruijff.cc.

00074 {
00075 }

rarCruijff::rarCruijff ( const rarCruijff  )  [private]


Member Function Documentation

rarCruijff::ClassDef ( rarCruijff  ,
 
) [private]

void rarCruijff::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 User-defined PDF.

Reimplemented from rarBasePdf.

Definition at line 82 of file rarCruijff.cc.

References _alphaL, _alphaR, _m0, rarBasePdf::_params, rarBasePdf::_pdfType, _sigmaL, _sigmaR, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().

Referenced by rarCruijff().

00083 {
00084   cout<<"init of rarCruijff for "<<GetName()<<":"<<endl;
00085   
00086   // first get its obs
00087   _x=createAbsReal("x", "observable"); assert(_x);
00088   // Config pdf params
00089   // for example, a is now mean, b sigma, etc.
00090   // [myPdf Config]
00091   // configStr = UsrPdf
00092   // x = AbsReal Def
00093   // mean = AbsReal Def
00094   // sigmaL = AbsReal Def
00095   // sigmaR = AbsReal Def
00096   // alphaL = AbsReal Def
00097   // alphaR = AbsReal Def
00098   
00099   // Default param creation
00100   _m0     = createAbsReal("mean", "#mu", 0, -10, 10);
00101   _sigmaL = createAbsReal("sigmaL", "#sigma_{L}", 0, -10, 10);
00102   _sigmaR = createAbsReal("sigmaR", "#sigma_{R}", 0, -10, 10);
00103   _alphaL = createAbsReal("alphaL", "#alpha_{L}", 0, -10, 10);
00104   _alphaR = createAbsReal("alphaR", "#alpha_{R}", 0, -10, 10);
00105   _params.Print("v");
00106 
00107   // create pdf
00108   _thePdf=new RooCruijff(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00109                          *_x, *_m0, *_sigmaL, *_sigmaR, *_alphaL, *_alphaR);
00110 
00111 }


Member Data Documentation

RooAbsReal* rarCruijff::_alphaL [protected]

Left handed alpha.

Definition at line 41 of file rarCruijff.hh.

Referenced by init().

RooAbsReal* rarCruijff::_alphaR [protected]

Right haded alpha.

Definition at line 42 of file rarCruijff.hh.

Referenced by init().

RooAbsReal* rarCruijff::_m0 [protected]

mean of the distribution

Definition at line 38 of file rarCruijff.hh.

Referenced by init().

RooAbsReal* rarCruijff::_sigmaL [protected]

Left handed width.

Definition at line 39 of file rarCruijff.hh.

Referenced by init().

RooAbsReal* rarCruijff::_sigmaR [protected]

Right handed width.

Definition at line 40 of file rarCruijff.hh.

Referenced by init().

RooAbsReal* rarCruijff::_x [protected]

Default obs.

Definition at line 37 of file rarCruijff.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