8using 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 );
67 signal.AddOverallSys(
"syst1", 0.95, 1.05 );
68 signal.AddNormFactor(
"SigXsecOverSM", 1, 0, 3 );
73 background1.ActivateStatError(
"background1_statUncert", InputFile );
R__EXTERN TSystem * gSystem
This class encapsulates all information for the statistical interpretation of one experiment.
void SetData(const RooStats::HistFactory::Data &data)
set data object
void AddSample(RooStats::HistFactory::Sample sample)
void SetStatErrorConfig(double RelErrorThreshold, Constraint::Type ConstraintType)
The RooStats::HistFactory::Measurement class can be used to construct a model by combining multiple R...
void SetExportOnly(bool ExportOnly)
do not produce any plots or tables, just save the model
void SetLumi(double Lumi)
set integrated luminosity used to normalise histograms (if NormalizeByTheory is true for this sample)
void AddChannel(RooStats::HistFactory::Channel chan)
add a completely configured channel
void SetOutputFilePrefix(const std::string &prefix)
set output prefix
void PrintTree(std::ostream &=std::cout)
void SetBinHigh(int BinHigh)
void SetPOI(const std::string &POI)
insert PoI at beginning of vector of PoIs
void AddConstantParam(const std::string ¶m)
Add a parameter to be set as constant (Similar to ParamSetting method below)
void SetLumiRelErr(double RelErr)
set relative uncertainty on luminosity
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
RooWorkspace * MakeModelAndMeasurementFast(RooStats::HistFactory::Measurement &measurement)
Make a model from histograms.
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer