Stores links between chambers and the reconstructed T0.
More...
#include <ChamberT0s.h>
Stores links between chambers and the reconstructed T0.
- Author
- edwar.nosp@m.d.mo.nosp@m.yse@c.nosp@m.ern..nosp@m.ch
Definition at line 17 of file ChamberT0s.h.
◆ ChamberT0s() [1/3]
| Muon::ChamberT0s::ChamberT0s |
( |
| ) |
|
|
default |
◆ ChamberT0s() [2/3]
| Muon::ChamberT0s::ChamberT0s |
( |
const std::vector< std::pair< Identifier, float > > & | t0s | ) |
|
Definition at line 12 of file ChamberT0s.cxx.
13 :
15{}
std::vector< std::pair< Identifier, float > > m_t0s
◆ ChamberT0s() [3/3]
| Muon::ChamberT0s::ChamberT0s |
( |
std::vector< std::pair< Identifier, float > > && | t0s | ) |
|
◆ ~ChamberT0s()
| Muon::ChamberT0s::~ChamberT0s |
( |
| ) |
|
|
default |
◆ getAllT0s()
| const std::vector< std::pair< Identifier, float > > & Muon::ChamberT0s::getAllT0s |
( |
| ) |
const |
|
inline |
Returns entire list of T0s.
It consists of a vector of pairs, where the first element is the Chamber Identifier, and the second is the T0
Definition at line 68 of file ChamberT0s.h.
◆ getT0()
| float Muon::ChamberT0s::getT0 |
( |
const Identifier & | id | ) |
const |
|
inline |
Returns the T0 for this chamber (or ChamberT0s::ChamberUnknown if the chamber is not in list)
You could use this as e.g.
float t0 = chamberT0.getT0( chamberId );
}
static constexpr float ChamberUnknown
Value returned by ChamberT0s::getT0(...) when chamber is not known to ChamberT0s.
Definition at line 60 of file ChamberT0s.h.
60 {
61 std::vector< std::pair < Identifier, float > >::const_iterator
it
63 [&] (const auto& p) { return p.first == id; });
66}
◆ haveChamber()
| bool Muon::ChamberT0s::haveChamber |
( |
const Identifier & | id | ) |
const |
|
inline |
Returns true if we have the T0 for this chamber?
Definition at line 53 of file ChamberT0s.h.
53 {
54 std::vector< std::pair < Identifier, float > >::const_iterator
it
56 [&] (const auto& p) { return p.first == id; });
57 return (it!=
m_t0s.end());
58}
◆ ChamberUnknown
| float Muon::ChamberT0s::ChamberUnknown = -99999.9 |
|
staticconstexpr |
◆ m_t0s
| std::vector< std::pair < Identifier, float > > Muon::ChamberT0s::m_t0s |
|
private |
The documentation for this class was generated from the following files: