40 JLimit_t& numberOfEvents = inputFile.getLimit();
47 JParser<> zap(
"Example program to select events based on hits in strings.");
53 zap[
'S'] =
make_field(selector,
"selection: pairs of <string number> <minimum number of triggered hits>");
61 catch(
const exception& error) {
77 }
else if (!selector.empty()) {
79 FATAL(
"Missing detector file.");
91 while (inputFile.hasNext()) {
97 bool status = selector.empty();
112 for (map_type::const_iterator i = selector.begin(); i != selector.end() && !status; ++i) {
113 status =
response[i->first] >= i->second;
121 buffer[
event->getRunNumber()].
insert(event->getFrameIndex());
Direct access to PMT data in detector data structure for DAQ hits.
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
Recording of objects on file according a format that follows from the file name extension.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
ROOT TTree parameter settings of various packages.
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structur...
JPMTChannel getPMTChannel(const JDAQKeyHit &hit) const
Get PMT channel.
int getString() const
Get string number.
Auxiliary class to uniquely identify PMT readout channel.
Template definition of a multi-dimensional oscillation probability interpolation table.
int getRunNumber() const
Get run number.
int getFrameIndex() const
Get frame index.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
KM3NeT DAQ data structures and auxiliaries.
std::map< int, range_type > map_type
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Auxiliary class to set-up Hit.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.