28#include "hist2workspaceCommandLineOptionsHelp.h"
38 std::vector< HistFactory::Measurement > measurement_list;
49 for(
unsigned int i = 0; i < measurement_list.size(); ++i) {
72int main(
int argc,
char** argv) {
75 std::cerr <<
"need input file" << std::endl;
80 gROOT->SetMustClean(
false);
82 cxcoutIHF <<
"hist2workspace is less verbose now. Use -v and -vv for more details." << std::endl;
87 std::string driverArg;
89 for (
int i=1; i < argc; ++i) {
90 std::string input = argv[i];
92 if (input ==
"-h" || input ==
"--help"){
93 fprintf(stderr, kCommandLineOptionsHelp);
103 if (input ==
"-vv") {
109 if (input ==
"-number_counting_form") {
110 std::cout <<
"ERROR: 'number_counting_form' is now deprecated." << std::endl;
114 if(input ==
"-standard_form") {
115 driverArg = argv[++i];
125 catch(
const std::string &str) {
126 std::cerr <<
"hist2workspace - Caught exception: " << str << std::endl ;
129 catch(
const std::exception&
e ) {
130 std::cerr <<
"hist2workspace - Caught Exception: " <<
e.what() << std::endl;
134 std::cerr <<
"hist2workspace - Caught Exception" << std::endl;
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 input)
RooWorkspace * MakeModelAndMeasurementFast(RooStats::HistFactory::Measurement &measurement)
Namespace for the RooStats classes.
RooFit::MsgLevel minLevel
void addTopic(RooFit::MsgTopic newTopic)