Jpp 19.3.0-rc.3
the software that should make you happy
|
Router for direct addressing of PMT data in detector data structure. More...
#include <JPMTRouter.hh>
Public Types | |
typedef JDetector::const_iterator | const_iterator |
Public Member Functions | |
JPMTRouter (const JDetector &detector) | |
Constructor. | |
const JPMTRouter & | getPMTRouter () const |
Get PMT router. | |
const JPMTAddress & | getAddress (const JObjectID &id) const |
Get address of PMT. | |
const JPMT & | getPMT (const JPMTAddress &address) const |
Get PMT. | |
const JPMT & | getPMT (const JObjectID &id) const |
Get PMT. | |
bool | hasPMT (const JObjectID &id) const |
Has PMT. | |
JPMTIdentifier | getIdentifier (const JPMTAddress &address) const |
Get identifier of PMT. | |
JPMTIdentifier | getIdentifier (const JObjectID &id) const |
Get identifier of PMT. | |
const JModule & | getModule (const JModuleAddress &address) const |
Get module. | |
const JModule & | getParentModule (const JObjectID &id) const |
Get parent module. | |
int | getParentModuleID (const JObjectID &id) const |
Get parent module identifier. | |
JPMTChannel | getPMTChannel (const JPMTAddress &address) const |
Get PMT channel. | |
JPMTChannel | getPMTChannel (const JObjectID &id) const |
Get PMT channel. | |
JUTMPosition | getUTMPosition (const JObjectID &id) const |
Get UTM position of given PMT identifier. | |
const JClass_t & | getReference () const |
Get reference to object. | |
JClass_t & | getReference () |
Get reference to object. | |
bool | is_valid () const |
Check validity of reference. | |
const JClass_t * | operator-> () const |
Smart pointer. | |
JClass_t * | operator-> () |
Smart pointer. | |
const JClass_t & | operator* () const |
Dereference operator. | |
JClass_t & | operator* () |
Dereference operator. | |
Protected Attributes | |
JClass_t & | __object |
Private Types | |
typedef JReference< const JDetector > | JReference_t |
Private Attributes | |
JTOOLS::JRouter< JPMTAddress > | router |
Router for direct addressing of PMT data in detector data structure.
This router can be used to directly map the PMT identifier to the logical address of the PMT (JPMTAddress) in the detector data structure.
Note that the required memory is determined by the range covered by the PMT identifiers.
Definition at line 35 of file JPMTRouter.hh.
|
private |
Definition at line 39 of file JPMTRouter.hh.
JDetector::const_iterator JDETECTOR::JPMTRouter::const_iterator |
Definition at line 43 of file JPMTRouter.hh.
|
inline |
Constructor.
detector | detector |
Definition at line 51 of file JPMTRouter.hh.
|
inline |
Get PMT router.
Definition at line 68 of file JPMTRouter.hh.
|
inline |
Get address of PMT.
id | PMT identifier |
Definition at line 80 of file JPMTRouter.hh.
|
inline |
Get PMT.
address | PMT address |
Definition at line 92 of file JPMTRouter.hh.
Get PMT.
id | PMT identifier |
Definition at line 104 of file JPMTRouter.hh.
|
inline |
Has PMT.
id | PMT identifier |
Definition at line 116 of file JPMTRouter.hh.
|
inline |
Get identifier of PMT.
address | PMT address |
Definition at line 128 of file JPMTRouter.hh.
|
inline |
Get identifier of PMT.
id | PMT identifier |
Definition at line 140 of file JPMTRouter.hh.
|
inline |
Get module.
address | module address |
Definition at line 152 of file JPMTRouter.hh.
Get parent module.
id | PMT identifier |
Definition at line 164 of file JPMTRouter.hh.
|
inline |
Get parent module identifier.
id | PMT identifier |
Definition at line 176 of file JPMTRouter.hh.
|
inline |
Get PMT channel.
address | PMT address |
Definition at line 188 of file JPMTRouter.hh.
|
inline |
Get PMT channel.
id | PMT identifier |
Definition at line 200 of file JPMTRouter.hh.
|
inline |
Get UTM position of given PMT identifier.
id | PMT identifier |
Definition at line 212 of file JPMTRouter.hh.
|
inlineinherited |
Get reference to object.
Definition at line 38 of file JReference.hh.
|
inlineinherited |
|
inlineinherited |
Check validity of reference.
Definition at line 60 of file JReference.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
private |
Definition at line 218 of file JPMTRouter.hh.
|
protectedinherited |
Definition at line 110 of file JReference.hh.