8 using namespace HistFactory;
29 std::string InputFile =
"./data/example.root";
33 std::cout <<
"Input file is not found - run prepareHistFactory script " << std::endl;
34 gROOT->ProcessLine(
".! prepareHistFactory .");
37 std::cout <<
"Still no " << InputFile <<
", giving up.\n";
46 meas.
SetPOI(
"SigXsecOverSM" );
58 chan.
SetData(
"data", InputFile );
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
void SetData(const RooStats::HistFactory::Data &data)
void SetPOI(const std::string &POI)
void SetStatErrorConfig(double RelErrorThreshold, Constraint::Type ConstraintType)
void SetBinHigh(int BinHigh)
void ActivateStatError()
Note that histogram name should not include the path of the histogram in the file.
RooWorkspace * MakeModelAndMeasurementFast(RooStats::HistFactory::Measurement &measurement)
void SetOutputFilePrefix(const std::string &prefix)
void SetExportOnly(bool ExportOnly)
void SetLumi(double Lumi)
void AddChannel(RooStats::HistFactory::Channel chan)
R__EXTERN TSystem * gSystem
void AddConstantParam(const std::string ¶m)
void AddOverallSys(std::string Name, Double_t Low, Double_t High)
void AddSample(RooStats::HistFactory::Sample sample)
void AddNormFactor(std::string Name, Double_t Val, Double_t Low, Double_t High, bool Const=false)
Namespace for the RooStats classes.
void SetLumiRelErr(double RelErr)
void PrintTree(std::ostream &=std::cout)