![]() |
ATLAS Offline Software
|
Helper class to gather hit summary information for e.g. More...
#include <HitSummaryDataUtils.h>
Public Types | |
| enum | DetectorRegion { pixelBarrelFlat = 0 , pixelBarrelInclined = 1 , pixelEndcap = 2 , stripBarrel = 3 , stripEndcap = 4 , unknown = 5 , pixelBarrel = 6 , pixelTotal = 7 , stripTotal = 8 , hgtdTotal = 9 , unknownTotal = 10 , Total = 11 } |
| Regions for which hit counts are computed. More... | |
| enum class | CountType { Hit , Outlier , SharedHit , NCountTypes } |
| enum | EHitSelection { Hit = 1 , Outlier = 2 , HitAndOutlier = 3 , SharedHit = 4 } |
Public Member Functions | |
| void | reset () |
| reset all summary counters to zero. | |
| bool | addHit (xAOD::UncalibMeasType det_type, const InDetDD::SolidStateDetectorElementBase *detEl, EHitSelection hit_selection) |
| update summaries to take the given hit into account. | |
| void | computeSummaries () |
| Compute the varius summaries. | |
| uint8_t | contributingLayers (DetectorRegion region) const |
| return the number of layers contributing to the hit collection in the given detector region. | |
| uint8_t | contributingHits (DetectorRegion region, CountType hit_type=CountType::Hit) const |
| return the number of hits in a certain detector region. | |
| uint8_t | contributingOutlierHits (DetectorRegion region) const |
| return the number of outliers in a certain detector region. | |
| uint8_t | contributingSharedHits (DetectorRegion region) const |
| return the number of shared hits in a certain detector region. | |
| template<unsigned short HIT_SELECTION> | |
| uint8_t | sum (DetectorRegion region, uint8_t layer) const |
| return the total number of hits, outliers, and/or shared hits in the givrn detector region and layer. | |
| unsigned int | layerPattern (DetectorRegion region, bool include_outlier) const |
Static Public Member Functions | |
| static constexpr unsigned short | makeKey (unsigned short region, unsigned short layer, int eta_mod) |
| Compute a counter key for the given region, layer and module eta module index. | |
| static constexpr unsigned short | makeKey (unsigned short region) |
| static constexpr DetectorRegion | regionFromKey (unsigned short key) |
| extract the region index from the given key. | |
| static constexpr uint8_t | layerFromKey (unsigned short key) |
| extract the layer index from the given key. | |
Static Public Attributes | |
| static constexpr unsigned short | LAYER_REGION_MASK = 0xFF |
| static constexpr unsigned short | REGION_BITS = 4 |
| static constexpr unsigned short | REGION_MASK = 0xF |
| static constexpr unsigned short | LAYER_BITS = 4 |
| static constexpr unsigned short | LAYER_MASK = 0xF |
| static constexpr unsigned short | SIGNED_ETA_MOD_BITS = 7 |
| static constexpr unsigned short | SIGNED_ETA_MOD_MASK = 0x7F |
Private Attributes | |
| std::vector< std::tuple< unsigned short, uint8_t, uint8_t, uint8_t > > | m_stat |
| std::array< std::array< uint8_t, Total+1 >, static_cast< unsigned int >(CountType::NCountTypes)> | m_hits {} |
| std::array< uint8_t, Total+1 > | m_layers {} |
Static Private Attributes | |
| static constexpr std::array< uint8_t, unknown+1 > | s_type { pixelTotal, pixelTotal, pixelTotal, stripTotal, stripTotal, unknownTotal} |
Helper class to gather hit summary information for e.g.
tracks.
Definition at line 28 of file HitSummaryDataUtils.h.
|
strong |
| Enumerator | |
|---|---|
| Hit | |
| Outlier | |
| SharedHit | |
| NCountTypes | |
Definition at line 47 of file HitSummaryDataUtils.h.
Regions for which hit counts are computed.
| Enumerator | |
|---|---|
| pixelBarrelFlat | |
| pixelBarrelInclined | |
| pixelEndcap | |
| stripBarrel | |
| stripEndcap | |
| unknown | |
| pixelBarrel | |
| pixelTotal | |
| stripTotal | |
| hgtdTotal | |
| unknownTotal | |
| Total | |
Definition at line 32 of file HitSummaryDataUtils.h.
| Enumerator | |
|---|---|
| Hit | |
| Outlier | |
| HitAndOutlier | |
| SharedHit | |
Definition at line 98 of file HitSummaryDataUtils.h.
|
inline |
update summaries to take the given hit into account.
| det_type. | |
| detector_elements | detector element collection relevant for the given hit. |
| hit_selection | should be set to bit mask for Hit, Outlier, SharedHit. |
Definition at line 122 of file HitSummaryDataUtils.h.
|
inline |
Compute the varius summaries.
Must be called only after all hits have been gathered, and must not be called more than once.
Definition at line 185 of file HitSummaryDataUtils.h.
|
inline |
return the number of hits in a certain detector region.
| region | the detector region. Only meaningful after computeSummaries was called. |
Definition at line 220 of file HitSummaryDataUtils.h.
|
inline |
return the number of layers contributing to the hit collection in the given detector region.
| region | the detector region. Only meaningful after computeSummaries was called. |
Definition at line 212 of file HitSummaryDataUtils.h.
|
inline |
return the number of outliers in a certain detector region.
| region | the detector region. Only meaningful after computeSummaries was called. |
Definition at line 229 of file HitSummaryDataUtils.h.
|
inline |
return the number of shared hits in a certain detector region.
| region | the detector region. Only meaningful after computeSummaries was called. |
Definition at line 237 of file HitSummaryDataUtils.h.
|
inlinestaticconstexpr |
extract the layer index from the given key.
Definition at line 93 of file HitSummaryDataUtils.h.
|
inline |
Definition at line 265 of file HitSummaryDataUtils.h.
|
inlinestaticconstexpr |
Definition at line 80 of file HitSummaryDataUtils.h.
|
inlinestaticconstexpr |
Compute a counter key for the given region, layer and module eta module index.
| region | the detector region index (0..9). |
| layer | the layer index (0..15). |
| the | signed eta module index (-63..63). |
Definition at line 67 of file HitSummaryDataUtils.h.
|
inlinestaticconstexpr |
extract the region index from the given key.
Definition at line 87 of file HitSummaryDataUtils.h.
|
inline |
reset all summary counters to zero.
Definition at line 107 of file HitSummaryDataUtils.h.
|
inline |
return the total number of hits, outliers, and/or shared hits in the givrn detector region and layer.
| region | the detector region. |
| layer | the detector layer. |
Definition at line 247 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 57 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 58 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 54 of file HitSummaryDataUtils.h.
|
private |
Definition at line 281 of file HitSummaryDataUtils.h.
|
private |
Definition at line 282 of file HitSummaryDataUtils.h.
|
private |
Definition at line 280 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 55 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 56 of file HitSummaryDataUtils.h.
|
staticconstexprprivate |
Definition at line 283 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 59 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 60 of file HitSummaryDataUtils.h.