rarArgusBG Class Reference

ArgusBG PDF builder. More...

#include <rarArgusBG.hh>

Inheritance diagram for rarArgusBG:

rarBasePdf rarConfig List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs.
RooAbsReal * _max
 End point.
RooAbsReal * _c
 Slope parameter.
RooAbsReal * _pow
 Power (normally 1/2).

Private Member Functions

 rarArgusBG (const rarArgusBG &)
 ClassDef (rarArgusBG, 0)

Detailed Description

ArgusBG PDF builder.

Build RooArgusBG Pdf.

Config Directives:
/// configStr = ArgusBG ["<Optional Title>"]
/// x = AbsReal Def
/// max = AbsReal Def
/// c = AbsReal Def
/// pow = AbsReal Def
x is the default observable. max is the end point of the pdf, usually a constant. c is the slope parameter of the pdf. pow is the power of the multiplying term (normally 1/2). All the variables can be RooRealVar or RooFormulaVar.

Definition at line 36 of file rarArgusBG.hh.


Constructor & Destructor Documentation

rarArgusBG::rarArgusBG (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 40 of file rarArgusBG.cc.

References init().

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

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

References init().

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

rarArgusBG::~rarArgusBG (  )  [virtual]

Definition at line 70 of file rarArgusBG.cc.

00071 {
00072 }

rarArgusBG::rarArgusBG ( const rarArgusBG  )  [private]


Member Function Documentation

rarArgusBG::ClassDef ( rarArgusBG  ,
 
) [private]

void rarArgusBG::init (  )  [protected, virtual]

Initial function called by ctor.

init is called by the ctor. It first creates variables by calling createAbsReal, and finally it builds RooArgusBG PDF.

Reimplemented from rarBasePdf.

Definition at line 79 of file rarArgusBG.cc.

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

Referenced by rarArgusBG().

00080 {
00081   cout<<"init of rarArgusBG for "<<GetName()<<":"<<endl;
00082   
00083   // first get its dependent/observable
00084   _x=createAbsReal("x", "observable"); assert(_x);
00085   RooRealVar *x=(RooRealVar *)RooArgList(_obsSet).at(0); assert(x);
00086   // Config pdf params
00087   _max=createAbsReal("max", "E_{end}", x->getMax(), _x->getUnit());
00088   _c=createAbsReal("c", "#xi", -23, -80, -1);
00089   _pow=createAbsReal("pow", "n", 0.5);
00090   _params.Print("v");
00091   
00092   // create pdf
00093   _thePdf=new RooArgusBG(Form("the_%s",GetName()), _pdfType+" "+GetTitle(),
00094                          *_x, *_max, *_c, *_pow);
00095 }


Member Data Documentation

RooAbsReal* rarArgusBG::_c [protected]

Slope parameter.

Definition at line 51 of file rarArgusBG.hh.

Referenced by init().

RooAbsReal* rarArgusBG::_max [protected]

End point.

Definition at line 50 of file rarArgusBG.hh.

Referenced by init().

RooAbsReal* rarArgusBG::_pow [protected]

Power (normally 1/2).

Definition at line 52 of file rarArgusBG.hh.

Referenced by init().

RooAbsReal* rarArgusBG::_x [protected]

Default obs.

Definition at line 49 of file rarArgusBG.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