rarExp Class Reference

Exponential PDF builder. More...

#include <rarExp.hh>

Inheritance diagram for rarExp:

rarBasePdf rarConfig List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs.
RooAbsReal * _c
 Exponent of the PDF.

Private Member Functions

 rarExp (const rarExp &)
 ClassDef (rarExp, 0)

Detailed Description

Exponential PDF builder.

Build RooExponential Pdf.

Config Directives:
/// configStr = Exp ["<Optional Title>"]
/// x = AbsReal Def
/// c = AbsReal Def
x is the default observable. c is the exponent of the pdf. All the variables can be RooRealVar or RooFormulaVar.

Definition at line 31 of file rarExp.hh.


Constructor & Destructor Documentation

rarExp::rarExp (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 40 of file rarExp.cc.

References init().

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

rarExp::rarExp ( 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 rarExp.cc.

References init().

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

rarExp::~rarExp (  )  [virtual]

Definition at line 70 of file rarExp.cc.

00071 {
00072 }

rarExp::rarExp ( const rarExp  )  [private]


Member Function Documentation

rarExp::ClassDef ( rarExp  ,
 
) [private]

void rarExp::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 RooExponential PDF.

Reimplemented from rarBasePdf.

Definition at line 79 of file rarExp.cc.

References _c, rarBasePdf::_params, rarBasePdf::_pdfType, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().

Referenced by rarExp().

00080 {
00081   cout<<"init of rarExp for "<<GetName()<<":"<<endl;
00082   
00083   // first get its obs
00084   _x=createAbsReal("x", "observable"); assert(_x);
00085   // Config pdf params
00086   _c=createAbsReal("c", "c", 0, -10, 10);
00087   _params.Print("v");
00088   
00089   // create pdf
00090   _thePdf=new RooExponential(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00091                              *_x, *_c);
00092 }


Member Data Documentation

RooAbsReal* rarExp::_c [protected]

Exponent of the PDF.

Definition at line 44 of file rarExp.hh.

Referenced by init().

RooAbsReal* rarExp::_x [protected]

Default obs.

Definition at line 43 of file rarExp.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