1#ifndef __JDETECTOR__JLOCATIONROUTER__
2#define __JDETECTOR__JLOCATIONROUTER__
47 for (
const_iterator module = detector.begin(); module != detector.end(); ++module) {
48 router[module->getString()][module->getFloor()] = JModuleAddress(std::distance(detector.begin(), module));
Data structure for detector geometry and calibration.
General purpose class for hash map of unique elements.
Logical location of module.
Router for direct addressing of location data in detector data structure.
bool hasLocation(const JLocation &location) const
Has module.
JTOOLS::JHashMap< int, JTOOLS::JHashMap< int, JModuleAddress > > router
JReference< const JDetector > JReference_t
const JModuleAddress & getAddress(const JLocation &location) const
Get address of location.
JDetector::const_iterator const_iterator
const JModule & getModule(const JLocation &location) const
Get module parameters.
const JLocationRouter & getLocationRouter() const
Get location router.
const int getIndex(const JLocation &location) const
Get index of location.
JLocationRouter(const JDetector &detector)
Constructor.
Logical location of module.
int getFloor() const
Get floor number.
int getString() const
Get string number.
Address of module in detector data structure.
int first
index of module in detector data structure
Data structure for a composite optical module.
The template JReference class can be used to reference an object.
const JClass_t & getReference() const
Get reference to object.
file Auxiliary data structures and methods for detector calibration.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).