29 int main(
int argc,
char **argv)
33 using namespace KM3NETDAQ;
46 JParser<> zap(
"Example program to select events based on hits in strings.");
48 zap[
'f'] =
make_field(inputFile,
"input file.");
50 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
51 zap[
'a'] =
make_field(detectorFile,
"detector file.");
52 zap[
'S'] =
make_field(selector,
"selection: pairs of <string number> <minimum number of triggered hits>");
57 catch(
const exception& error) {
58 FATAL(error.what() << endl);
81 while (inputFile.hasNext()) {
83 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
100 for (map_type::const_iterator i = selector.begin(); i != selector.end() && !status; ++i) {
101 status = response[i->first] >= i->second;
Auxiliary class to set-up Hit.
Utility class to parse command line options.
Direct access to PMT data in detector data structure for DAQ hits.
Auxiliary class to uniquely identify PMT readout channel.
ROOT TTree parameter settings of various packages.
Recording of objects on file according a format that follows from the file name extension.
Data structure for detector geometry and calibration.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...
Auxiliary class for defining the range of iterations of objects.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
int getString() const
Get string number.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
General purpose class for object reading from a list of file names.
Utility class to parse command line options.
const JLimit & getLimit() const
Get limit.
do set_variable DETECTOR_TXT $WORKDIR detector
JPMTChannel getPMTChannel(const JDAQKeyHit &hit) const
Get PMT channel.
JTriggerCounter_t next()
Increment trigger counter.
#define DEBUG(A)
Message macros.
int main(int argc, char *argv[])