53usage: hist2workspace [-h] [-v] [-vv] [-disable_binned_fit_optimization]
55hist2workspace is a utility to create RooFit/RooStats workspace from histograms
58 -h, --help show this help message and exit
59 -v switch HistFactory message stream to INFO level
60 -vv switch HistFactory message stream to DEBUG level
61 -disable_binned_fit_optimization disable the binned fit optimization used in HistFactory since ROOT 6.28
66 namespace HistFactory {
70 std::vector< HistFactory::Measurement > measurement_list;
81 for(
unsigned int i = 0; i < measurement_list.size(); ++i) {
106int main(
int argc,
char** argv) {
109 std::cerr <<
"need input file" << std::endl;
114 gROOT->SetMustClean(
false);
116 cxcoutIHF <<
"hist2workspace is less verbose now. Use -v and -vv for more details." << std::endl;
121 std::string driverArg;
124 for (
int i=1; i < argc; ++i) {
125 std::string
input = argv[i];
138 if (
input ==
"-vv") {
144 if(
input ==
"-disable_binned_fit_optimization") {
145 cfg.binnedFitOptimization =
false;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
static RooMsgService & instance()
Return reference to singleton instance.
StreamConfig & getStream(Int_t id)
std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFromXML(std::string input)
The "main" method.
The RooStats::HistFactory::Measurement class can be used to construct a model by combining multiple R...
void CollectHistograms()
The most common way to add histograms to channels is to have them stored in ROOT files and to give Hi...
static void AddDirectory(Bool_t add=kTRUE)
Sets the flag controlling the automatic add objects like histograms, TGraph2D, etc in memory.
static constexpr const char kCommandLineOptionsHelp[]
void fastDriver(std::string const &input, HistoToWorkspaceFactoryFast::Configuration const &cfg)
RooFit::OwningPtr< RooWorkspace > MakeModelAndMeasurementFast(RooStats::HistFactory::Measurement &measurement, HistoToWorkspaceFactoryFast::Configuration const &cfg={})
Namespace for the RooStats classes.
RooFit::MsgLevel minLevel
void addTopic(RooFit::MsgTopic newTopic)