30 namespace HistFactory {
34 std::vector< HistFactory::Measurement > measurement_list;
45 for(
unsigned int i = 0; i < measurement_list.size(); ++i) {
61int main(
int argc,
char** argv) {
64 std::cerr <<
"need input file" << std::endl;
69 std::string input(argv[1]);
73 catch(
const std::string &str) {
74 std::cerr <<
"hist2workspace - Caught exception: " << str << std::endl ;
77 catch(
const std::exception&
e ) {
78 std::cerr <<
"hist2workspace - Caught Exception: " <<
e.what() << std::endl;
87 std::string flag(argv[1]);
88 std::string input(argv[2]);
90 if(flag==
"-standard_form") {
94 catch(
const std::string &str) {
95 std::cerr <<
"hist2workspace - Caught exception: " << str << std::endl ;
98 catch(
const std::exception&
e ) {
99 std::cerr <<
"hist2workspace - Caught Exception: " <<
e.what() << std::endl;
103 std::cerr <<
"hist2workspace - Caught Exception" << std::endl;
108 else if(flag==
"-number_counting_form") {
109 std::cout <<
"ERROR: 'number_counting_form' is now deprecated." << std::endl;
125 std::cerr <<
"Unrecognized flag. " << std::endl;
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...
int main(int argc, char **argv)
hist2workspace executable main function to create RooFit models from an xml config and files with his...
void fastDriver(std::string input)
RooWorkspace * MakeModelAndMeasurementFast(RooStats::HistFactory::Measurement &measurement)
Make a model from histograms.
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer