39 JLimit_t& numberOfEvents = inputFile.getLimit();
46 JParser<> zap(
"Example program to determine speed of PMT router.");
56 catch(
const exception& error) {
77 for (JModule::const_iterator pmt =
module->begin(); pmt !=
module->end(); ++pmt) {
78 zmap[pmt->getID()] =
module->getLocation();
84 JRange_t floor = JRange_t::DEFAULT_RANGE();
85 JRange_t string = JRange_t::DEFAULT_RANGE();
89 string.include(
module->getString());
92 NOTICE(
"String " <<
string.getLowerLimit() <<
" - " <<
string.getUpperLimit() <<
endl);
93 NOTICE(
"Floor " << floor .getLowerLimit() <<
" - " << floor .getUpperLimit() <<
endl);
99 string.getLength() + 1,
100 string.getLowerLimit() - 0.5,
101 string.getUpperLimit() + 0.5,
107 string.getLength() + 1,
108 string.getLowerLimit() - 0.5,
109 string.getUpperLimit() + 0.5,
117 while (inputFile.hasNext()) {
121 const Evt*
event = inputFile.next();
138 while (inputFile.hasNext()) {
142 const Evt*
event = inputFile.next();
Data structure for detector geometry and calibration.
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...
int main(int argc, char **argv)
Direct access to PMT in detector data structure.
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.
Logical location of module.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Router for direct addressing of PMT data in detector data structure.
const JModule & getParentModule(const JObjectID &id) const
Get parent module.
Auxiliary class for CPU timing and usage.
void print(std::ostream &out, const JScale_t scale=milli_t) const
Print timer data.
Template definition of a multi-dimensional oscillation probability interpolation table.
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).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
Type definition of range.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.