ROOT » ROOFIT » ROOSTATS » RooStats::ModelConfig

class RooStats::ModelConfig: public TNamed

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual RooStats::ModelConfig*Clone(const char* name = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
const RooArgSet*GetConditionalObservables() const
const RooArgSet*GetConstraintParameters() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
const RooArgSet*GetGlobalObservables() const
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
const RooArgSet*GetNuisanceParameters() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
const RooArgSet*GetObservables() const
virtual Option_t*TObject::GetOption() const
const RooArgSet*GetParametersOfInterest() const
RooAbsPdf*GetPdf() const
RooAbsPdf*GetPriorPdf() const
RooAbsData*GetProtoData() const
const RooArgSet*GetSnapshot() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
RooWorkspace*GetWorkspace() const
RooWorkspace*GetWS() const
voidGuessObsAndNuisance(const RooAbsData& data)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
voidLoadSnapshot() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
RooStats::ModelConfigModelConfig(RooWorkspace* ws = 0)
RooStats::ModelConfigModelConfig(const RooStats::ModelConfig&)
RooStats::ModelConfigModelConfig(const char* name, RooWorkspace* ws = 0)
RooStats::ModelConfigModelConfig(const char* name, const char* title, RooWorkspace* ws = 0)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
RooStats::ModelConfig&operator=(const RooStats::ModelConfig&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetConditionalObservables(const RooArgSet& set)
virtual voidSetConditionalObservables(const char* argList)
virtual voidSetConstraintParameters(const RooArgSet& set)
virtual voidSetConstraintParameters(const char* argList)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetGlobalObservables(const RooArgSet& set)
virtual voidSetGlobalObservables(const char* argList)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
virtual voidSetNuisanceParameters(const RooArgSet& set)
virtual voidSetNuisanceParameters(const char* argList)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetObservables(const RooArgSet& set)
virtual voidSetObservables(const char* argList)
virtual voidSetParameters(const RooArgSet& set)
virtual voidSetParameters(const char* argList)
virtual voidSetParametersOfInterest(const RooArgSet& set)
virtual voidSetParametersOfInterest(const char* argList)
virtual voidSetPdf(const RooAbsPdf& pdf)
virtual voidSetPdf(const char* name)
virtual voidSetPriorPdf(const RooAbsPdf& pdf)
virtual voidSetPriorPdf(const char* name)
virtual voidSetProtoData(RooAbsData& data)
virtual voidSetProtoData(const char* name)
virtual voidSetSnapshot(const RooArgSet& set)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetWorkspace(RooWorkspace& ws)
virtual voidSetWS(RooWorkspace& ws)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
voidDefineSetInWS(const char* name, const RooArgSet& set)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidImportDataInWS(RooAbsData& data)
voidImportPdfInWS(const RooAbsPdf& pdf)
Bool_tSetHasOnlyParameters(const RooArgSet& set, const char* errorMsgPrefix = 0)

Data Members

static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
stringfConditionalObsNamename for RooArgSet specifying conditional observables
stringfConstrParamsNamename for RooArgSet specifying constrained parameters
stringfDataNamename of data set in workspace
stringfGlobalObsNamename for RooArgSet specifying global observables
TStringTNamed::fNameobject identifier
stringfNuisParamsNamename for RooArgSet specifying nuisance parameters
stringfObservablesNamename for RooArgSet specifying observable parameters.
stringfPOINamename for RooArgSet specifying parameters of interest
stringfPdfNamename of PDF in workspace
stringfPriorPdfNamename for RooAbsPdf specifying a prior on the parameters
stringfProtoDataNamename for RooArgSet specifying dataset that should be used as protodata
TReffRefWSWS reference used in the file
stringfSnapshotNamename for RooArgSet that specifies a particular hypothesis
TStringTNamed::fTitleobject title
stringfWSNamename of the WS

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void GuessObsAndNuisance(const RooAbsData& data)
 Makes sensible guesses of observables, parameters of interest
 and nuisance parameters.

  observables: determined from data,
  global observables = explicit obs  -  obs from data
  parameters of interest: empty,
  nuisance parameters: all parameters except parameters of interest

 We use NULL to mean not set, so we don't want to fill
 with empty RooArgSets
void Print(Option_t* option = "") const
 print contents of Model on the default print stream
 It can be changed using RooPrintable
void SetWS(RooWorkspace& ws)
 set a workspace that owns all the necessary components for the analysis
RooWorkspace * GetWS() const
 get from TRef
void SetSnapshot(const RooArgSet& set)
 save snaphot in the workspace
 and use values passed with the set
const RooArgSet * GetSnapshot() const
 Load the snapshot from ws and return the corresponding set with the snapshot values.
 User must delete returned RooArgSet.
void LoadSnapshot() const
 load the snapshot from ws if it exists
void DefineSetInWS(const char* name, const RooArgSet& set)
 helper functions to avoid code duplication
void ImportPdfInWS(const RooAbsPdf& pdf)
 internal function to import Pdf in WS
void ImportDataInWS(RooAbsData& data)
 internal function to import data in WS
Bool_t SetHasOnlyParameters(const RooArgSet& set, const char* errorMsgPrefix = 0)
ModelConfig(RooWorkspace* ws = 0)
ModelConfig(const char* name, RooWorkspace* ws = 0)
ModelConfig(const char* name, const char* title, RooWorkspace* ws = 0)
ModelConfig * Clone(const char* name = "") const
void SetWorkspace(RooWorkspace& ws)
 alias for SetWS(...)
{ SetWS(ws); }
void SetProtoData(RooAbsData& data)
 Set the proto DataSet, add to the the workspace if not already there
SetProtoData(const char* name)
void SetPdf(const RooAbsPdf& pdf)
 Set the Pdf, add to the the workspace if not already there
SetPdf(const char* name)
void SetPriorPdf(const RooAbsPdf& pdf)
 Set the Prior Pdf, add to the the workspace if not already there
SetPriorPdf(const char* name)
void SetParameters(const RooArgSet& set)
 specify the parameters of interest in the interval
void SetParametersOfInterest(const RooArgSet& set)
SetParameters(const char* argList)
void SetParametersOfInterest(const char* argList)
void SetNuisanceParameters(const RooArgSet& set)
 specify the nuisance parameters (e.g. the rest of the parameters)
void SetNuisanceParameters(const char* argList)
 specify the nuisance parameters
 through a list of comma-separated arguments already in the workspace
void SetConstraintParameters(const RooArgSet& set)
 specify the constraint parameters
void SetConstraintParameters(const char* argList)
 specify the constraint parameters
 through a list of comma-separated arguments already in the workspace
void SetObservables(const RooArgSet& set)
 specify the observables
void SetObservables(const char* argList)
 specify the observables
 through a list of comma-separated arguments already in the workspace
void SetConditionalObservables(const RooArgSet& set)
 specify the conditional observables
void SetConditionalObservables(const char* argList)
 specify the conditional observables
 through a list of comma-separated arguments already in the workspace
void SetGlobalObservables(const RooArgSet& set)
 specify the global observables
void SetGlobalObservables(const char* argList)
 specify the global observables
 through a list of comma-separated arguments already in the workspace
RooAbsPdf * GetPdf() const
getter methods
 get model PDF (return NULL if pdf has not been specified or does not exist)
{ return (GetWS()) ? GetWS()->pdf(fPdfName.c_str()) : 0; }
const RooArgSet * GetParametersOfInterest() const
 get RooArgSet containing the parameter of interest (return NULL if not existing)
{ return (GetWS()) ? GetWS()->set(fPOIName.c_str()) : 0; }
const RooArgSet * GetNuisanceParameters() const
 get RooArgSet containing the nuisance parameters (return NULL if not existing)
{ return (GetWS()) ? GetWS()->set(fNuisParamsName.c_str()) : 0; }
const RooArgSet * GetConstraintParameters() const
 get RooArgSet containing the constraint parameters (return NULL if not existing)
{ return (GetWS()) ? GetWS()->set(fConstrParamsName.c_str()) : 0; }
RooAbsPdf * GetPriorPdf() const
 get parameters prior pdf  (return NULL if not existing)
{ return (GetWS()) ? GetWS()->pdf(fPriorPdfName.c_str()) : 0; }
const RooArgSet * GetObservables() const
 get RooArgSet for observables  (return NULL if not existing)
{ return (GetWS()) ? GetWS()->set(fObservablesName.c_str()) : 0; }
const RooArgSet * GetConditionalObservables() const
 get RooArgSet for conditional observables  (return NULL if not existing)
{ return (GetWS()) ? GetWS()->set(fConditionalObsName.c_str()) : 0; }
const RooArgSet * GetGlobalObservables() const
 get RooArgSet for global observables  (return NULL if not existing)
{ return (GetWS()) ? GetWS()->set(fGlobalObsName.c_str()) : 0; }
RooAbsData * GetProtoData() const
 get Proto data set (return NULL if not existing)
{ return (GetWS()) ? GetWS()->data(fProtoDataName.c_str()) : 0; }
RooWorkspace * GetWorkspace() const
 alias for GetWS()
{ return GetWS(); }