#include #include #include #include "km3net-dataformat/offline/Head.hh" #include "km3net-dataformat/offline/MultiHead.hh" #include "km3net-dataformat/offline/Evt.hh" #include "JDAQ/JDAQTimesliceIO.hh" #include "JDAQ/JDAQEventIO.hh" #include "JDAQ/JDAQSummarysliceIO.hh" #include "JTrigger/JTriggerParameters.hh" #include "antares-dataformat/TimeSlice.hh" #include "antares-dataformat/PhysicsEvent.hh" #include "JAcoustics/JEvent.hh" #include "JAcoustics/JEvt.hh" #include "JAcoustics/JSuperEvt.hh" #include "JAcoustics/JTriggerParameters.hh" #include "JAcoustics/JFitParameters.hh" #include "JAcoustics/JSupport.hh" #include "JCompass/JEvt.hh" #include "JCompass/JSupport.hh" #include "JSupport/JSupport.hh" #include "JSupport/JMultipleFileScanner.hh" #include "JSupport/JMonteCarloFileSupportkit.hh" #include "JSupport/JTriggerParametersSupportkit.hh" #include "JLang/JStreamObjectOutput.hh" #include "JLang/JPipe.hh" #include "JLang/JManip.hh" #include "JROOT/JROOTClassSelector.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** * \file * Auxiliary program to print 'any' data. * * The name of the data structure following option -C should be preceded by a '+' or '-' * to add or remove data types in the output, respectively.\n * In this, ROOT wildcards are accepted (e.g. -C -\\\.\\* will remove all data types). * * Note that for printing TRandom information and meta data, JPrintRandom.cc and JPrintMeta.cc should be used, respectively. * \author mdejong */ int main(int argc, char **argv) { using namespace std; using namespace JPP; using namespace KM3NETDAQ; typedef JTYPELIST::typelist typelist; JMultipleFileScanner inputFile; JLimit_t& numberOfEvents = inputFile.getLimit(); JROOTClassSelection selection = getROOTClassSelection(true); int debug; try { JParser<> zap("Auxiliary program to print 'any' data."); zap['f'] = make_field(inputFile); zap['n'] = make_field(numberOfEvents) = 1; zap['C'] = make_field(selection, "Precede name of data structure by a '+' or '-' " "to add or remove data types in the output, respectively." "\nROOT wildcards are accepted.") = JPARSER::initialised(); zap['d'] = make_field(debug) = 1; zap(argc, argv); } catch(const exception& error) { FATAL(error.what() << endl); } setDAQLongprint(debug >= JEEP::debug_t); if (debug >= JEEP::debug_t) { setLongprint(cout); } JStreamObjectOutput out(cout); inputFile | JValve(selection) | out; }