rarMultPdf Class Reference

MultPdfPdf builder. More...

#include <rarMultPdf.hh>

Inheritance diagram for rarMultPdf:

rarCompBase rarBasePdf rarConfig List of all members.

Public Member Functions

 rarMultPdf ()
 Trivial ctor.
 rarMultPdf (const char *configFile, const char *configSec, const char *configStr, rarDatasets *theDatasets, RooDataSet *theData, const char *name, const char *title)
 Default ctor.
virtual ~rarMultPdf ()
virtual RooPlot * doPdfPlot (TList &plotList, TString pdfList="")
 Do pdfPlot for MultPdf (Overlay component plots).

Protected Member Functions

void init ()
 Initial function called by ctor.

Private Member Functions

 rarMultPdf (const rarMultPdf &)
 ClassDef (rarMultPdf, 0)

Detailed Description

MultPdfPdf builder.

Build composite pdfs through RooMultGeneric

Config Directives:
See doc for MultPdf configs.

Definition at line 26 of file rarMultPdf.hh.


Constructor & Destructor Documentation

rarMultPdf::rarMultPdf (  ) 

Trivial ctor.

Usually the objects should be created using other ctors.

Definition at line 41 of file rarMultPdf.cc.

References init().

00042   : rarCompBase()
00043 {
00044   init();
00045 }

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

References init().

00063   : rarCompBase(configFile, configSec, configStr,
00064                 theDatasets, theData, name, title, kTRUE)
00065 {
00066   init();
00067 }

rarMultPdf::~rarMultPdf (  )  [virtual]

Definition at line 69 of file rarMultPdf.cc.

00070 {
00071 }

rarMultPdf::rarMultPdf ( const rarMultPdf  )  [private]


Member Function Documentation

rarMultPdf::ClassDef ( rarMultPdf  ,
 
) [private]

RooPlot * rarMultPdf::doPdfPlot ( TList &  plotList,
TString  pdfList = "" 
) [virtual]

Do pdfPlot for MultPdf (Overlay component plots).

Parameters:
plotList List of plots
pdfList List of PDFs to be plotted
Returns:
The last RooPlot created
Use rarBasePdf::doPdfPlot

Reimplemented from rarCompBase.

Definition at line 102 of file rarMultPdf.cc.

References rarBasePdf::doPdfPlot().

00103 {
00104   return rarBasePdf::doPdfPlot(plotList, pdfList);
00105 }

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

Initial function called by ctor.

Todo:
should have its own getProtGen(), similar to that for prodpdf

Reimplemented from rarCompBase.

Definition at line 80 of file rarMultPdf.cc.

References rarBasePdf::_pdfType, rarBasePdf::_subPdfs, and rarBasePdf::_thePdf.

Referenced by rarMultPdf().

00081 {
00082   
00083   TString format = "@0";
00084   for(Int_t i = 1; i < _subPdfs.getSize(); ++i) {
00085     format += Form (" * @%d", i);
00086   }
00087   
00088   _thePdf=new RooGenericPdf(Form("the_%s", GetName()), _pdfType+" "+GetTitle(),
00089                             format, _subPdfs);
00090   
00091   
00092   cout<<"done init of rarMultPdf for "<<GetName()<<endl<<endl;
00093 }


The documentation for this class was generated from the following files:
Generated on 30 Oct 2013 for RooRarFit by  doxygen 1.4.7