rarBallack Class Reference

Exponential PDF builder. More...

#include <rarBallack.hh>

Inheritance diagram for rarBallack:

rarBasePdf rarConfig List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs.
RooAbsReal * _mean
 Peak position of the PDF.
RooAbsReal * _width
 Width of the PDF.
RooAbsReal * _tail
 Tail parameter of the PDF.
RooAbsReal * _alpha
 Attaching point.
RooAbsReal * _n
 Attached polynomial power.

Private Member Functions

 rarBallack (const rarBallack &)
 ClassDef (rarBallack, 0)

Detailed Description

Exponential PDF builder.

Build RooBallack Pdf.

Config Directives:
/// configStr = Exp ["<Optional Title>"]
/// x = AbsReal Def
/// mean  = AbsReal Def
/// width = AbsReal Def
/// tail  = AbsReal Def
/// alpha = AbsReal Def
/// n     = AbsReal Def
x is the default observable. mean is the peak position of the pdf. width is the width of the pdf. tail is the tail parameter of the pdf. alpha is the atachment point of the polynomial tail. n is the power of the polynomial of the pdf. All the variables can be RooRealVar or RooFormulaVar.

Definition at line 40 of file rarBallack.hh.


Constructor & Destructor Documentation

rarBallack::rarBallack (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 43 of file rarBallack.cc.

References init().

00044   : rarBasePdf(),
00045     _x(0), _mean(0), _width(0), _tail(0), _alpha(0), _n(0)
00046 {
00047   init();
00048 }

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

References init().

00066   : rarBasePdf(configFile, configSec, configStr,
00067                theDatasets, theData, name, title),
00068     _x(0), _mean(0), _width(0), _tail(0), _alpha(0), _n(0)
00069 {
00070   init();
00071 }

rarBallack::~rarBallack (  )  [virtual]

Definition at line 73 of file rarBallack.cc.

00074 {
00075 }

rarBallack::rarBallack ( const rarBallack  )  [private]


Member Function Documentation

rarBallack::ClassDef ( rarBallack  ,
 
) [private]

void rarBallack::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 RooBallack PDF.

Reimplemented from rarBasePdf.

Definition at line 82 of file rarBallack.cc.

References _alpha, _mean, _n, rarBasePdf::_params, rarBasePdf::_pdfType, _tail, rarBasePdf::_thePdf, _width, _x, and rarConfig::createAbsReal().

Referenced by rarBallack().

00083 {
00084   cout<<"init of rarBallack for "<<GetName()<<":"<<endl;
00085   
00086   // first get its obs
00087   _x=createAbsReal("x", "observable"); assert(_x);
00088   // Config pdf params
00089   _mean=createAbsReal("mean", "mean", 0, -10, 10);
00090   _width=createAbsReal("width", "width", 0, -10, 10);
00091   _tail=createAbsReal("tail", "tail", 0, -10, 10);
00092   _alpha=createAbsReal("alpha", "alpha", 0, -10, 10);
00093   _n=createAbsReal("n", "n", 0, -10, 10);
00094   _params.Print("v");
00095   
00096   // create pdf
00097   _thePdf=new RooBallack(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00098                          *_x, *_mean, *_width, *_tail, *_alpha, *_n);
00099 }


Member Data Documentation

RooAbsReal* rarBallack::_alpha [protected]

Attaching point.

Definition at line 56 of file rarBallack.hh.

Referenced by init().

RooAbsReal* rarBallack::_mean [protected]

Peak position of the PDF.

Definition at line 53 of file rarBallack.hh.

Referenced by init().

RooAbsReal* rarBallack::_n [protected]

Attached polynomial power.

Definition at line 57 of file rarBallack.hh.

Referenced by init().

RooAbsReal* rarBallack::_tail [protected]

Tail parameter of the PDF.

Definition at line 55 of file rarBallack.hh.

Referenced by init().

RooAbsReal* rarBallack::_width [protected]

Width of the PDF.

Definition at line 54 of file rarBallack.hh.

Referenced by init().

RooAbsReal* rarBallack::_x [protected]

Default obs.

Definition at line 52 of file rarBallack.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