rarOsipDisc Class Reference

RooGaussian/RooBreitWigner PDF builder. More...

#include <rarOsipDisc.hh>

Inheritance diagram for rarOsipDisc:

rarBasePdf rarConfig List of all members.

Public Member Functions

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

Protected Member Functions

void init ()
 Initial function called by ctor.

Protected Attributes

RooAbsReal * _x
 Default obs.
RooAbsReal * _r
RooAbsReal * _b
RooAbsReal * _a
RooAbsReal * _h
RooAbsReal * _s

Private Member Functions

 rarOsipDisc (const rarOsipDisc &)
 ClassDef (rarOsipDisc, 0)

Detailed Description

RooGaussian/RooBreitWigner PDF builder.

Build RooGaussian / RooBreitWigner Pdf.

Config Directives:
/// configStr = Funky ["<Optional Title>"]
/// x = AbsReal Def
/// mean = AbsReal Def
/// sigma = AbsReal Def
x is the default observable. mean is the mean of the PDF. sigma is the sigma of the PDF. All the variables can be RooRealVar or RooFormulaVar.

Definition at line 38 of file rarOsipDisc.hh.


Constructor & Destructor Documentation

rarOsipDisc::rarOsipDisc (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 39 of file rarOsipDisc.cc.

References init().

00040   : rarBasePdf(),
00041     _x(0), _r(0), _b(0), _a(0), _h(0), _s(0)
00042 {
00043   init();
00044 }

rarOsipDisc::rarOsipDisc ( 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 58 of file rarOsipDisc.cc.

References init().

00062   : rarBasePdf(configFile, configSec, configStr,
00063                theDatasets, theData, name, title),
00064     _x(0), _r(0), _b(0), _a(0), _h(0), _s(0)
00065 {
00066   init();
00067 }

rarOsipDisc::~rarOsipDisc (  )  [virtual]

Definition at line 69 of file rarOsipDisc.cc.

00070 {
00071 }

rarOsipDisc::rarOsipDisc ( const rarOsipDisc  )  [private]


Member Function Documentation

rarOsipDisc::ClassDef ( rarOsipDisc  ,
 
) [private]

void rarOsipDisc::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 RooOsipDisc PDF with _pdfType being OsipDisc, respectively.

Reimplemented from rarBasePdf.

Definition at line 79 of file rarOsipDisc.cc.

References _a, _b, _h, rarBasePdf::_obsSet, rarBasePdf::_params, rarBasePdf::_pdfType, _r, _s, rarBasePdf::_thePdf, _x, and rarConfig::createAbsReal().

Referenced by rarOsipDisc().

00080 {
00081   cout<<"init of rarOsipDisc 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   
00088   _r=createAbsReal("r", "#r", .1, 0., 1., _x->getUnit());
00089   _b=createAbsReal("b", "#b", .1, 0., 1., _x->getUnit());
00090   _a=createAbsReal("a", "#a", .1, 0., 1., _x->getUnit());
00091   _h=createAbsReal("h", "#h", 1.0, -10, 10, _x->getUnit());
00092   _s=createAbsReal("s", "#s", .1, 0., 1., _x->getUnit());
00093 
00094   _params.Print("v");
00095   
00096   // create pdf
00097   if("OsipDisc"==_pdfType) {
00098     _thePdf=new RooOsipDisc(Form("the_%s", GetName()),
00099                                _pdfType+" "+GetTitle(), *_x, *_r, *_b, *_a, *_h, *_s);
00100   }
00101 }


Member Data Documentation

RooAbsReal* rarOsipDisc::_a [protected]

Definition at line 53 of file rarOsipDisc.hh.

Referenced by init().

RooAbsReal* rarOsipDisc::_b [protected]

Definition at line 52 of file rarOsipDisc.hh.

Referenced by init().

RooAbsReal* rarOsipDisc::_h [protected]

Definition at line 54 of file rarOsipDisc.hh.

Referenced by init().

RooAbsReal* rarOsipDisc::_r [protected]

Definition at line 51 of file rarOsipDisc.hh.

Referenced by init().

RooAbsReal* rarOsipDisc::_s [protected]

Definition at line 55 of file rarOsipDisc.hh.

Referenced by init().

RooAbsReal* rarOsipDisc::_x [protected]

Default obs.

Definition at line 50 of file rarOsipDisc.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