33 int main(
int argc,
char **argv)
37 using namespace KM3NETDAQ;
40 typedef JParallelFileScanner< JTypeList<JDAQEvent, JEvt> > JParallelFileScanner_t;
42 JParallelFileScanner_t inputFile;
46 JMuonParameters muonParams;
51 JParser<> zap(
"Program to perform intermediate fit of muon trajectory to data.");
57 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
62 catch(
const exception& error) {
63 FATAL(error.what() << endl);
71 load(detectorFile, detector);
73 catch(
const JException& error) {
77 const JSharedPointer<const JModuleRouter> moduleRouter(
new JModuleRouter(detector));
82 const JMuonSimplex muonSimplex(moduleRouter, muonParams);
84 while (inputFile.hasNext()) {
86 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
88 JParallelFileScanner_t::multi_pointer_type ps = inputFile.next();
97 muonSimplex.getJEvt(timeSlice, *in, out);
104 JSingleFileScanner<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.
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[])