31 int main(
int argc,
char **argv)
35 using namespace KM3NETDAQ;
37 JFileRecorder<JTYPELIST<JDAQSummaryslice, JTriggerParameters, JMeta>::typelist>
outputFile;
41 JPMTParametersMap pmtParameters;
48 JParser<> zap(
"Auxiliary program to create summary data.");
61 catch(
const exception &error) {
62 FATAL(error.what() << endl);
70 load(detectorFile, detector);
72 catch(
const JException& error) {
76 JPMTParametersMap::Throw(
false);
78 JDetectorSimulator simbad(detector);
80 simbad.reset(
new JPMTDefaultSimulator(pmtParameters, detector));
81 simbad.reset(
new JK40DefaultSimulator(rates_Hz));
88 for (
int frame_index = 1; frame_index <= numberOfEvents; ++frame_index) {
90 NOTICE(
"event: " << setw(10) << frame_index <<
'\r');
DEBUG(endl);
Utility class to parse command line options.
Data structure for all trigger parameters.
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.
Data structure for detector geometry and calibration.
double getTimeOfFrame(const int frame_index)
Get start time of frame in ns since start of run for a given frame index.
#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.
Auxiliaries for creation of summary data.
Utility class to parse command line options.
ROOT TTree parameter settings.
#define DEBUG(A)
Message macros.
int main(int argc, char *argv[])