rarNovosibirsk Class Reference

Exponential PDF builder. More...

#include <rarNovosibirsk.hh>

Inheritance diagram for rarNovosibirsk:

rarBasePdf rarConfig List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs.
RooAbsReal * _peak
 Peak position of the PDF.
RooAbsReal * _width
 Width of the PDF.
RooAbsReal * _tail
 Tail parameter of the PDF.

Private Member Functions

 rarNovosibirsk (const rarNovosibirsk &)
 ClassDef (rarNovosibirsk, 0)

Detailed Description

Exponential PDF builder.

Build RooNovosibirsk Pdf.

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

Definition at line 36 of file rarNovosibirsk.hh.

Constructor & Destructor Documentation

rarNovosibirsk::rarNovosibirsk (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 41 of file rarNovosibirsk.cc.

References init().

00042   : rarBasePdf(),
00043     _x(0), _peak(0), _width(0), _tail(0)
00044 {
00045   init();
00046 }

rarNovosibirsk::rarNovosibirsk ( const char *  configFile,
const char *  configSec,
const char *  configStr,
rarDatasets theDatasets,
RooDataSet *  theData,
const char *  name,
const char *  title 

Default ctor.

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 60 of file rarNovosibirsk.cc.

References init().

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

rarNovosibirsk::~rarNovosibirsk (  )  [virtual]

Definition at line 71 of file rarNovosibirsk.cc.

00072 {
00073 }

rarNovosibirsk::rarNovosibirsk ( const rarNovosibirsk  )  [private]

Member Function Documentation

rarNovosibirsk::ClassDef ( rarNovosibirsk  ,
) [private]

void rarNovosibirsk::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 RooNovosibirsk PDF.

Reimplemented from rarBasePdf.

Definition at line 80 of file rarNovosibirsk.cc.

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

Referenced by rarNovosibirsk().

00081 {
00082   cout<<"init of rarNovosibirsk for "<<GetName()<<":"<<endl;
00084   // first get its obs
00085   _x=createAbsReal("x", "observable"); assert(_x);
00086   // Config pdf params
00087   _peak=createAbsReal("peak", "peak", 0, -10, 10);
00088   _width=createAbsReal("width", "width", 0, -10, 10);
00089   _tail=createAbsReal("tail", "tail", 0, -10, 10);
00090   _params.Print("v");
00092   // create pdf
00093   _thePdf=new RooNovosibirsk(Form("the_%s", GetName()),_pdfType+" "+GetTitle(),
00094                              *_x, *_peak, *_width, *_tail);
00095 }

Member Data Documentation

RooAbsReal* rarNovosibirsk::_peak [protected]

Peak position of the PDF.

Definition at line 49 of file rarNovosibirsk.hh.

Referenced by init().

RooAbsReal* rarNovosibirsk::_tail [protected]

Tail parameter of the PDF.

Definition at line 51 of file rarNovosibirsk.hh.

Referenced by init().

RooAbsReal* rarNovosibirsk::_width [protected]

Width of the PDF.

Definition at line 50 of file rarNovosibirsk.hh.

Referenced by init().

RooAbsReal* rarNovosibirsk::_x [protected]

Default obs.

Definition at line 48 of file rarNovosibirsk.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