Go to the documentation of this file.
29 int main(
int argc,
char **argv)
39 JLimit_t& numberOfEvents = inputFile.getLimit();
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);
100 for (map_type::const_iterator i = selector.begin(); i != selector.end() && !status; ++i) {
101 status =
response[i->first] >= i->second;
Auxiliary class to uniquely identify PMT readout channel.
Auxiliary class to set-up Hit.
int main(int argc, char **argv)
Auxiliary class for defining the range of iterations of objects.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
JPMTChannel getPMTChannel(const JDAQKeyHit &hit) const
Get PMT channel.
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
counter_type getCounter() const
Get counter.
virtual const pointer_type & next()
Get next element.
virtual bool hasNext()
Check availability of next element.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for object reading from a list of file names.
#define DEBUG(A)
Message macros.
KM3NeT DAQ data structures and auxiliaries.
int getString() const
Get string number.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...