![]() |
ATLAS Offline Software
|
Summary struct to hold the hit counts on the track per MS layer. More...
#include <HitSummary.h>
Public Types | |
| enum | HitCategory : std::uint8_t { HitCategory::Precision =0, HitCategory::TriggerEta, HitCategory::TriggerPhi, HitCategory::nCategories } |
| Category of the hit. More... | |
| enum | Status { Status::OnTrack = 0, Status::Outlier, Status::Hole, Status::MaxValue } |
| Contribution to the track fit. More... | |
| using | value_type = std::uint8_t |
| using | LayerIndex = Muon::MuonStationIndex::LayerIndex |
| Abrivation of the layer index. More... | |
Public Member Functions | |
| HitSummary ()=default | |
| Default constructor. More... | |
| value_type | value (const HitCategory cat, const Status status, const LayerIndex layer, const bool isSmall) const |
| Returns the value type for a defined hit category & layer. More... | |
| value_type & | value (const HitCategory cat, const Status status, const LayerIndex layer, const bool isSmall) |
| Returns the value type for a defined hit category & layer to modify the summary value. More... | |
Static Public Member Functions | |
| static std::string | toString (const HitCategory c) |
| Converts the hit category to a string. More... | |
| static std::string | toString (const Status s) |
| Converts the status to a string. More... | |
Private Types | |
| using | Counter_t = std::array< value_type, Acts::toUnderlying(HitCategory::nCategories) *(Acts::toUnderlying(LayerIndex::LayerIndexMax) -1) *Acts::toUnderlying(Status::MaxValue) *2 > |
| Abrivation to store the hits per layer. More... | |
Private Member Functions | |
| unsigned | translate (const HitCategory cat, const Status status, LayerIndex layer, const bool isSmall) const |
| Translates the 4 classification indices to a unique consecutive number (used for storage access) More... | |
| void | print (std::ostream &ostr) const |
| Print the summary as an ASCII table. More... | |
Private Attributes | |
| Counter_t | m_counts {} |
Friends | |
| std::ostream & | operator<< (std::ostream &ostr, const HitSummary &sum) |
| Output string stream operator. More... | |
Summary struct to hold the hit counts on the track per MS layer.
Summaries are categorized by MS layer (Inner / Middle / Outer / Extended), by whether the hit is a precision, trigger eta or trigger phi hit & by their contribution to the track fit. Note: Barrel extended is counted under the Extended category
Definition at line 21 of file HitSummary.h.
|
private |
Abrivation to store the hits per layer.
Definition at line 84 of file HitSummary.h.
Abrivation of the layer index.
Definition at line 24 of file HitSummary.h.
| using MuonR4::HitSummary::value_type = std::uint8_t |
Definition at line 22 of file HitSummary.h.
|
strong |
Category of the hit.
| Enumerator | |
|---|---|
| Precision | |
| TriggerEta | Precision hits (Mdt, NSW) on track. |
| TriggerPhi | Trigger eta hits (Tgc, Rpc) |
| nCategories | Trigger phi hits (Tgc, Rpc) |
Definition at line 28 of file HitSummary.h.
|
strong |
Contribution to the track fit.
| Enumerator | |
|---|---|
| OnTrack | |
| Outlier | Added to the trajectory & contributing to the fit. |
| Hole | Added to the trajectory but rejected. |
| MaxValue | Expected hit but missing. |
Definition at line 35 of file HitSummary.h.
|
default |
Default constructor.
|
private |
|
static |
|
private |
Translates the 4 classification indices to a unique consecutive number (used for storage access)
| cat | Hit category |
| status | Contribution to the fit |
| layer | Spectrometer layer |
| isSmall | Small sectors |
Map the barrel extended -> extended index
Definition at line 36 of file HitSummary.cxx.
| HitSummary::value_type & MuonR4::HitSummary::value | ( | const HitCategory | cat, |
| const Status | status, | ||
| const LayerIndex | layer, | ||
| const bool | isSmall | ||
| ) |
Returns the value type for a defined hit category & layer to modify the summary value.
| cat | Hit category |
| status | Contribution to the fit |
| layer | Spectrometer layer |
| isSmall | Small sectors |
Definition at line 56 of file HitSummary.cxx.
| HitSummary::value_type MuonR4::HitSummary::value | ( | const HitCategory | cat, |
| const Status | status, | ||
| const LayerIndex | layer, | ||
| const bool | isSmall | ||
| ) | const |
|
friend |
Output string stream operator.
Definition at line 66 of file HitSummary.h.
|
private |
Definition at line 88 of file HitSummary.h.
1.8.18