Jpp
19.1.0
the software that should make you happy
|
Router for direct addressing of module data in detector data structure. More...
#include <JModuleRouter.hh>
Public Types | |
typedef JDetector::const_iterator | const_iterator |
Public Member Functions | |
JModuleRouter (const JDetector &detector) | |
Constructor. More... | |
const JModuleRouter & | getModuleRouter () const |
Get module router. More... | |
const JModuleAddress & | getAddress (const JObjectID &id) const |
Get address of module. More... | |
const JModule & | getModule (const JObjectID &id) const |
Get module parameters. More... | |
bool | hasModule (const JObjectID &id) const |
Has module. More... | |
const int | getIndex (const JObjectID &id) const |
Get index of module. More... | |
bool | hasPMT (const JPMTIdentifier &id) const |
Has PMT. More... | |
const JPMT & | getPMT (const JPMTIdentifier &id) const |
Get PMT parameters. More... | |
JUTMPosition | getUTMPosition (const JObjectID &id) const |
Get UTM position of given module identifier. More... | |
const JClass_t & | getReference () const |
Get reference to object. More... | |
JClass_t & | getReference () |
Get reference to object. More... | |
bool | is_valid () const |
Check validity of reference. More... | |
const JClass_t * | operator-> () const |
Smart pointer. More... | |
JClass_t * | operator-> () |
Smart pointer. More... | |
const JClass_t & | operator* () const |
Dereference operator. More... | |
JClass_t & | operator* () |
Dereference operator. More... | |
Protected Attributes | |
JClass_t & | __object |
Private Types | |
typedef JReference< const JDetector > | JReference_t |
Private Attributes | |
JTOOLS::JRouter< JModuleAddress > | router |
Router for direct addressing of module data in detector data structure.
This router can be used to directly map the module identifier to the logical address of the module (JModuleAddress) in the detector data structure.
Note that the required memory is determined by the range covered by the module identifiers.
Definition at line 36 of file JModuleRouter.hh.
|
private |
Definition at line 40 of file JModuleRouter.hh.
typedef JDetector::const_iterator JDETECTOR::JModuleRouter::const_iterator |
Definition at line 44 of file JModuleRouter.hh.
|
inline |
Constructor.
detector | detector |
Definition at line 52 of file JModuleRouter.hh.
|
inline |
Get module router.
Definition at line 67 of file JModuleRouter.hh.
|
inline |
Get address of module.
id | module identifier |
Definition at line 79 of file JModuleRouter.hh.
Get module parameters.
id | module identifier |
Definition at line 91 of file JModuleRouter.hh.
|
inline |
Has module.
id | module identifier |
Definition at line 103 of file JModuleRouter.hh.
|
inline |
Get index of module.
id | module identifier |
Definition at line 115 of file JModuleRouter.hh.
|
inline |
Has PMT.
id | PMT identifier |
Definition at line 127 of file JModuleRouter.hh.
|
inline |
Get PMT parameters.
id | PMT identifier |
Definition at line 139 of file JModuleRouter.hh.
|
inline |
Get UTM position of given module identifier.
id | module identifier |
Definition at line 151 of file JModuleRouter.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
private |
Definition at line 157 of file JModuleRouter.hh.
|
protectedinherited |
Definition at line 110 of file JReference.hh.