1 #ifndef INCLUDE_HISTFACTORYNAVIGATION_H 2 #define INCLUDE_HISTFACTORYNAVIGATION_H 16 namespace HistFactory {
26 const std::string& WorkspaceName=
"combined",
27 const std::string& ModelConfigName=
"ModelConfig");
42 bool IncludeConstantParams=
false);
46 bool IncludeConstantParams=
false);
59 double GetBinValue(
int bin,
const std::string& channel);
61 double GetBinValue(
int bin,
const std::string& channel,
const std::string& sample);
66 const std::string& sample,
const std::string&
name=
"");
99 void SetConstant(
const std::string& regExpr=
".*",
bool constant=
true);
203 #endif // INCLUDE_HISTFACTORYNAVIGATION_H TH1 * MakeHistFromRooFunction(RooAbsReal *func, RooArgList vars, std::string name="Hist")
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
int GetMinBinToPrint() const
The Histogram stack class.
RooAbsArg * findChild(const std::string &name, RooAbsReal *parent) const
void SetMinBinToPrint(int min)
void PrintMultiDimHist(TH1 *hist, int bin_print_width)
RooAbsReal * GetConstraintTerm(const std::string ¶meter)
TH1 * GetSampleHist(const std::string &channel, const std::string &sample, const std::string &name="")
void PrintChannelParameters(const std::string &channel, bool IncludeConstantParams=false)
std::map< std::string, RooAbsPdf *> fChannelPdfMap
#define ClassDef(name, id)
void PrintSampleComponents(const std::string &channel, const std::string &sample)
RooArgSet _GetAllProducts(RooProduct *node)
RooAbsPdf * GetModel() const
THStack * GetChannelStack(const std::string &channel, const std::string &name="")
void ReplaceNode(const std::string &ToReplace, RooAbsArg *ReplaceWith)
RooAbsReal * SampleFunction(const std::string &channel, const std::string &sample)
TH1 * GetChannelHist(const std::string &channel, const std::string &name="")
void _GetNodes(ModelConfig *mc)
RooRealVar represents a fundamental (non-derived) real valued object.
std::map< std::string, RooArgSet * > fChannelObservMap
RooRealVar * var(const std::string &varName) const
void SetPrintWidths(const std::string &channel)
std::map< std::string, std::map< std::string, RooAbsReal * > > fChannelSampleFunctionMap
void SetMaxBinToPrint(int max)
RooDataSet is a container class to hold unbinned data.
RooProduct a RooAbsReal implementation that represent the product of a given set of other RooAbsReal ...
void PrintDataSet(RooDataSet *data, const std::string &channel="")
double GetBinValue(int bin, const std::string &channel)
int GetMaxBinToPrint() const
Namespace for the RooStats classes.
virtual ~HistFactoryNavigation()
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
void PrintSampleParameters(const std::string &channel, const std::string &sample, bool IncludeConstantParams=false)
TH1 * GetDataHist(RooDataSet *data, const std::string &channel, const std::string &name="")
double func(double *x, double *p)
std::vector< std::string > fChannelNameVec
std::map< std::string, RooAbsReal * > GetSampleFunctionMap(const std::string &channel)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
void PrintModelAndData(RooDataSet *data)
void PrintParameters(bool IncludeConstantParams=false)
double GetConstraintUncertainty(const std::string ¶meter)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
std::vector< std::string > GetChannelSampleList(const std::string &channel)
HistFactoryNavigation(ModelConfig *mc)
RooAbsPdf * GetChannelPdf(const std::string &channel)
std::map< std::string, RooAbsPdf *> fChannelSumNodeMap
RooArgSet * GetObservableSet(const std::string &channel)
void SetConstant(const std::string ®Expr=".*", bool constant=true)
void DrawChannel(const std::string &channel, RooDataSet *data=NULL)