36 namespace HistFactory {
40 std::vector< HistFactory::Measurement > measurement_list;
51 for(
unsigned int i = 0; i < measurement_list.size(); ++i) {
64 int main(
int argc,
char** argv) {
67 std::cerr <<
"need input file" << std::endl;
72 std::string input(argv[1]);
76 catch(
const std::string &str) {
77 std::cerr <<
"hist2workspace - Caught exception: " << str << std::endl ;
80 catch(
const std::exception&
e ) {
81 std::cerr <<
"hist2workspace - Caught Exception: " << e.what() << std::endl;
90 std::string flag(argv[1]);
91 std::string input(argv[2]);
93 if(flag==
"-standard_form") {
97 catch(
const std::string &str) {
98 std::cerr <<
"hist2workspace - Caught exception: " << str << std::endl ;
101 catch(
const std::exception&
e ) {
102 std::cerr <<
"hist2workspace - Caught Exception: " << e.what() << std::endl;
106 std::cerr <<
"hist2workspace - Caught Exception" << std::endl;
111 else if(flag==
"-number_counting_form") {
112 std::cout <<
"ERROR: 'number_counting_form' is now depricated." << std::endl;
128 std::cerr <<
"Unrecognized flag. " << std::endl;
void fastDriver(std::string input)
RooWorkspace * MakeModelAndMeasurementFast(RooStats::HistFactory::Measurement &measurement)
std::vector< RooStats::HistFactory::Measurement > GetMeasurementsFromXML(std::string input)
Namespace for the RooStats classes.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
int main(int argc, char **argv)