![]() |
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 , pixelTotal = 6 , stripTotal = 7 , unknownTotal = 8 , Total = 9 } |
| Regions for which hit counts are computed. More... | |
| enum | EHitSelection { Hit = 1 , Outlier = 2 , HitAndOutlier = 3 , SharedHit = 4 } |
Public Member Functions | |
| void | reset () |
| reset all summary counters to zero. | |
| bool | addHit (const InDetDD::SiDetectorElementCollection *detector_elements, unsigned int id_hash, 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) 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. | |
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 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 = 0x1FF |
| static constexpr unsigned short | REGION_BITS = 3 |
| static constexpr unsigned short | REGION_MASK = 0x7 |
| static constexpr unsigned short | LAYER_BITS = 6 |
| static constexpr unsigned short | LAYER_MASK = 0x3F |
| 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< uint8_t, Total+1 > | m_hits |
| std::array< uint8_t, Total+1 > | m_outlierHits |
| std::array< uint8_t, Total+1 > | m_sharedHits |
| 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 38 of file HitSummaryDataUtils.h.
Regions for which hit counts are computed.
| Enumerator | |
|---|---|
| pixelBarrelFlat | |
| pixelBarrelInclined | |
| pixelEndcap | |
| stripBarrel | |
| stripEndcap | |
| unknown | |
| pixelTotal | |
| stripTotal | |
| unknownTotal | |
| Total | |
Definition at line 42 of file HitSummaryDataUtils.h.
| Enumerator | |
|---|---|
| Hit | |
| Outlier | |
| HitAndOutlier | |
| SharedHit | |
Definition at line 95 of file HitSummaryDataUtils.h.
|
inline |
update summaries to take the given hit into account.
| detector_elements | detector element collection relevant for the given hit. |
| id_hash | the id_hash of the hit |
| hit_selection | should be set to bit mask for Hit, Outlier, SharedHit. |
| returns | false in case the hit was not considered. The hit is not considered if the given id_hash is not valid for the given detector element collectio. |
Definition at line 119 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 164 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 196 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 188 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 204 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 212 of file HitSummaryDataUtils.h.
|
inlinestaticconstexpr |
extract the layer index from the given key.
Definition at line 90 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..7). |
| layer | the layer index (0..63). |
| the | signed eta module index (-63..63). |
Definition at line 68 of file HitSummaryDataUtils.h.
|
inlinestaticconstexpr |
extract the region index from the given key.
Definition at line 84 of file HitSummaryDataUtils.h.
|
inline |
reset all summary counters to zero.
Definition at line 104 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 222 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 58 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 59 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 55 of file HitSummaryDataUtils.h.
|
private |
Definition at line 243 of file HitSummaryDataUtils.h.
|
private |
Definition at line 246 of file HitSummaryDataUtils.h.
|
private |
Definition at line 244 of file HitSummaryDataUtils.h.
|
private |
Definition at line 245 of file HitSummaryDataUtils.h.
|
private |
Definition at line 242 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 56 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 57 of file HitSummaryDataUtils.h.
|
staticconstexprprivate |
Definition at line 247 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 60 of file HitSummaryDataUtils.h.
|
staticconstexpr |
Definition at line 61 of file HitSummaryDataUtils.h.