24#include "hist2workspaceCommandLineOptionsHelp.h"
31 std::vector< HistFactory::Measurement > measurement_list;
42 for(
unsigned int i = 0; i < measurement_list.size(); ++i) {
67int main(
int argc,
char** argv) {
70 std::cerr <<
"need input file" << std::endl;
75 gROOT->SetMustClean(
false);
77 cxcoutIHF <<
"hist2workspace is less verbose now. Use -v and -vv for more details." << std::endl;
82 std::string driverArg;
85 for (
int i=1; i < argc; ++i) {
86 std::string
input = argv[i];
89 fprintf(stderr, kCommandLineOptionsHelp);
105 if(
input ==
"-disable_binned_fit_optimization") {
106 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.
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)