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.
36 :
38 {}
JModuleRouter(const JDetector &detector)
Constructor.
◆ getModule() [1/2]
Get module parameters.
- Parameters
-
- Returns
- module parameters
Definition at line 47 of file JDAQHitRouter.hh.
48 {
50 }
const JModule & getModule(const JDAQKeyHit &hit) 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.
60 {
62 }
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.
72 {
74 }
Auxiliary class to uniquely identify PMT readout channel.
◆ getModule() [2/2]
const JModule & JDETECTOR::JModuleRouter::getModule |
( |
const JObjectID & | id | ) |
const |
|
inline |
Get module parameters.
- Parameters
-
- Returns
- module parameters
Definition at line 91 of file JModuleRouter.hh.
92 {
94 }
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 |
◆ getAddress()
Get address of module.
- Parameters
-
- Returns
- address
Definition at line 79 of file JModuleRouter.hh.
80 {
81 return router.get(
id.getID());
82 }
JTOOLS::JRouter< JModuleAddress > router
◆ 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.
104 {
105 return router.has(
id.getID());
106 }
◆ 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.
116 {
118 }
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.
128 {
129 return hasModule(
id.getID()) &&
id.getPMTAddress() >= 0 &&
id.getPMTAddress() < (int)
getModule(
id.getID()).size();
130 }
bool hasModule(const JObjectID &id) const
Has module.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
◆ 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.
152 {
154 }
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.
61 {
62 return true;
63 }
◆ 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: