Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structure for DAQ hits.
More...
#include <JDAQHitRouter.hh>
Simple wrapper around JModuleRouter class for direct addressing of PMT data in detector data structure for DAQ hits.
Definition at line 24 of file JDAQHitRouter.hh.
◆ JReference_t
◆ const_iterator
◆ JDAQHitRouter()
JDETECTOR::JDAQHitRouter::JDAQHitRouter |
( |
const JDetector & |
detector | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 36 of file JDAQHitRouter.hh.
JModuleRouter(const JDetector &detector)
Constructor.
◆ getModule() [1/3]
Get module parameters.
- Parameters
-
- Returns
- module parameters
Definition at line 47 of file JDAQHitRouter.hh.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
int getModuleID() const
Get module identifier.
◆ getPMT() [1/2]
const JPMT& JDETECTOR::JDAQHitRouter::getPMT |
( |
const JDAQKeyHit & |
hit | ) |
const |
|
inline |
Get PMT parameters.
- Parameters
-
- Returns
- PMT parameters
Definition at line 59 of file JDAQHitRouter.hh.
const JPMT & getPMT(const int index) const
Get PMT.
JPMT_t getPMT() const
Get PMT.
◆ getPMTChannel()
Get PMT channel.
- Parameters
-
- Returns
- PMT channel
Definition at line 71 of file JDAQHitRouter.hh.
Auxiliary class to uniquely identify PMT readout channel.
◆ getModule() [2/3]
const JModule& JDETECTOR::JModuleRouter::getModule |
|
inline |
Get module parameters.
- Parameters
-
- Returns
- module parameters
Definition at line 91 of file JModuleRouter.hh.
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
const JClass_t & getReference() const
Get reference to object.
◆ getModuleRouter()
const JModuleRouter& JDETECTOR::JModuleRouter::getModuleRouter |
( |
| ) |
const |
|
inlineinherited |
Get module router.
- Returns
- module router
Definition at line 67 of file JModuleRouter.hh.
Router for direct addressing of module data in detector data structure.
◆ getAddress()
Get address of module.
- Parameters
-
- Returns
- address
Definition at line 79 of file JModuleRouter.hh.
81 return router.get(
id.getID());
JTOOLS::JRouter< JModuleAddress > router
◆ getModule() [3/3]
const JModule& JDETECTOR::JModuleRouter::getModule |
( |
const JObjectID & |
id | ) |
const |
|
inlineinherited |
Get module parameters.
- Parameters
-
- Returns
- module parameters
Definition at line 91 of file JModuleRouter.hh.
◆ hasModule()
bool JDETECTOR::JModuleRouter::hasModule |
( |
const JObjectID & |
id | ) |
const |
|
inlineinherited |
Has module.
- Parameters
-
- Returns
- true if module present; else false
Definition at line 103 of file JModuleRouter.hh.
105 return router.has(
id.getID());
◆ getIndex()
const int JDETECTOR::JModuleRouter::getIndex |
( |
const JObjectID & |
id | ) |
const |
|
inlineinherited |
Get index of module.
- Parameters
-
- Returns
- index
Definition at line 115 of file JModuleRouter.hh.
int first
index of module in detector data structure
◆ hasPMT()
bool JDETECTOR::JModuleRouter::hasPMT |
( |
const JPMTIdentifier & |
id | ) |
const |
|
inlineinherited |
Has PMT.
- Parameters
-
- Returns
- true if PMT present; else false
Definition at line 127 of file JModuleRouter.hh.
129 return hasModule(
id.getID()) &&
id.getPMTAddress() >= 0 &&
id.getPMTAddress() < (int)
getModule(
id.getID()).size();
const JModule & getModule(const JObjectID &id) const
Get module parameters.
bool hasModule(const JObjectID &id) const
Has module.
◆ getPMT() [2/2]
Get PMT parameters.
- Parameters
-
- Returns
- PMT parameters
Definition at line 139 of file JModuleRouter.hh.
◆ getUTMPosition()
Get UTM position of given module identifier.
- Parameters
-
- Returns
- UTM position
Definition at line 151 of file JModuleRouter.hh.
JPosition3D getPosition(const JModule &first, const JModule &second)
Get position to go from first to second module.
◆ getReference() [1/2]
template<class JClass_t >
Get reference to object.
- Returns
- reference to object
Definition at line 38 of file JReference.hh.
◆ getReference() [2/2]
template<class JClass_t >
Get reference to object.
- Returns
- reference to object
Definition at line 49 of file JReference.hh.
◆ is_valid()
template<class JClass_t >
Check validity of reference.
- Returns
- true
Definition at line 60 of file JReference.hh.
◆ operator->() [1/2]
template<class JClass_t >
Smart pointer.
- Returns
- pointer to object
Definition at line 71 of file JReference.hh.
◆ operator->() [2/2]
template<class JClass_t >
Smart pointer.
- Returns
- pointer to object
Definition at line 82 of file JReference.hh.
◆ operator*() [1/2]
template<class JClass_t >
Dereference operator.
- Returns
- reference to object
Definition at line 93 of file JReference.hh.
◆ operator*() [2/2]
template<class JClass_t >
Dereference operator.
- Returns
- reference to object
Definition at line 104 of file JReference.hh.
◆ router
◆ __object
template<class JClass_t >
The documentation for this class was generated from the following file: