#include #include #include #include "JSupport/JMultipleFileScanner.hh" #include "JSupport/JHeadSet.hh" #include "JSupport/JSupport.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * Example program to organise of Monte Carlo run headers. * * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; JMultipleFileScanner<> inputFile; int debug; try { JParser<> zap("Example program to organise of Monte Carlo run headers."); zap['f'] = make_field(inputFile); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } JHeadSet<> headset(inputFile); for (JHeadSet<>::const_iterator i = headset.begin(); i != headset.end(); ++i) { cout << *i << endl; cout << endl; } }