ROOT » ROOFIT » HISTFACTORY » RooStats::HistFactory::HistoToWorkspaceFactoryFast

class RooStats::HistFactory::HistoToWorkspaceFactoryFast: public TObject




Function Members (Methods)

public:
virtual~HistoToWorkspaceFactoryFast()
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 voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
static voidConfigureWorkspaceForMeasurement(const string& ModelName, RooWorkspace* ws_single, RooStats::HistFactory::Measurement& measurement)
virtual voidTObject::Copy(TObject& object) 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 TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
RooStats::HistFactory::HistoToWorkspaceFactoryFastHistoToWorkspaceFactoryFast()
RooStats::HistFactory::HistoToWorkspaceFactoryFastHistoToWorkspaceFactoryFast(RooStats::HistFactory::Measurement& Meas)
RooStats::HistFactory::HistoToWorkspaceFactoryFastHistoToWorkspaceFactoryFast(const RooStats::HistFactory::HistoToWorkspaceFactoryFast&)
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_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
static RooWorkspace*MakeCombinedModel(RooStats::HistFactory::Measurement& measurement)
RooWorkspace*MakeCombinedModel(vector<string>, vector<RooWorkspace*>)
RooWorkspace*MakeSingleChannelModel(RooStats::HistFactory::Measurement& measurement, RooStats::HistFactory::Channel& channel)
voidTObject::MayNotUse(const char* method) const
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::HistFactory::HistoToWorkspaceFactoryFast&operator=(const RooStats::HistFactory::HistoToWorkspaceFactoryFast&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
static voidPrintCovarianceMatrix(RooFitResult* result, RooArgSet* params, string filename)
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 voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetFunctionsToPreprocess(vector<string> lines)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) 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
protected:
voidAddConstraintTerms(RooWorkspace* proto, RooStats::HistFactory::Measurement& measurement, string prefix, string interpName, vector<RooStats::HistFactory::OverallSys>& systList, vector<string>& likelihoodTermNames, vector<string>& totSystTermNames)
voidAddMultiVarGaussConstraint(RooWorkspace* proto, string prefix, int lowBin, int highBin, vector<string>& likelihoodTermNames)
stringAddNormFactor(RooWorkspace* proto, string& channel, string& sigmaEpsilon, RooStats::HistFactory::Sample& sample, bool doRatio)
voidAddPoissonTerms(RooWorkspace* proto, string prefix, string obsPrefix, string expPrefix, int lowBin, int highBin, vector<string>& likelihoodTermNames)
voidConfigureHistFactoryDataset(RooDataSet* obsData, TH1* nominal, RooWorkspace* proto, vector<string> obsNameVec)
RooArgListcreateStatConstraintTerms(RooWorkspace* proto, vector<string>& constraintTerms, ParamHistFunc& paramHist, TH1* uncertHist, RooStats::HistFactory::Constraint::Type type, Double_t minSigma)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
static voidEditSyst(RooWorkspace* proto, const char* pdfNameChar, map<string,double> gammaSyst, map<string,double> uniformSyst, map<string,double> logNormSyst, map<string,double> noSyst)
voidLinInterpWithConstraint(RooWorkspace* proto, TH1* nominal, vector<RooStats::HistFactory::HistoSys>, string prefix, string productPrefix, string systTerm, vector<string>& likelihoodTermNames)
TH1*MakeAbsolUncertaintyHist(const string& Name, const TH1* Hist)
TH1*MakeScaledUncertaintyHist(const string& Name, vector<pair<TH1*,TH1*> > HistVec)
RooWorkspace*MakeSingleChannelWorkspace(RooStats::HistFactory::Measurement& measurement, RooStats::HistFactory::Channel& channel)
voidMakeTotalExpected(RooWorkspace* proto, string totName, vector<string>& syst_x_expectedPrefixNames, vector<string>& normByNames)
voidTObject::MakeZombie()
RooDataSet*MergeDataSets(RooWorkspace* combined, vector<RooWorkspace*> wspace_vec, vector<string> channel_names, string dataSetName, RooArgList obsList, RooCategory* channelCat)
voidProcessExpectedHisto(TH1* hist, RooWorkspace* proto, string prefix, string productPrefix, string systTerm)
voidSetObsToExpected(RooWorkspace* proto, string obsPrefix, string expPrefix, int lowBin, int highBin)
private:
voidGuessObsNameVec(TH1* hist)

Data Members

public:
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
protected:
intfHighBin
intfLowBin
doublefLumiError
doublefNomLumi
map<string,double>fParamValues
vector<string>fSystToFix
private:
stringfObsName
vector<string>fObsNameVec
vector<string>fPreprocessFunctions

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HistoToWorkspaceFactoryFast()
{}
~HistoToWorkspaceFactoryFast()
HistoToWorkspaceFactoryFast(RooStats::HistFactory::Measurement& Meas)
void ConfigureWorkspaceForMeasurement(const string& ModelName, RooWorkspace* ws_single, RooStats::HistFactory::Measurement& measurement)
RooWorkspace* MakeSingleChannelModel(RooStats::HistFactory::Measurement& measurement, RooStats::HistFactory::Channel& channel)
RooWorkspace* MakeCombinedModel(RooStats::HistFactory::Measurement& measurement)
void ProcessExpectedHisto(TH1* hist, RooWorkspace* proto, string prefix, string productPrefix, string systTerm)
void AddMultiVarGaussConstraint(RooWorkspace* proto, string prefix, int lowBin, int highBin, vector<string>& likelihoodTermNames)
 these are the nominal predictions: eg. the mean of some space of variations
 later fill these in a loop over histogram bins
void LinInterpWithConstraint(RooWorkspace* proto, TH1* nominal, vector<RooStats::HistFactory::HistoSys> , string prefix, string productPrefix, string systTerm, vector<string>& likelihoodTermNames)
 these are the nominal predictions: eg. the mean of some space of variations
 later fill these in a loop over histogram bins
 require dimension >=1 or <=3
{ fObsNameVec.push_back(fObsName); }
string AddNormFactor(RooWorkspace* proto, string& channel, string& sigmaEpsilon, RooStats::HistFactory::Sample& sample, bool doRatio)
void AddConstraintTerms(RooWorkspace* proto, RooStats::HistFactory::Measurement& measurement, string prefix, string interpName, vector<RooStats::HistFactory::OverallSys>& systList, vector<string>& likelihoodTermNames, vector<string>& totSystTermNames)
 add variables for all the relative overall uncertainties we expect
 range is set using defined macro (see top of the page)
void MakeTotalExpected(RooWorkspace* proto, string totName, vector<string>& syst_x_expectedPrefixNames, vector<string>& normByNames)
 for ith bin calculate totN_i =  lumi * sum_j expected_j * syst_j
void AddPoissonTerms(RooWorkspace* proto, string prefix, string obsPrefix, string expPrefix, int lowBin, int highBin, vector<string>& likelihoodTermNames)
 Relate observables to expected for each bin
 later modify variable named expPrefix_i to be product of terms
void SetObsToExpected(RooWorkspace* proto, string obsPrefix, string expPrefix, int lowBin, int highBin)
 set observed to expected
void EditSyst(RooWorkspace* proto, const char* pdfNameChar, map<string,double> gammaSyst, map<string,double> uniformSyst, map<string,double> logNormSyst, map<string,double> noSyst)
void PrintCovarianceMatrix(RooFitResult* result, RooArgSet* params, string filename)
 Change-> Now a static utility
RooWorkspace* MakeSingleChannelWorkspace(RooStats::HistFactory::Measurement& measurement, RooStats::HistFactory::Channel& channel)
void ConfigureHistFactoryDataset(RooDataSet* obsData, TH1* nominal, RooWorkspace* proto, vector<string> obsNameVec)
 Take a RooDataSet and fill it with the entries
 from a TH1*, using the observable names to
 determine the columns
void GuessObsNameVec(TH1* hist)
RooWorkspace* MakeCombinedModel(vector<string> , vector<RooWorkspace*> )
RooDataSet* MergeDataSets(RooWorkspace* combined, vector<RooWorkspace*> wspace_vec, vector<string> channel_names, string dataSetName, RooArgList obsList, RooCategory* channelCat)
 Create the total dataset
TH1* MakeAbsolUncertaintyHist(const string& Name, const TH1* Hist)
TH1* MakeScaledUncertaintyHist(const string& Name, vector<pair<TH1*,TH1*> > HistVec)
HistoToWorkspaceFactoryFast()
void SetFunctionsToPreprocess(vector<string> lines)
RooArgList createStatConstraintTerms(RooWorkspace* proto, vector<string>& constraintTerms, ParamHistFunc& paramHist, TH1* uncertHist, RooStats::HistFactory::Constraint::Type type, Double_t minSigma)