#include #include #include #include "TROOT.h" #include "TFile.h" #include "TRandom.h" #include "JROOT/JRootFileReader.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * * Auxiliary program to print ROOT TRandom seed. * \author mdejong */ int main(int argc, char **argv) { using namespace std; string inputFile; int debug; try { JParser<> zap("Auxiliary program to print ROOT TRandom seed."); zap['f'] = make_field(inputFile); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } using namespace JPP; JRootFileReader reader(inputFile.c_str(), gRandom->GetName()); while (reader.hasNext()) { TRandom* x = reader.next(); cout << "seed[" << reader.getCycle() << "] = " << x->GetSeed() << endl; } reader.close(); }