34 int main(
int argc,
char **argv)
38 using namespace KM3NETDAQ;
42 JSingleFileScanner<JDAQEvent> inputFile;
46 JMuonParameters muonParams;
51 JParser<> zap(
"Program to perform pre-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> router(
new JModuleRouter(detector));
82 const JMuonPrefit MuonPrefit(router, muonParams);
84 while (inputFile.hasNext()) {
86 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
91 const JDAQTimeslice timeSliceBuildL2(*tev, !muonParams.prefit.useL0);
95 MuonPrefit.getJEvt(timeSliceBuildL0, timeSliceBuildL2, out);
102 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.
Scanning of objects from a single file according a format that follows from the extension of each fil...
Auxiliary class for recursive type list generation.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
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.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.
int main(int argc, char *argv[])