![]() |
ATLAS Offline Software
|
Data class describing the L0 muon candidates produced by TGC-SL. More...
#include <TGCCandData_v1.h>
Public Types | |
| enum class | BC_ID { BC_UNDEFINED = 0 , BC_PREVIOUS , BC_CURRENT , BC_NEXT , BC_NEXTNEXT } |
| Bunch crossing identifier. More... | |
| enum class | Quality : uint8_t { Q_UNDEFINED = 0 , Q_BEST , Q_LOW } |
Public Member Functions | |
| TGCCandData_v1 ()=default | |
| ~TGCCandData_v1 ()=default | |
| uint8_t | tcId () const |
| Retrieve the trigger-candidate identifier. | |
| float | ptValueGeV () const |
| Retrieve the inherited encoded pT value in GeV. | |
| bool | hasInnerCoincidence () const |
| Check whether the candidate passed Inner Coincidence. | |
| bool | goodMagneticField () const |
| Check whether the candidate is in a good magnetic-field region. | |
| float | deltaPhi () const |
| Retrieve the delta phi wrt vector from IP to segment position. | |
| float | deltaTheta () const |
| Retrieve the delta theta value wrt vector from IP to segment position. | |
| uint8_t | deltaPhiWord () const |
| Retrieve the raw encoded delta phi word. | |
| uint8_t | deltaThetaWord () const |
| Retrieve the raw encoded delta theta word. | |
| uint32_t | nswSegment () const |
| Retrieve the NSW segments. | |
| void | setTcId (uint8_t value) |
| Set the trigger-candidate identifier. | |
| void | setHasInnerCoincidence (bool value) |
| Set the Inner Coincidence bit in CoinType. | |
| void | setGoodMagneticField (bool value) |
| Set the GoodMag bit in CoinType. | |
| void | setDeltaPhi (float dphi) |
| Set the delta phi value. | |
| void | setDeltaTheta (float dtheta) |
| Set the delta theta value. | |
| void | setDeltaPhiWord (uint8_t value) |
| Set the raw encoded delta phi word. | |
| void | setDeltaThetaWord (uint8_t value) |
| Set the raw encoded delta theta word. | |
| void | setNswSegment (uint32_t nswout) |
| Set the NSW segments. | |
| uint16_t | subdetectorId () const |
| Retrieve the sub detector id. | |
| uint16_t | sectorId () const |
| Retrieve the sector id. | |
| uint16_t | bcTag () const |
| Retrieve the bunch crossing tag. | |
| uint8_t | threshold () const |
| Retrieve the threshold. | |
| uint8_t | candCharge () const |
| Retrieve the candidate charge. | |
| uint8_t | mdtFlag () const |
| Retrieve the MDT flag. | |
| uint8_t | coinType () const |
| Retrieve the coincidence type. | |
| uint16_t | eta () const |
| Retrieve the eta. | |
| uint16_t | phi () const |
| Retrieve the phi. | |
| uint8_t | pt () const |
| Retrieve the encoded candidate pT. | |
| Quality | candQuality () const |
| Retrieve the candidate quality. | |
| void | setSubdetectorId (uint16_t subdetectorId) |
| Set the sub detector id. | |
| void | setSectorId (uint16_t sectorId) |
| Set the sector id. | |
| void | setBcTag (uint16_t bcTag) |
| Set the bunch crossing tag. | |
| void | setEta (float eta) |
| Set the eta. | |
| void | setPhi (float phi) |
| Set the phi. | |
| void | setPt (float pt) |
| Set the candidate pT. | |
| void | setThreshold (uint8_t threshold) |
| Set the threshold. | |
| void | setCandCharge (uint8_t candCharge) |
| Set the candidate charge. | |
| void | setMdtFlag (uint8_t mdtFlag) |
| Set the MDT flag. | |
| void | setCoinType (uint8_t coinType) |
| Set the coincidence type. | |
| void | setCandQuality (Quality candQuality) |
| Set the candidate quality. | |
| void | initialize (uint16_t subdetectorId, uint16_t sectorId, uint16_t bcTag) |
| Initialize candidate with basic properties. | |
Static Public Member Functions | |
| static constexpr float | etaRange () |
| static constexpr uint16_t | etaBitRange () |
| static constexpr float | phiRange () |
| static constexpr uint16_t | phiBitRange () |
| static constexpr float | ptResolution () |
| static constexpr float | ptRange () |
| static constexpr uint8_t | ptBitRange () |
| static constexpr uint8_t | coinTypeBitMask () |
Static Protected Attributes | |
| static constexpr float | s_etaRange = 2.7 |
| Variables range. | |
| static constexpr float | s_phiRange = 2.0 * M_PI |
| static constexpr float | s_ptResolution = 0.5F |
| GeV per pT code. | |
| static constexpr uint16_t | s_etaBitRange = 0x3fff |
| Variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt. | |
| static constexpr uint16_t | s_phiBitRange = 0x1ff |
| static constexpr uint8_t | s_ptBitRange = 0xff |
| static constexpr float | s_ptRange |
| static constexpr uint8_t | COINTYPE_BIT_MASK = 0x7 |
| Bit mask for Coincidence Types. | |
Static Private Attributes | |
| static constexpr float | s_dthetaRange = 0.160 |
| range of the RPC hits z positions | |
| static constexpr float | s_dphiRange = 0.032 |
| static constexpr float | s_posRange = 12500.0F |
| range of the TGC hits positions | |
| static constexpr uint8_t | COINTYPE_INNER_COINCIDENCE_BIT = 0x1 |
| CoinType bit for Inner Coincidence. | |
| static constexpr uint8_t | COINTYPE_GOOD_MAGNETIC_FIELD_BIT = 0x2 |
| CoinType bit for the GoodMag flag. | |
| static constexpr uint8_t | DPHI_BIT_MASK = 0x7 |
| Bit mask for deltaPhi : 1 bit for sign and 3 bits. | |
| static constexpr uint8_t | DTHETA_BIT_MASK = 0x3f |
| Bit mask for deltaTheta : 1 bit for sign and 6 bits. | |
| static constexpr uint32_t | NSW_BIT_MASK = 0xfffffff |
| Bit mask for NSW-TP output. | |
| static constexpr uint8_t | TC_ID_BIT_MASK = 0x7 |
| Bit mask for the trigger-candidate identifier. | |
Data class describing the L0 muon candidates produced by TGC-SL.
The candidates are consumed by MDT-TP and L0MuonEndcap. Common candidate quantities are provided by ICandData_v1; this class stores only TGC-specific information.
Definition at line 23 of file TGCCandData_v1.h.
|
stronginherited |
Bunch crossing identifier.
| Enumerator | |
|---|---|
| BC_UNDEFINED | |
| BC_PREVIOUS | |
| BC_CURRENT | |
| BC_NEXT | |
| BC_NEXTNEXT | |
Definition at line 27 of file ICandData_v1.h.
|
stronginherited |
| Enumerator | |
|---|---|
| Q_UNDEFINED | |
| Q_BEST | |
| Q_LOW | |
Definition at line 36 of file ICandData_v1.h.
|
default |
|
default |
|
inherited |
Retrieve the bunch crossing tag.
|
inherited |
Retrieve the candidate charge.
|
inherited |
Retrieve the candidate quality.
|
inherited |
Retrieve the coincidence type.
Definition at line 69 of file ICandData_v1.cxx.
|
inlinestaticconstexprinherited |
Definition at line 176 of file ICandData_v1.h.
| float xAOD::TGCCandData_v1::deltaPhi | ( | ) | const |
Retrieve the delta phi wrt vector from IP to segment position.
Definition at line 51 of file TGCCandData_v1.cxx.
| uint8_t xAOD::TGCCandData_v1::deltaPhiWord | ( | ) | const |
Retrieve the raw encoded delta phi word.
Definition at line 59 of file TGCCandData_v1.cxx.
| float xAOD::TGCCandData_v1::deltaTheta | ( | ) | const |
Retrieve the delta theta value wrt vector from IP to segment position.
Definition at line 55 of file TGCCandData_v1.cxx.
| uint8_t xAOD::TGCCandData_v1::deltaThetaWord | ( | ) | const |
Retrieve the raw encoded delta theta word.
Definition at line 64 of file TGCCandData_v1.cxx.
|
inherited |
|
inlinestaticconstexprinherited |
Definition at line 170 of file ICandData_v1.h.
|
inlinestaticconstexprinherited |
Definition at line 169 of file ICandData_v1.h.
| bool xAOD::TGCCandData_v1::goodMagneticField | ( | ) | const |
Check whether the candidate is in a good magnetic-field region.
Definition at line 47 of file TGCCandData_v1.cxx.
| bool xAOD::TGCCandData_v1::hasInnerCoincidence | ( | ) | const |
Check whether the candidate passed Inner Coincidence.
Definition at line 43 of file TGCCandData_v1.cxx.
|
inherited |
Initialize candidate with basic properties.
Initialise the object given some input data
| subdetectorId | Subdetector ID |
| sectorId | Sector ID |
| bcTag | Bunch crossing tag |
Definition at line 74 of file ICandData_v1.cxx.
|
inherited |
Retrieve the MDT flag.
| uint32_t xAOD::TGCCandData_v1::nswSegment | ( | ) | const |
Retrieve the NSW segments.
Definition at line 69 of file TGCCandData_v1.cxx.
|
inherited |
|
inlinestaticconstexprinherited |
Definition at line 172 of file ICandData_v1.h.
|
inlinestaticconstexprinherited |
Definition at line 171 of file ICandData_v1.h.
|
inherited |
Retrieve the encoded candidate pT.
Definition at line 58 of file ICandData_v1.cxx.
|
inlinestaticconstexprinherited |
Definition at line 175 of file ICandData_v1.h.
|
inlinestaticconstexprinherited |
Definition at line 174 of file ICandData_v1.h.
|
inlinestaticconstexprinherited |
Definition at line 173 of file ICandData_v1.h.
| float xAOD::TGCCandData_v1::ptValueGeV | ( | ) | const |
Retrieve the inherited encoded pT value in GeV.
Definition at line 39 of file TGCCandData_v1.cxx.
|
inherited |
Retrieve the sector id.
|
inherited |
|
inherited |
Set the candidate charge.
| candCharge | Candidate charge |
|
inherited |
Set the candidate quality.
| candQuality | Candidate quality |
|
inherited |
Set the coincidence type.
| coinType | Coincidence type |
Definition at line 63 of file ICandData_v1.cxx.
| void xAOD::TGCCandData_v1::setDeltaPhi | ( | float | dphi | ) |
Set the delta phi value.
| dphi | Delta phi value |
Definition at line 89 of file TGCCandData_v1.cxx.
| void xAOD::TGCCandData_v1::setDeltaPhiWord | ( | uint8_t | value | ) |
Set the raw encoded delta phi word.
| value | Four-bit signed delta phi word |
Definition at line 97 of file TGCCandData_v1.cxx.
| void xAOD::TGCCandData_v1::setDeltaTheta | ( | float | dtheta | ) |
Set the delta theta value.
| dtheta | Delta theta value |
Definition at line 93 of file TGCCandData_v1.cxx.
| void xAOD::TGCCandData_v1::setDeltaThetaWord | ( | uint8_t | value | ) |
Set the raw encoded delta theta word.
| value | Seven-bit signed delta theta word |
Definition at line 102 of file TGCCandData_v1.cxx.
|
inherited |
Set the eta.
| eta | Eta |
Definition at line 26 of file ICandData_v1.cxx.
| void xAOD::TGCCandData_v1::setGoodMagneticField | ( | bool | value | ) |
Set the GoodMag bit in CoinType.
| value | New state of the GoodMag bit |
Definition at line 84 of file TGCCandData_v1.cxx.
| void xAOD::TGCCandData_v1::setHasInnerCoincidence | ( | bool | value | ) |
Set the Inner Coincidence bit in CoinType.
| value | New state of the Inner Coincidence bit |
Definition at line 79 of file TGCCandData_v1.cxx.
|
inherited |
| void xAOD::TGCCandData_v1::setNswSegment | ( | uint32_t | nswout | ) |
Set the NSW segments.
| nswout | NSW segments |
Definition at line 107 of file TGCCandData_v1.cxx.
|
inherited |
Set the phi.
| phi | Phi |
Definition at line 38 of file ICandData_v1.cxx.
|
inherited |
Set the candidate pT.
| pt | Candidate pT in GeV, encoded in 0.5 GeV steps |
Definition at line 50 of file ICandData_v1.cxx.
|
inherited |
|
inherited |
Set the sub detector id.
| subdetectorId | Subdetector ID |
| void xAOD::TGCCandData_v1::setTcId | ( | uint8_t | value | ) |
Set the trigger-candidate identifier.
| value | Three-bit trigger-candidate identifier; zero denotes an empty candidate |
Definition at line 74 of file TGCCandData_v1.cxx.
|
inherited |
|
inherited |
Retrieve the sub detector id.
| uint8_t xAOD::TGCCandData_v1::tcId | ( | ) | const |
Retrieve the trigger-candidate identifier.
Definition at line 34 of file TGCCandData_v1.cxx.
|
staticconstexprprotectedinherited |
Bit mask for Coincidence Types.
Definition at line 193 of file ICandData_v1.h.
|
staticconstexprprivate |
CoinType bit for the GoodMag flag.
Definition at line 126 of file TGCCandData_v1.h.
|
staticconstexprprivate |
CoinType bit for Inner Coincidence.
Definition at line 124 of file TGCCandData_v1.h.
|
staticconstexprprivate |
Bit mask for deltaPhi : 1 bit for sign and 3 bits.
Definition at line 128 of file TGCCandData_v1.h.
|
staticconstexprprivate |
Bit mask for deltaTheta : 1 bit for sign and 6 bits.
Definition at line 130 of file TGCCandData_v1.h.
|
staticconstexprprivate |
Bit mask for NSW-TP output.
Definition at line 132 of file TGCCandData_v1.h.
|
staticconstexprprivate |
Definition at line 119 of file TGCCandData_v1.h.
|
staticconstexprprivate |
range of the RPC hits z positions
Definition at line 118 of file TGCCandData_v1.h.
|
staticconstexprprotectedinherited |
Variables bit size 14 bits for eta, 9 bits for phi, 8 bits for pt.
Definition at line 186 of file ICandData_v1.h.
|
staticconstexprprotectedinherited |
Variables range.
Definition at line 180 of file ICandData_v1.h.
|
staticconstexprprotectedinherited |
Definition at line 187 of file ICandData_v1.h.
Definition at line 181 of file ICandData_v1.h.
|
staticconstexprprivate |
range of the TGC hits positions
Definition at line 121 of file TGCCandData_v1.h.
|
staticconstexprprotectedinherited |
Definition at line 188 of file ICandData_v1.h.
|
staticconstexprprotectedinherited |
Definition at line 189 of file ICandData_v1.h.
GeV per pT code.
Definition at line 182 of file ICandData_v1.h.
|
staticconstexprprivate |
Bit mask for the trigger-candidate identifier.
Definition at line 134 of file TGCCandData_v1.h.