37 int main(
int argc,
char** argv){
41 using namespace KM3NETDAQ;
43 typedef JParallelFileScanner< JTypeList<JDAQEvent, JEvt> > JParallelFileScanner_t;
46 JParallelFileScanner_t inputFile;
48 JShowerParameters showerParams;
63 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
68 catch(
const exception& error) {
69 FATAL(error.what() << endl);
72 using namespace JTRIGGER;
73 using namespace JDETECTOR;
74 using namespace JGEOMETRY3D;
75 using namespace JTOOLS;
80 load(detectorFile, detector);
82 catch(
const JException& error) {
89 const JSharedPointer<const JModuleRouter> moduleRouter(
new JModuleRouter(detector));
91 const JORCAShowerFit ShowerFit(moduleRouter, showerParams, pdfFile);
93 while (inputFile.hasNext()) {
95 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
97 JParallelFileScanner_t::multi_pointer_type ps = inputFile.next();
106 ShowerFit.getJEvt(timeSliceBuildL0, *in, out);
112 JMultipleFileScanner<JRemove<typelist, JEvt>::typelist> io(inputFile);
Utility class to parse command line options.
Recording of objects on file according a format that follows from the file name extension.
Router for direct addressing of module data in detector data structure.
Empty structure for specification of parser element that is initialised (i.e.
JLimit JLimit_t
Type definition of limit.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Parallel scanning of objects from a single file or multiple files according a format that follows fro...
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
General purpose messaging.
Direct access to module in detector data structure.
Utility class to parse command line options.
ROOT TTree parameter settings.
const JLimit & getLimit() const
Get limit.
#define DEBUG(A)
Message macros.
int main(int argc, char *argv[])