1 #ifndef __JDETECTOR__JLOCATIONROUTER__
2 #define __JDETECTOR__JLOCATIONROUTER__
16 namespace JDETECTOR {}
17 namespace JPP {
using namespace JDETECTOR; }
47 for (
const_iterator module = detector.begin(); module != detector.end(); ++module) {
int getFloor() const
Get floor number.
Data structure for a composite optical module.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
JDetector::const_iterator const_iterator
General purpose class for hash map of unique elements.
bool hasLocation(const JLocation &location) const
Has module.
const JModule & getModule(const JLocation &location) const
Get module parameters.
JLocationRouter(const JDetector &detector)
Constructor.
JTOOLS::JHashMap< int, JTOOLS::JHashMap< int, JModuleAddress > > router
Data structure for detector geometry and calibration.
int first
index of module in detector data structure
Router for direct addressing of location data in detector data structure.
Logical location of module.
The template JReference class can be used to reference an object.
const JLocationRouter & getLocationRouter() const
Get location router.
Address of module in detector data structure.
const JModuleAddress & getAddress(const JLocation &location) const
Get address of location.
Logical location of module.
int getString() const
Get string number.
const JClass_t & getReference() const
Get reference to object.
JReference< const JDetector > JReference_t
do set_variable DETECTOR_TXT $WORKDIR detector
const int getIndex(const JLocation &location) const
Get index of location.