112 cmdList.
Add(const_cast<RooCmdArg*>(&arg1)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg2)) ;
113 cmdList.
Add(const_cast<RooCmdArg*>(&arg3)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg4)) ;
114 cmdList.
Add(const_cast<RooCmdArg*>(&arg5)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg6)) ;
115 cmdList.
Add(const_cast<RooCmdArg*>(&arg7)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg8)) ;
124 pc.
defineSet(
"extCons",
"ExternalConstraints",0,0) ;
126 pc.
defineInt(
"randProtoData",
"PrototypeData",0,0) ;
127 pc.
defineInt(
"verboseGen",
"Verbose",0,0) ;
128 pc.
defineInt(
"extendedGen",
"Extended",0,0) ;
129 pc.
defineInt(
"binGenData",
"Binned",0,0) ;
134 pc.
defineMutex(
"ExternalConstraints",
"FitOptions") ;
140 throw std::string(
"RooMCStudy::RooMCStudy() Error in parsing arguments passed to contructor") ;
165 cPars->
add(*cParsTmp) ;
182 allConstraints.
add(*constraints) ;
188 if (allConstraints.
getSize()>0) {
189 _constrPdf =
new RooProdPdf(
"mcs_constr_prod",
"RooMCStudy constraints product",allConstraints) ;
192 consPars.
add(*cPars) ;
196 consPars.
add(*cparams) ;
204 coutI(
Generation) <<
"RooMCStudy::RooMCStudy: INFO have pdf with constraints, will generate parameters from constraint pdf for each experiment" << endl ;
234 oocoutW(
_fitModel,
Generation) <<
"RooMCStudy::RooMCStudy: WARNING Using generator option 'e' (Poisson distribution of #events) together " << endl
235 <<
" with a prototype dataset implies incomplete sampling or oversampling of proto data." << endl
236 <<
" Use option \"r\" to randomize prototype dataset order and thus to randomize" << endl
237 <<
" the set of over/undersampled prototype events for each generation cycle." << endl ;
293 list<RooAbsMCStudyModule*>::iterator iter ;
295 Bool_t ok = (*iter)->doInitializeInstance(*
this) ;
297 oocoutE(
_fitModel,
Generation) <<
"RooMCStudy::ctor: removing study module " << (*iter)->GetName() <<
" from analysis chain because initialization failed" << endl ;
323 const RooArgSet& dependents,
const char* genOptions,
324 const char* fitOptions,
const RooDataSet* genProtoData,
326 TNamed(
"mcstudy",
"mcstudy"),
344 TString genOpt(genOptions) ;
352 oocoutE(
_fitModel,
Generation) <<
"RooMCStudy::RooMCStudy: WARNING Using generator option 'e' (Poisson distribution of #events) together " << endl
353 <<
" with a prototype dataset implies incomplete sampling or oversampling of proto data." << endl
354 <<
" Use option \"r\" to randomize prototype dataset order and thus to randomize" << endl
355 <<
" the set of over/undersampled prototype events for each generation cycle." << endl ;
399 list<RooAbsMCStudyModule*>::iterator iter ;
401 Bool_t ok = (*iter)->doInitializeInstance(*
this) ;
403 oocoutE(
_fitModel,
Generation) <<
"RooMCStudy::ctor: removing study module " << (*iter)->GetName() <<
" from analysis chain because initialization failed" << endl ;
467 list<RooAbsMCStudyModule*>::iterator iter ;
469 (*iter)->initializeRun(nSamples) ;
472 Int_t prescale = nSamples>100 ?
Int_t(nSamples/100) : 1 ;
476 if (nSamples%prescale==0) {
488 Int_t nEvt(nEvtPerSample) ;
506 list<RooAbsMCStudyModule*>::iterator iter2 ;
508 (*iter2)->processBeforeGen(nSamples) ;
532 oocoutI(
_fitModel,
Generation) <<
"RooMCStudy: (Re)randomizing event order in prototype dataset (Nevt=" << nEvt <<
")" << endl ;
538 cout <<
"RooMCStudy: now generating " << nEvt <<
" events" << endl ;
551 }
else if (asciiFilePat) {
554 char asciiFile[1024] ;
555 snprintf(asciiFile,1024,asciiFilePat,nSamples) ;
563 existingData =
kTRUE ;
574 list<RooAbsMCStudyModule*>::iterator iter3 ;
576 (*iter3)->processBetweenGenAndFit(nSamples) ;
583 (*iter3)->processAfterFit(nSamples) ;
587 if (doGenerate && asciiFilePat && *asciiFilePat) {
588 char asciiFile[1024] ;
589 snprintf(asciiFile,1024,asciiFilePat,nSamples) ;
592 unbinnedData->
write(asciiFile) ;
594 coutE(
InputArguments) <<
"RooMCStudy::run(" <<
GetName() <<
") ERROR: ASCII writing of binned datasets is not supported" << endl ;
609 RooDataSet* auxData = (*iter)->finalizeRun() ;
660 return run(
kTRUE,
kTRUE,nSamples,nEvtPerSample,keepGenData,asciiFilePat) ;
680 return run(
kTRUE,
kFALSE,nSamples,nEvtPerSample,keepGenData,asciiFilePat) ;
744 TString fitOpt2(
_fitOptions) ; fitOpt2.Append(
"r") ;
746 fitOpt2.Append(
"b") ;
771 fitOptList.
Add(&save) ;
773 fitOptList.
Add(&condo) ;
776 fitOptList.
Add(&plevel) ;
800 fr =
doFit(genSample) ;
828 fr =
doFit(genSample) ;
852 if (userSaveRequest) {
918 name.Append(
"pull") ;
919 title.Append(
" Pull") ;
1006 << sampleNum <<
", did you use the 'r; fit option?" << endl ;
1078 return plotParam(*param,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) ;
1100 cmdList.
Add(const_cast<RooCmdArg*>(&arg1)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg2)) ;
1101 cmdList.
Add(const_cast<RooCmdArg*>(&arg3)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg4)) ;
1102 cmdList.
Add(const_cast<RooCmdArg*>(&arg5)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg6)) ;
1103 cmdList.
Add(const_cast<RooCmdArg*>(&arg7)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg8)) ;
1161 RooPlot* frame =
plotParam(*evar_rrv,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) ;
1190 cmdList.
Add(const_cast<RooCmdArg*>(&arg1)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg2)) ;
1191 cmdList.
Add(const_cast<RooCmdArg*>(&arg3)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg4)) ;
1192 cmdList.
Add(const_cast<RooCmdArg*>(&arg5)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg6)) ;
1193 cmdList.
Add(const_cast<RooCmdArg*>(&arg7)) ; cmdList.
Add(const_cast<RooCmdArg*>(&arg8)) ;
1196 name.Append(
"pull") ; title.Append(
" Pull") ;
1206 pc.
defineInt(
"fitGauss",
"FitGauss",0,0) ;
1217 RooRealVar pullMean(
"pullMean",
"Mean of pull",0,-10,10) ;
1218 RooRealVar pullSigma(
"pullSigma",
"Width of pull",1,0.1,5) ;
1220 "exp(-0.5*(@0-@1)*(@0-@1)/(@2*@2))",
1223 pullGauss.
plotOn(frame) ;
1274 frameCmdList.
Add(&range) ;
1276 frameCmdList.
Add(&autor) ;
1278 frame = param.
frame(frameCmdList) ;
1340 name.Append(
"pull") ; title.Append(
" Pull") ;
1348 RooRealVar pullMean(
"pullMean",
"Mean of pull",0,lo,hi) ;
1349 RooRealVar pullSigma(
"pullSigma",
"Width of pull",1,0,5) ;
1351 "exp(-0.5*(@0-@1)*(@0-@1)/(@2*@2))",
1354 pullGauss.
plotOn(frame) ;
virtual Double_t sumEntries() const =0
virtual const char * GetName() const
Returns name of object.
Bool_t doInitializeInstance(RooMCStudy &)
Store reference to RooMCStudy object that this module relates to and call internal module initializat...
Bool_t fitSample(RooAbsData *genSample)
Internal method.
RooFitResult * refit(RooAbsData *genSample=0)
Redo fit on 'current' toy sample, or if genSample is not NULL do fit on given sample instead...
Bool_t fit(Int_t nSamples, const char *asciiFilePat)
Fit 'nSamples' datasets, which are read from ASCII files.
RooMCStudy is a help class to facilitate Monte Carlo studies such as 'goodness-of-fit' studies...
TIterator * createIterator(Bool_t dir=kIterForward) const
RooPlot * plotParamOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Plot the distribution of fitted values of a parameter.
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
RooMCStudy(const RooAbsPdf &model, const RooArgSet &observables, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
const RooArgList & floatParsFinal() const
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
Plot dataset on specified frame.
RooAbsMCStudyModule is a base class for add-on modules to RooMCStudy that can perform additional calc...
RooAbsGenContext * _constrGenContext
Bool_t defineDouble(const char *name, const char *argName, Int_t doubleNum, Double_t defValue=0.)
Define Double_t property name 'name' mapped to Double_t in slot 'doubleNum' in RooCmdArg with name ar...
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
virtual RooDataHist * generateBinned(const RooArgSet &whatVars, Double_t nEvents, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none())
Generate a new dataset containing the specified variables with events sampled from our distribution...
virtual TObject * Clone(const char *newName=0) const
Make a clone of an object using the Streamer facility.
const char * getString(const char *name, const char *defaultValue="", Bool_t convEmptyToNull=kFALSE)
Return string property registered with name 'name'.
RooCmdArg PrintLevel(Int_t code)
RooProdPdf is an efficient implementation of a product of PDFs of the form.
Class RooPullVar represents the pull of measurement w.r.t to true value using the measurement value a...
RooCmdArg Minos(Bool_t flag=kTRUE)
const RooDataSet & fitParDataSet()
Return a RooDataSet the resulting fit parameters of each toy cycle.
virtual Bool_t changeObservableName(const char *from, const char *to)
RooAbsArg * createFundamental(const char *newname=0) const
Create a RooRealVar fundamental object with our properties.
void DoFit(THnSparse *s, TF1 *f, ROOT::Fit::BinData &bd)
const RooAbsData * genData(Int_t sampleNum) const
Return the given generated dataset.
RooFit::MsgLevel globalKillBelow() const
Bool_t defineSet(const char *name, const char *argName, Int_t setNum, const RooArgSet *set=0)
Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName ...
Int_t * randomizeProtoOrder(Int_t nProto, Int_t nGen, Bool_t resample=kFALSE) const
Return lookup table with randomized access order for prototype events, given nProto prototype data ev...
virtual TObject * Clone(const char *newname=0) const
Make a clone of an object using the Streamer facility.
static RooDataSet * read(const char *filename, const RooArgList &variables, const char *opts="", const char *commonPath="", const char *indexCatName=0)
Read given list of ascii files, and construct a data set, using the given ArgList as structure defini...
void allowUndefined(Bool_t flag=kTRUE)
static RooMsgService & instance()
Return reference to singleton instance.
virtual RooPlot * plotOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none(), const RooCmdArg &arg9=RooCmdArg::none(), const RooCmdArg &arg10=RooCmdArg::none()) const
Plot (project) PDF on specified frame.
TObject * getObject(const char *name, TObject *obj=0)
Return TObject property registered with name 'name'.
std::list< RooAbsMCStudyModule * > _modList
Iterator abstract base class.
void calcPulls()
Calculate the pulls for all fit parameters in the fit results data set, and add them to that dataset...
RooPlot * plotError(const RooRealVar ¶m, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Plot the distribution of the fit errors for the specified parameter on a newly created frame...
Bool_t process(const RooCmdArg &arg)
Process given RooCmdArg.
RooCmdArg Range(const char *rangeName, Bool_t adjustNorm=kTRUE)
RooDataSet is a container class to hold N-dimensional binned data.
virtual RooAbsArg * addColumn(RooAbsArg &var, Bool_t adjustRange=kTRUE)
Add a column with the values of the given (function) argument to this dataset.
Bool_t generate(Int_t nSamples, Int_t nEvtPerSample=0, Bool_t keepGenData=kFALSE, const char *asciiFilePat=0)
Generate 'nSamples' samples of 'nEvtPerSample' events.
RooPlot * makeFrameAndPlotCmd(const RooRealVar ¶m, RooLinkedList &cmdList, Bool_t symRange=kFALSE) const
Internal function.
The TNamed class is the base class for all named ROOT classes.
void addModule(RooAbsMCStudyModule &module)
Insert given RooMCStudy add-on module to the processing chain of this MCStudy object.
Bool_t generateAndFit(Int_t nSamples, Int_t nEvtPerSample=0, Bool_t keepGenData=kFALSE, const char *asciiFilePat=0)
Generate and fit 'nSamples' samples of 'nEvtPerSample' events.
Bool_t defineString(const char *name, const char *argName, Int_t stringNum, const char *defValue="", Bool_t appendMode=kFALSE)
Define Double_t property name 'name' mapped to Double_t in slot 'stringNum' in RooCmdArg with name ar...
const RooDataSet * _genProtoData
RooErrorVar is an auxilary class that represents the error of a RooRealVar as a seperate object...
static TRandom * randomGenerator()
Return a pointer to a singleton random-number generator implementation.
void setBins(Int_t nBins, const char *name=0)
virtual Double_t expectedEvents(const RooArgSet *nset) const
Return expected number of events from this p.d.f for use in extended likelihood calculations.
Bool_t defineInt(const char *name, const char *argName, Int_t intNum, Int_t defValue=0)
Define integer property name 'name' mapped to integer in slot 'intNum' in RooCmdArg with name argName...
RooCmdArg FitOptions(const char *opts)
virtual TIterator * MakeIterator(Bool_t dir=kIterForward) const
Return a list iterator.
void stripCmdList(RooLinkedList &cmdList, const char *cmdsToPurge)
Utility function that strips command names listed (comma separated) in cmdsToPurge from cmdList...
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void attach(const RooArgSet ¶ms)
Interface to attach given parameters to object in this context.
const RooFitResult * fitResult(Int_t sampleNum) const
Return the RooFitResult object of the fit to given sample.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
virtual void Add(TObject *arg)
void defineMutex(const char *argName1, const char *argName2)
Define arguments named argName1 and argName2 mutually exclusive.
void setAttribAll(const Text_t *name, Bool_t value=kTRUE)
Set given attribute in each element of the collection by calling each elements setAttribute() functio...
Int_t getInt(const char *name, Int_t defaultValue=0)
Return integer property registered with name 'name'.
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents: An owning collection is returned containing clones o...
TObject * At(Int_t index) const
Return object stored in sequential position given by index.
RooCmdArg AutoRange(const RooAbsData &data, Double_t marginFactor=0.1)
Bool_t ok(Bool_t verbose) const
Return true of parsing was successful.
char * Form(const char *fmt,...)
void setGlobalKillBelow(RooFit::MsgLevel level)
Class RooCmdConfig is a configurable parser for RooCmdArg named arguments.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
RooDataSet is a container class to hold unbinned data.
virtual const RooArgSet * get(Int_t index) const
Return RooArgSet with coordinates of event 'index'.
virtual void add(const RooArgSet &row, Double_t weight=1.0, Double_t weightError=0)
Add a data point, with its coordinates specified in the 'data' argset, to the data set...
RooPlot * frame(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none()) const
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
RooLinkedList is an collection class for internal use, storing a collection of RooAbsArg pointers in ...
RooArgSet * getSet(const char *name, RooArgSet *set=0)
Return RooArgSet property registered with name 'name'.
const RooArgSet * fitParams(Int_t sampleNum) const
Return an argset with the fit parameters for the given sample number.
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements...
RooAbsArg * find(const char *name) const
Find object with given name in list.
void resetFitParams()
Reset all fit parameters to the initial model parameters at the time of the RooMCStudy constructor...
RooPlot * plotNLL(const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Plot the distribution of the -log(L) values on a newly created frame.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t write(const char *filename)
Write the contents of this dataset to an ASCII file with the specified name Each event will be writte...
Bool_t run(Bool_t generate, Bool_t fit, Int_t nSamples, Int_t nEvtPerSample, Bool_t keepGenData, const char *asciiFilePat)
Run engine method.
RooArgSet * getParameters(const RooAbsData *data, Bool_t stripDisconnected=kTRUE) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
virtual RooAbsGenContext * genContext(const RooArgSet &vars, const RooDataSet *prototype=0, const RooArgSet *auxProto=0, Bool_t verbose=kFALSE) const
Interface function to create a generator context from a p.d.f.
Double_t getDouble(const char *name, Double_t defaultValue=0)
Return Double_t property registered with name 'name'.
RooLinkedList _fitOptList
RooPlot * plotPull(const RooRealVar ¶m, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Plot the distribution of pull values for the specified parameter on a newly created frame...
RooPlot * plotParam(const RooRealVar ¶m, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Plot the distribution of the fitted value of the given parameter on a newly created frame...
virtual void setProtoDataOrder(Int_t *lut)
Set the traversal order of prototype data to that in the lookup tables passed as argument.
Bool_t addFitResult(const RooFitResult &fr)
Utility function to add fit result from external fit to this RooMCStudy and process its results throu...
virtual ~RooMCStudy()
Destructor.
RooFitResult * doFit(RooAbsData *genSample)
Internal function. Performs actual fit according to specifications.
virtual RooDataSet * generate(Double_t nEvents=0, Bool_t skipInit=kFALSE, Bool_t extendedMode=kFALSE)
Generate the specified number of events with nEvents>0 and and return a dataset containing the genera...
Mother of all ROOT objects.
RooAbsGenContext * _genContext
RooCmdArg Save(Bool_t flag=kTRUE)
Bool_t hasProcessed(const char *cmdName) const
Return true if RooCmdArg with name 'cmdName' has been processed.
virtual RooPlot * paramOn(RooPlot *frame, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Add a box with parameter values (and errors) to the specified frame.
RooErrorVar * errorVar() const
Return a RooAbsRealLValue representing the error associated with this variable.
RooArgSet * _fitInitParams
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Bool_t merge(RooDataSet *data1, RooDataSet *data2=0, RooDataSet *data3=0, RooDataSet *data4=0, RooDataSet *data5=0, RooDataSet *data6=0)
virtual void Add(TObject *obj)
virtual TObject * Next()=0
virtual RooArgSet * getAllConstraints(const RooArgSet &observables, RooArgSet &constrainedParams, Bool_t stripDisconnected=kTRUE) const
This helper function finds and collects all constraints terms of all coponent p.d.f.s and returns a RooArgSet with all those terms.
RooCmdArg AutoSymRange(const RooAbsData &data, Double_t marginFactor=0.1)
RooCmdArg Bins(Int_t nbin)
RooGenericPdf is a concrete implementation of a probability density function, which takes a RooArgLis...
virtual RooFitResult * fitTo(RooAbsData &data, const RooCmdArg &arg1=RooCmdArg::none(), const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none(), const RooCmdArg &arg6=RooCmdArg::none(), const RooCmdArg &arg7=RooCmdArg::none(), const RooCmdArg &arg8=RooCmdArg::none())
Fit PDF to given dataset.
float type_of_call hi(const int &, const int &)
Bool_t defineObject(const char *name, const char *argName, Int_t setNum, const TObject *obj=0, Bool_t isArray=kFALSE)
Define TObject property name 'name' mapped to object in slot 'setNum' in RooCmdArg with name argName ...
virtual Int_t Poisson(Double_t mean)
Generates a random integer N according to a Poisson law.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual Int_t GetSize() const
RooCmdArg ConditionalObservables(const RooArgSet &set)
RooCmdArg ExternalConstraints(const RooArgSet &constraintPdfs)
RooCmdArg Constrain(const RooArgSet ¶ms)
virtual Int_t numEntries() const
RooLinkedList & subArgs()
virtual const char * GetTitle() const
Returns title of object.
RooCmdArg is a named container for two doubles, two integers two object points and three string point...
static int pull(FILE *fp, struct mg_connection *conn, char *buf, int len, double timeout)
RooArgSet * _genInitParams