Go to the documentation of this file. 1 #ifndef __JDETECTOR__JPMTROUTER__
2 #define __JDETECTOR__JPMTROUTER__
53 for (
const_iterator module = detector.begin(); module != detector.end(); ++module) {
54 for (JModule::const_iterator pmt = module->begin(); pmt != module->end(); ++pmt) {
68 return static_cast<const JPMTRouter&>(*
this);
80 return router.get(
id.getID());
116 return router.has(
id.getID());
Auxiliary class to uniquely identify PMT readout channel.
JTOOLS::JRouter< JPMTAddress > router
bool hasPMT(const JObjectID &id) const
Has PMT.
int getParentModuleID(const JObjectID &id) const
Get parent module identifier.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
Router for direct addressing of PMT data in detector data structure.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Logical location of module.
JUTMPosition getUTMPosition(const JObjectID &id) const
Get UTM position of given PMT identifier.
const JPMTRouter & getPMTRouter() const
Get PMT router.
const JClass_t & getReference() const
Get reference to object.
int getID() const
Get identifier.
Address of module in detector data structure.
Data structure for UTM position.
Data structure for a composite optical module.
const JPMTAddress & getAddress(const JObjectID &id) const
Get address of PMT.
Data structure for PMT geometry and calibration.
Auxiliary class for object identification.
JPMTIdentifier getIdentifier(const JObjectID &id) const
Get identifier of PMT.
JReference< const JDetector > JReference_t
Address of PMT in detector data structure.
JPMTChannel getPMTChannel(const JObjectID &id) const
Get PMT channel.
JPMTIdentifier getIdentifier(const JPMTAddress &address) const
Get identifier of PMT.
JPosition3D getPosition(const Vec &v)
Get position.
The template JReference class can be used to reference an object.
JPMTChannel getPMTChannel(const JPMTAddress &address) const
Get PMT channel.
const JModule & getParentModule(const JObjectID &id) const
Get parent module.
JPMTRouter(const JDetector &detector)
Constructor.
const JPMT & getPMT(const JObjectID &id) const
Get PMT.
Data structure for PMT readout address.
JDetector::const_iterator const_iterator
const JModule & getModule(const JModuleAddress &address) const
Get module.
Auxiliary classes and methods for detector calibration.
const JPMT & getPMT(const JPMTAddress &address) const
Get PMT.
int second
index of PMT in module data structure.