Go to the documentation of this file.
24 int main(
int argc,
char **argv)
35 JParser<> zap(
"Program to convert ntuples to detector.");
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
72 DEBUG(geometry << endl);
74 const int id = geometry.getID();
85 master.add(geometry.getPosition());
89 if (module.size() == master.size()) {
91 for (
int pmt = 0; pmt != (int) master.size(); ++pmt) {
99 ERROR(
"Module sizes inconsistent " << module.size() <<
" != " << master.size() << endl);
106 ERROR(
"Missing module " << geometry.getID() << endl);
Binary buffered file input.
Auxiliary class for CPU timing and usage.
const JModule & getModule(const JDetector &detector, const JModuleLocation &location)
find module with a given string and floor number
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
void setAxis(const JAxis3D &axis)
Set axis.
Utility class to parse command line options.
int main(int argc, char **argv)
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const JPMT & getPMT(const int index) const
Get PMT.
Data structure for a composite optical module.
void rotate(const JRotation3D &R)
Rotate module.
Router for direct addressing of module data in detector data structure.
void store(const JString &file_name, const JDetector &detector)
Store detector to output file.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
#define DEBUG(A)
Message macros.
bool hasModule(const JObjectID &id) const
Has module.
Lookup table for PMT addresses in detector.
void compile()
Compile position of module from the positions of the PMTs.
const JModuleAddressMap & get(const int id) const
Get module address map.
JDetectorAddressMap & getDetectorAddressMap()
Get detector address map.