1 #ifndef __JDETECTOR__JPMTROUTER__ 
    2 #define __JDETECTOR__JPMTROUTER__ 
   18 namespace JDETECTOR {}
 
   19 namespace JPP { 
using namespace JDETECTOR; }
 
   55       for (
const_iterator module = detector.begin(); module != detector.end(); ++module) {
 
   56         for (JModule::const_iterator pmt = module->begin(); pmt != module->end(); ++pmt) {
 
   82       return router.get(
id.getID());
 
  118       return router.has(
id.getID());
 
Router for direct addressing of PMT data in detector data structure. 
 
JTOOLS::JRouter< JPMTAddress > router
 
Auxiliary class to uniquely identify PMT readout channel. 
 
Data structure to uniquely identify PMT readout channel. 
 
Data structure for a composite optical module. 
 
JPMTChannel getPMTChannel(const JPMTAddress &address) const 
Get PMT channel. 
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
JPMTIdentifier getIdentifier(const JPMTAddress &address) const 
Get identifier of PMT. 
 
int second
index of PMT in module data structure. 
 
bool hasPMT(const JObjectID &id) const 
Has PMT. 
 
const JPMT & getPMT(const JPMTAddress &address) const 
Get PMT. 
 
Data structure for detector geometry and calibration. 
 
Data structure for UTM position. 
 
const JModule & getModule(const JModuleAddress &address) const 
Get module. 
 
The template JReference class can be used to reference an object. 
 
const JModule & getParentModule(const JObjectID &id) const 
Get parent module. 
 
int getID() const 
Get identifier. 
 
Data structure for PMT geometry, calibration and status. 
 
JPosition3D getPosition(const Vec &pos)
Get position. 
 
const JPMTRouter & getPMTRouter() const 
Get PMT router. 
 
Address of module in detector data structure. 
 
const JPMT & getPMT(const JObjectID &id) const 
Get PMT. 
 
JReference< const JDetector > JReference_t
 
const JClass_t & getReference() const 
Get reference to object. 
 
Address of PMT in detector data structure. 
 
Auxiliary class for object identification. 
 
JPMTRouter(const JDetector &detector)
Constructor. 
 
JUTMPosition getUTMPosition(const JObjectID &id) const 
Get UTM position of given PMT identifier. 
 
int getParentModuleID(const JObjectID &id) const 
Get parent module identifier. 
 
JPMTIdentifier getIdentifier(const JObjectID &id) const 
Get identifier of PMT. 
 
JPMTChannel getPMTChannel(const JObjectID &id) const 
Get PMT channel. 
 
const JPMTAddress & getAddress(const JObjectID &id) const 
Get address of PMT. 
 
JDetector::const_iterator const_iterator