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