1 #ifndef __JDETECTOR__JMODULEROUTER__
2 #define __JDETECTOR__JMODULEROUTER__
56 for (
const_iterator module = detector.begin(); module != detector.end(); ++module) {
81 return router.get(
id.getID());
105 return router.has(
id.getID());
129 return hasModule(
id.getID()) &&
id.getPMTAddress() >= 0 &&
id.getPMTAddress() < (int)
getModule(
id.getID()).size();
Data structure for detector geometry and calibration.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
Address of module in detector data structure.
int first
index of module in detector data structure
Router for direct addressing of module data in detector data structure.
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
JDetector::const_iterator const_iterator
JModuleRouter(const JDetector &detector)
Constructor.
const JModuleRouter & getModuleRouter() const
Get module router.
JReference< const JDetector > JReference_t
bool hasPMT(const JPMTIdentifier &id) const
Has PMT.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
bool hasModule(const JObjectID &id) const
Has module.
const JPMT & getPMT(const JPMTIdentifier &id) const
Get PMT parameters.
const int getIndex(const JObjectID &id) const
Get index of module.
JTOOLS::JRouter< JModuleAddress > router
JUTMPosition getUTMPosition(const JObjectID &id) const
Get UTM position of given module identifier.
Data structure for a composite optical module.
const JPMT & getPMT(const int index) const
Get PMT.
Data structure for PMT geometry, calibration and status.
Auxiliary class for object identification.
The template JReference class can be used to reference an object.
const JClass_t & getReference() const
Get reference to object.
Data structure for UTM position.
JPosition3D getPosition(const Vec &pos)
Get position.
file Auxiliary data structures and methods for detector calibration.
const JObjectID & getUndefinedObjectID()
Get undefined object identifier.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).