11#ifndef HISTFACTORY_MEASUREMENT_H
12#define HISTFACTORY_MEASUREMENT_H
47 void AddPOI(
const std::string& POI ) {
fPOI.push_back(POI); }
49 std::string
GetPOI(
unsigned int i=0) {
return fPOI.at(i); }
102 void PrintTree( std::ostream& = std::cout );
103 void PrintXML( std::string Directory=
"", std::string NewOutputPrefix=
"" );
140 std::vector< RooStats::HistFactory::Channel >
fChannels;
#define ClassDef(name, id)
TODO Here, we are missing some documentation.
This class encapsulates all information for the statistical interpretation of one experiment.
The RooStats::HistFactory::Measurement class can be used to construct a model by combining multiple R...
void writeToFile(TFile *file)
A measurement, once fully configured, can be saved into a ROOT file.
std::string fOutputFilePrefix
Configurables of this measurement.
void AddGammaSyst(std::string syst, double uncert)
Set constraint term for given systematic to Gamma distribution.
std::map< std::string, double > fGammaSyst
List of Alternate constraint terms.
void ClearParamValues()
clear map of parameter values
std::map< std::string, double > & GetGammaSyst()
std::map< std::string, double > & GetLogNormSyst()
std::string GetDirPath(TDirectory *dir)
Return the directory's path, stripped of unnecessary prefixes.
std::map< std::string, double > & GetParamValues()
get map: parameter name <--> parameter value
std::map< std::string, double > & GetNoSyst()
void SetExportOnly(bool ExportOnly)
do not produce any plots or tables, just save the model
void AddPOI(const std::string &POI)
append parameter to vector of PoIs
std::vector< std::string > & GetPOIList()
get vector of PoI names
void AddLogNormSyst(std::string syst, double uncert)
Set constraint term for given systematic to LogNormal distribution.
void PrintXML(std::string Directory="", std::string NewOutputPrefix="")
Print to a stream.
void SetLumi(double Lumi)
set integrated luminosity used to normalise histograms (if NormalizeByTheory is true for this sample)
RooStats::HistFactory::Channel & GetChannel(std::string)
Get channel with given name from this measurement throws an exception in case the channel is not foun...
void SetParamValue(const std::string ¶m, double value)
Set a parameter to a specific value (And optionally fix it)
double GetLumiRelErr()
retrieve relative uncertainty on luminosity
std::map< std::string, double > fLogNormSyst
std::map< std::string, double > & GetUniformSyst()
std::map< std::string, double > fNoSyst
std::string fInterpolationScheme
std::vector< std::string > & GetConstantParams()
get vector of all constant parameters
void CollectHistograms()
The most common way to add histograms to channels is to have them stored in ROOT files and to give Hi...
void AddChannel(RooStats::HistFactory::Channel chan)
add a completely configured channel
void SetOutputFilePrefix(const std::string &prefix)
set output prefix
bool HasChannel(std::string)
Check if the given channel is part of this measurement.
std::vector< std::string > fConstantParams
List of Parameters to be set constant.
void AddUniformSyst(std::string syst)
Set constraint term for given systematic to uniform distribution.
std::vector< RooStats::HistFactory::PreprocessFunction > fFunctionObjects
List of Preprocess Function objects.
std::map< std::string, double > fParamValues
Map of parameter names to inital values to be set.
void PrintTree(std::ostream &=std::cout)
Print information about measurement object in tree-like structure to given stream.
void SetBinLow(int BinLow)
std::vector< RooStats::HistFactory::Channel > & GetChannels()
std::vector< RooStats::HistFactory::Asimov > & GetAsimovDatasets()
get vector of defined Asimov Datasets
void SetBinHigh(int BinHigh)
Measurement()
Standard constructor.
void AddNoSyst(std::string syst)
Define given systematics to have no external constraint.
void SetPOI(const std::string &POI)
insert PoI at beginning of vector of PoIs
std::string GetOutputFilePrefix()
retrieve prefix for output files
void AddConstantParam(const std::string ¶m)
Add a parameter to be set as constant (Similar to ParamSetting method below)
std::vector< RooStats::HistFactory::Asimov > fAsimovDatasets
List of Asimov datasets to generate.
void AddFunctionObject(const RooStats::HistFactory::PreprocessFunction function)
add a preprocess function object
void ClearConstantParams()
empty vector of constant parameters
std::vector< RooStats::HistFactory::PreprocessFunction > & GetFunctionObjects()
get vector of defined function objects
void SetFunctionObjects(std::vector< RooStats::HistFactory::PreprocessFunction > objects)
void AddPreprocessFunction(std::string name, std::string expression, std::string dependencies)
Add a preprocessed function by giving the function a name, a functional expression,...
void SetLumiRelErr(double RelErr)
set relative uncertainty on luminosity
std::vector< std::string > fPOI
double GetLumi()
retrieve integrated luminosity
void AddAsimovDataset(RooStats::HistFactory::Asimov dataset)
add an Asimov Dataset
std::map< std::string, double > fUniformSyst
std::string GetPOI(unsigned int i=0)
get name of PoI at given index
std::vector< std::string > GetPreprocessFunctions()
Returns a list of defined preprocess function expressions.
std::vector< RooStats::HistFactory::Channel > fChannels
Channels that make up this measurement.
Describe directory structure in memory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
The TNamed class is the base class for all named ROOT classes.
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
Namespace for the RooStats classes.