#include #include #include #include "TROOT.h" #include "TFile.h" #include "JSupport/JSupport.hh" #include "JSupport/JSupportToolkit.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Auxiliary program to print live time of data taking. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; vector inputFile; int debug; try { JParser<> zap("Auxiliary program to print live time of data taking."); zap['f'] = make_field(inputFile); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } cout << getLivetime(inputFile.begin(), inputFile.end()) << endl; }