28 int main(
int argc,
char **argv)
32 using namespace KM3NETDAQ;
34 JMultipleFileScanner<JDAQSummaryslice> inputFile;
35 JFileRecorder <JTYPELIST<JDAQSummaryslice, JTriggerParameters, JMeta>::typelist>
outputFile;
44 JParser<> zap(
"Auxiliary program to blend and write summary data.");
56 catch(
const exception &error) {
57 FATAL(error.what() << endl);
65 load(detectorFile, detector);
67 catch(
const JException& error) {
74 unsigned int number_of_modules = 0;
76 while (inputFile.hasNext() && number_of_modules < detector.size()) {
77 number_of_modules += inputFile.next()->size();
80 if (number_of_modules < detector.size()) {
81 FATAL(
"Input summary data insufficient: " << number_of_modules <<
" < " << detector.size() << endl);
93 for (
int frame_index = 1; frame_index <= numberOfEvents; ) {
95 NOTICE(
"event: " << setw(10) << frame_index <<
'\r');
DEBUG(endl);
104 if (summary.size() == detector.size()) {
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.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
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[])