Jpp
18.2.0-rc.1
the software that should make you happy
|
Mapper for directly addressing of associated modules in the detector data structure. More...
#include <JModuleMapper.hh>
Public Types | |
typedef JModuleAttributes < JAttributes_t > | moduleattributes_type |
Type definition of module data. More... | |
typedef std::vector < moduleattributes_type > | container_type |
Type definition of a list with module data. More... | |
typedef JDetector::const_iterator | const_iterator |
Public Member Functions | |
JModuleMapper (const JDetector &detector) | |
Constructor. More... | |
JModuleMapper (const JModuleRouter &router) | |
Constructor. More... | |
template<class JMatch_t > | |
JModuleMapper (const JDetector &detector, JMatch_t match) | |
Constructor. More... | |
template<class JMatch_t > | |
JModuleMapper (const JModuleRouter &router, JMatch_t match) | |
Constructor. More... | |
const container_type & | getList (const JObjectID &id) const |
Get list with module data matching given module. More... | |
template<class JMatch_t > | |
void | configure (JMatch_t match) |
Configure this module mapper. 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 | |
std::vector< container_type > | zmap |
JClass_t & | __object |
Mapper for directly addressing of associated modules in the detector data structure.
The template argument refers to the module attributes. Note that, by construction, a module will not be assiciated to itself.
Definition at line 162 of file JModuleMapper.hh.
typedef JModuleAttributes<JAttributes_t> JDETECTOR::JModuleMapper< JAttributes_t >::moduleattributes_type |
Type definition of module data.
Definition at line 169 of file JModuleMapper.hh.
typedef std::vector<moduleattributes_type> JDETECTOR::JModuleMapper< JAttributes_t >::container_type |
Type definition of a list with module data.
Definition at line 174 of file JModuleMapper.hh.
|
inherited |
Definition at line 44 of file JModuleRouter.hh.
|
inline |
Constructor.
detector | detector |
Definition at line 182 of file JModuleMapper.hh.
|
inline |
Constructor.
router | module router |
Definition at line 194 of file JModuleMapper.hh.
|
inline |
Constructor.
The argument match
refers to a template which should implement the following operator:
bool operator()(const JModule& first, const JModule& second);
detector | detector |
match | module matcher |
Definition at line 213 of file JModuleMapper.hh.
|
inline |
Constructor.
The argument match
refers to a template which should implement the following operator:
bool operator()(const JModule& first, const JModule& second);
router | module router |
match | module matcher |
Definition at line 232 of file JModuleMapper.hh.
|
inline |
Get list with module data matching given module.
id | module identifier |
Definition at line 245 of file JModuleMapper.hh.
|
inline |
Configure this module mapper.
The argument match
refers to a template which should implement the following operator:
bool operator()(const JModule& first, const JModule& second);
match | module matcher |
Definition at line 262 of file JModuleMapper.hh.
|
inlineinherited |
Get module router.
Definition at line 67 of file JModuleRouter.hh.
|
inlineinherited |
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.
|
inlineinherited |
Has module.
id | module identifier |
Definition at line 103 of file JModuleRouter.hh.
|
inlineinherited |
Get index of module.
id | module identifier |
Definition at line 115 of file JModuleRouter.hh.
|
inlineinherited |
Has PMT.
id | PMT identifier |
Definition at line 127 of file JModuleRouter.hh.
|
inlineinherited |
Get PMT parameters.
id | PMT identifier |
Definition at line 139 of file JModuleRouter.hh.
|
inlineinherited |
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 |
|
protected |
Definition at line 284 of file JModuleMapper.hh.
|
protectedinherited |
Definition at line 110 of file JReference.hh.