1 #ifndef __JDETECTOR__JMODULEROUTER__
2 #define __JDETECTOR__JMODULEROUTER__
17 namespace JDETECTOR {}
18 namespace JPP {
using namespace JDETECTOR; }
54 for (
const_iterator module = detector.begin(); module != detector.end(); ++module) {
79 return router.get(
id.getID());
103 return router.has(
id.getID());
127 return hasModule(
id.getID()) &&
id.getPMTAddress() >= 0 &&
id.getPMTAddress() < (int)
getModule(
id.getID()).size();
const JModule & getModule(const JObjectID &id) const
Get module parameters.
Data structure for a composite optical module.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
const int getIndex(const JObjectID &id) const
Get index of module.
bool hasPMT(const JPMTIdentifier &id) const
Has PMT.
Router for direct addressing of module data in detector data structure.
JTOOLS::JRouter< JModuleAddress > router
Data structure for detector geometry and calibration.
Data structure for UTM position.
JModuleRouter(const JDetector &detector)
Constructor.
int first
index of module in detector data structure
JDetector::const_iterator const_iterator
The template JReference class can be used to reference an object.
Data structure for PMT geometry, calibration and status.
JPosition3D getPosition(const Vec &pos)
Get position.
Address of module in detector data structure.
const JPMT & getPMT(const int index) const
Get PMT.
const JPMT & getPMT(const JPMTIdentifier &id) const
Get PMT parameters.
const JClass_t & getReference() const
Get reference to object.
Auxiliary class for object identification.
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
const JObjectID & getUndefinedObjectID()
Get undefined object identifier.
bool hasModule(const JObjectID &id) const
Has module.
JReference< const JDetector > JReference_t
do set_variable DETECTOR_TXT $WORKDIR detector
JUTMPosition getUTMPosition(const JObjectID &id) const
Get UTM position of given module identifier.
const JModuleRouter & getModuleRouter() const
Get module router.