11 #ifndef ROOSTATS_ModelConfig 12 #define ROOSTATS_ModelConfig 78 if(strcmp(
name,
"")==0)
210 if (!
GetWS() )
return;
212 if(
GetWS()->pdf(name))
220 if (!
GetWS() )
return;
222 if(
GetWS()->pdf(name))
231 if (!
GetWS() )
return;
void setAttribute(const Text_t *name, Bool_t value=kTRUE)
Set (default) or clear a named boolean attribute of this object.
virtual const char * GetName() const
Returns name of object.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
virtual void SetProtoData(const char *name)
specify the name of the dataset in the workspace to be used
const RooArgSet * GetObservables() const
get RooArgSet for observables (return NULL if not existing)
virtual void SetPdf(const char *name)
specify the name of the PDF in the workspace to be used
void LoadSnapshot() const
virtual void SetWorkspace(RooWorkspace &ws)
void GuessObsAndNuisance(const RooAbsData &data)
guesses Observables and ParametersOfInterest if not already set
virtual void SetName(const char *name)
Set the name of the TNamed.
std::string fNuisParamsName
name for RooArgSet specifying parameters of interest
std::string fGlobalObsName
name for RooArgSet specifying conditional observables
void ImportDataInWS(RooAbsData &data)
internal function to import data in WS
virtual void SetObservables(const RooArgSet &set)
specify the observables
virtual ModelConfig * Clone(const char *name="") const
clone
std::string fPdfName
name of the WS
virtual void SetGlobalObservables(const char *argList)
specify the global observables through a list of comma-separated arguments already in the workspace ...
std::string fSnapshotName
name for RooArgSet specifying dataset that should be used as protodata
Persistent Reference link to a TObject A TRef is a lightweight object pointing to any TObject...
#define ClassDef(name, id)
ModelConfig(const char *name, const char *title, RooWorkspace *ws=0)
The TNamed class is the base class for all named ROOT classes.
virtual void SetObservables(const char *argList)
specify the observables through a list of comma-separated arguments already in the workspace ...
virtual void SetPdf(const RooAbsPdf &pdf)
Set the Pdf, add to the the workspace if not already there.
std::string fConstrParamsName
name for RooArgSet specifying nuisance parameters
std::string fPriorPdfName
name for RooArgSet specifying constrained parameters
std::string fWSName
WS reference used in the file.
std::string fConditionalObsName
name for RooAbsPdf specifying a prior on the parameters
ModelConfig(const char *name, RooWorkspace *ws=0)
RooWorkspace * GetWorkspace() const
alias for GetWS()
RooAbsData * data(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found...
RooAbsPdf * GetPriorPdf() const
get parameters prior pdf (return NULL if not existing)
std::string fObservablesName
name for RooArgSet that specifies a particular hypothesis
const RooArgSet * GetConditionalObservables() const
get RooArgSet for conditional observables (return NULL if not existing)
std::string fPOIName
name of data set in workspace
virtual void Print(Option_t *option="") const
overload the print method
RooWorkspace * GetWS() const
virtual void SetParameters(const RooArgSet &set)
specify the parameters of interest in the interval
virtual void SetNuisanceParameters(const RooArgSet &set)
specify the nuisance parameters (e.g. the rest of the parameters)
virtual void SetConstraintParameters(const RooArgSet &set)
specify the constraint parameters
virtual void SetWS(RooWorkspace &ws)
set a workspace that owns all the necessary components for the analysis
virtual void SetConditionalObservables(const RooArgSet &set)
specify the conditional observables
RooAbsData is the common abstract base class for binned and unbinned datasets.
std::string fProtoDataName
name for RooArgSet specifying global observables
virtual void SetPriorPdf(const char *name)
specify the name of the PDF in the workspace to be used
virtual void SetProtoData(RooAbsData &data)
Set the proto DataSet, add to the the workspace if not already there.
Bool_t SetHasOnlyParameters(const RooArgSet &set, const char *errorMsgPrefix=0)
helper function to check that content of a given set is exclusively parameters
ModelConfig(RooWorkspace *ws=0)
RooAbsData * GetProtoData() const
get Proto data set (return NULL if not existing)
void ImportPdfInWS(const RooAbsPdf &pdf)
internal function to import Pdf in WS
Namespace for the RooStats classes.
RooAbsPdf * GetPdf() const
get model PDF (return NULL if pdf has not been specified or does not exist)
const RooArgSet * GetParametersOfInterest() const
get RooArgSet containing the parameter of interest (return NULL if not existing)
virtual void SetParameters(const char *argList)
specify the parameters of interest through a list of comma-separated arguments already in the workspa...
RooAbsPdf * pdf(const char *name) const
Retrieve p.d.f (RooAbsPdf) with given name. A null pointer is returned if not found.
const RooArgSet * GetConstraintParameters() const
get RooArgSet containing the constraint parameters (return NULL if not existing)
virtual void SetNuisanceParameters(const char *argList)
specify the nuisance parameters through a list of comma-separated arguments already in the workspace ...
virtual void SetPriorPdf(const RooAbsPdf &pdf)
Set the Prior Pdf, add to the the workspace if not already there.
void DefineSetInWS(const char *name, const RooArgSet &set)
helper functions to define a set in the WS
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
const RooArgSet * GetGlobalObservables() const
get RooArgSet for global observables (return NULL if not existing)
const RooArgSet * GetNuisanceParameters() const
get RooArgSet containing the nuisance parameters (return NULL if not existing)
const RooArgSet * set(const char *name)
Return pointer to previously defined named set with given nmame If no such set is found a null pointe...
virtual void SetParametersOfInterest(const RooArgSet &set)
virtual void SetConditionalObservables(const char *argList)
specify the conditional observables through a list of comma-separated arguments already in the worksp...
virtual void SetParametersOfInterest(const char *argList)
const RooArgSet * GetSnapshot() const
get RooArgSet for parameters for a particular hypothesis (return NULL if not existing) ...
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual void SetGlobalObservables(const RooArgSet &set)
specify the global observables
virtual void SetSnapshot(const RooArgSet &set)
set parameter values for a particular hypothesis if using a common PDF by saving a snapshot in the wo...
std::string fDataName
name of PDF in workspace
virtual void SetConstraintParameters(const char *argList)
specify the constraint parameters through a list of comma-separated arguments already in the workspac...
The RooWorkspace is a persistable container for RooFit projects.