#include #include #include #include "JTrigger/JTriggerParameters.hh" #include "JTrigger/JTriggerDictionary.hh" #include "JSupport/JMultipleFileScanner.hh" #include "JSupport/JTriggerParametersSupportkit.hh" #include "JSupport/JSupport.hh" #include "JROOT/JRootPrinter.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * Auxiliary program to print trigger parameters. * * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; JMultipleFileScanner inputFile; string key; int debug; try { JParser<> zap("Auxiliary program to print trigger parameters."); zap['f'] = make_field(inputFile); zap['k'] = make_field(key) = ""; zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception& error) { FATAL(error.what() << endl); } while (inputFile.hasNext()) { if (key == "") cout << *inputFile.next(); else JRootPrinter::print(cout, *inputFile.next(), key, JTriggerDictionary::getInstance()); cout << endl; } return 0; }