25 int main(
int argc,
char **argv)
29 using namespace KM3NETDAQ;
33 JSingleFileScanner<JDAQEvent> inputFile;
37 JShowerParameters showerParams;
42 JParser<> zap(
"Program to perform position pre-fit of shower to data.");
48 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
53 catch(
const exception& error) {
54 FATAL(error.what() << endl);
62 load(detectorFile, detector);
64 catch(
const JException& error) {
68 const JSharedPointer<const JModuleRouter> moduleRouter(
new JModuleRouter(detector));
73 const JORCAShowerPrefit ShowerPrefit(moduleRouter, showerParams);
75 while (inputFile.hasNext()) {
77 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
82 const JDAQTimeslice timeSliceBuildL2(*tev, !showerParams.prefit.useL0);
86 ShowerPrefit.getJEvt(timeSliceBuildL0, timeSliceBuildL2, out);
93 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.
Auxiliary class to define a range between two values.
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[])