1 #ifndef __JDETECTOR__JPMTROUTER__
2 #define __JDETECTOR__JPMTROUTER__
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());
Data structure for detector geometry and calibration.
Data structure to uniquely identify PMT readout channel.
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.
Data structure for a composite optical module.
Address of PMT in detector data structure.
int second
index of PMT in module data structure.
Auxiliary class to uniquely identify PMT readout channel.
Router for direct addressing of PMT data in detector data structure.
const JModule & getParentModule(const JObjectID &id) const
Get parent module.
const JPMTRouter & getPMTRouter() const
Get PMT router.
JPMTChannel getPMTChannel(const JObjectID &id) const
Get PMT channel.
const JModule & getModule(const JModuleAddress &address) const
Get module.
JUTMPosition getUTMPosition(const JObjectID &id) const
Get UTM position of given PMT identifier.
JPMTChannel getPMTChannel(const JPMTAddress &address) const
Get PMT channel.
bool hasPMT(const JObjectID &id) const
Has PMT.
JTOOLS::JRouter< JPMTAddress > router
const JPMT & getPMT(const JObjectID &id) const
Get PMT.
JPMTIdentifier getIdentifier(const JObjectID &id) const
Get identifier of PMT.
int getParentModuleID(const JObjectID &id) const
Get parent module identifier.
const JPMT & getPMT(const JPMTAddress &address) const
Get PMT.
JPMTRouter(const JDetector &detector)
Constructor.
JReference< const JDetector > JReference_t
JPMTIdentifier getIdentifier(const JPMTAddress &address) const
Get identifier of PMT.
const JPMTAddress & getAddress(const JObjectID &id) const
Get address of PMT.
JDetector::const_iterator const_iterator
Data structure for PMT geometry, calibration and status.
Auxiliary class for object identification.
int getID() const
Get identifier.
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.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).