#include <rarMultPdf.hh>
Inheritance diagram for rarMultPdf:
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) |
Build composite pdfs through RooMultGeneric
Definition at line 26 of file rarMultPdf.hh.
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.
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 |
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] |
rarMultPdf::rarMultPdf | ( | const rarMultPdf & | ) | [private] |
rarMultPdf::ClassDef | ( | rarMultPdf | , | |
0 | ||||
) | [private] |
RooPlot * rarMultPdf::doPdfPlot | ( | TList & | plotList, | |
TString | pdfList = "" | |||
) | [virtual] |
Do pdfPlot for MultPdf (Overlay component plots).
plotList | List of plots | |
pdfList | List of PDFs to be plotted |
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.
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 }