![]() |
ATLAS Offline Software
|
Summary struct to hold the hit counts on the track per MS layer. More...
#include <HitSummary.h>
Public Types | |
| enum class | HitCategory : std::uint8_t { Precision =0 , TriggerEta , TriggerPhi , nCategories } |
| Category of the hit. More... | |
| enum class | Status { OnTrack = 0 , Outlier , Hole , MaxValue } |
| Contribution to the track fit. More... | |
| using | value_type = std::uint8_t |
| using | LayerIndex = Muon::MuonStationIndex::LayerIndex |
| Abrivation of the layer index. | |
Public Member Functions | |
| HitSummary ()=default | |
| Default constructor. | |
| 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. | |
| 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. | |
Static Public Member Functions | |
| static std::string | toString (const HitCategory c) |
| Converts the hit category to a string. | |
| static std::string | toString (const Status s) |
| Converts the status to a string. | |
Private Types | |
| using | Counter_t |
| Abrivation to store the hits per layer. | |
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) | |
| void | print (std::ostream &ostr) const |
| Print the summary as an ASCII table. | |
Private Attributes | |
| Counter_t | m_counts {} |
Friends | |
| std::ostream & | operator<< (std::ostream &ostr, const HitSummary &sum) |
| Output string stream operator. | |
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 22 of file HitSummary.h.
|
private |
Abrivation to store the hits per layer.
Definition at line 85 of file HitSummary.h.
Abrivation of the layer index.
Definition at line 25 of file HitSummary.h.
| using MuonR4::HitSummary::value_type = std::uint8_t |
Definition at line 23 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 29 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 36 of file HitSummary.h.
|
default |
Default constructor.
|
private |
Print the summary as an ASCII table.
Definition at line 60 of file HitSummary.cxx.
|
static |
Converts the hit category to a string.
Definition at line 16 of file HitSummary.cxx.
|
static |
Converts the status to a string.
Definition at line 26 of file HitSummary.cxx.
|
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 67 of file HitSummary.h.
|
private |
Definition at line 89 of file HitSummary.h.