28 int main(
int argc,
char **argv){
32 using namespace KM3NETDAQ;
34 typedef JParallelFileScanner< JTypeList<JDAQEvent, JEvt> > JParallelFileScanner_t;
37 JParallelFileScanner_t inputFile;
42 JShowerParameters showerParams;
51 zap[
'F'] =
make_field(pdfFile) =
"PDF_ShowerPositionFit.root";
52 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
56 if (zap.
read(argc, argv) != 0)
return 1;
58 catch(
const exception& error){
59 FATAL(error.what() << endl);
62 using namespace JTRIGGER;
63 using namespace JDETECTOR;
64 using namespace JGEOMETRY3D;
65 using namespace JTOOLS;
70 load(detectorFile, detector);
72 catch(
const JException& error) {
79 const JSharedPointer<const JModuleRouter> moduleRouter(
new JModuleRouter(detector));
81 const JORCAShowerPositionFit ShowerPosFit(moduleRouter, showerParams, pdfFile);
83 while (inputFile.hasNext()) {
85 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
87 JParallelFileScanner_t::multi_pointer_type ps = inputFile.next();
97 ShowerPosFit.getJEvt(timeSliceBuildL0, timeSliceBuildL2, *in, out);
103 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.
int read(const int argc, const char *const argv[])
Parse the program's command line options.
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[])