1 #ifndef __JDETECTOR__JMODULEROUTER__
2 #define __JDETECTOR__JMODULEROUTER__
16 namespace JDETECTOR {}
17 namespace JPP {
using namespace JDETECTOR; }
53 for (
const_iterator module = detector.begin(); module != detector.end(); ++module) {
78 return router.get(
id.getID());
102 return router.has(
id.getID());
const JModule & getModule(const JObjectID &id) const
Get module parameters.
Data structure for a composite optical module.
const int getIndex(const JObjectID &id) const
Get index of module.
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.
Address of module in detector data structure.
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
JUTMPosition getUTMPosition(const JObjectID &id) const
Get UTM position of given module identifier.
const JModuleRouter & getModuleRouter() const
Get module router.
JPosition3D getPosition(const Vec &v)
Get position.