Example program to count event data.
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <limits>
#include <map>
#include "JDAQ/JDAQEventIO.hh"
#include "JSupport/JMultipleFileScanner.hh"
#include "JSupport/JSupport.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to count event data.
- Author
- mdejong
Definition in file examples/JTrigger/JDAQHit.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 23 of file examples/JTrigger/JDAQHit.cc.
27 using namespace KM3NETDAQ;
35 JParser<> zap(
"Example program to count event data.");
38 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
43 catch(
const exception& error) {
44 FATAL(error.what() << endl);
61 while (inputFile.hasNext()) {
63 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
71 counter[hit->getModuleID()].trigger += 1;
79 counter[hit->getModuleID()].snapshot += 1;
86 cout << setw(10) << i->first <<
' '
87 << setw (8) << i->second.trigger <<
' '
88 << setw (8) << i->second.snapshot << endl;
Auxiliary class to set-up Hit.
Utility class to parse command line options.
Long64_t counter_type
Type definition for counter.
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for object reading from a list of file names.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
const JLimit & getLimit() const
Get limit.
JTriggerCounter_t next()
Increment trigger counter.