46 int main(
int argc,
char **argv)
50 using namespace KM3NETDAQ;
62 JParser<> zap(
"Auxiliary program to blend and write summary data.");
74 catch(
const exception &error) {
75 FATAL(error.what() << endl);
92 unsigned int number_of_modules = 0;
94 while (inputFile.hasNext() && number_of_modules <
detector.size()) {
95 number_of_modules += inputFile.next()->size();
98 if (number_of_modules <
detector.size()) {
99 FATAL(
"Input summary data insufficient: " << number_of_modules <<
" < " <<
detector.size() << endl);
111 for (
int frame_index = 1; frame_index <= numberOfEvents; ) {
113 NOTICE(
"event: " << setw(10) << frame_index <<
'\r');
DEBUG(endl);
122 if (summary.size() ==
detector.size()) {
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Recording of objects on file according a format that follows from the file name extension.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
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.
Auxiliaries for creation of summary data.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class to create summary data.
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Utility class to parse command line options.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG