Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Helper class to gather hit summary information for e.g.
More...
#include <HitSummaryDataUtils.h>
|
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
} |
|
|
constexpr static 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. More...
|
|
constexpr static DetectorRegion | regionFromKey (unsigned short key) |
| extract the region index from the given key. More...
|
|
constexpr static uint8_t | layerFromKey (unsigned short key) |
| extract the layer index from the given key. More...
|
|
Helper class to gather hit summary information for e.g.
tracks.
Definition at line 38 of file HitSummaryDataUtils.h.
◆ DetectorRegion
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.
◆ EHitSelection
◆ addHit()
update summaries to take the given hit into account.
- Parameters
-
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.
120 if (!detector_elements || id_hash>=detector_elements->size() || !(*detector_elements)[id_hash]) {
137 else if (detEl->
isSCT()) {
146 for (
auto &[stat_key, stat_hits, stat_outlier_hits, stat_shared_hits] :
m_stat) {
147 if (stat_key ==
key) {
154 m_stat.emplace_back( std::make_tuple(
key,
◆ computeSummaries()
void ActsTrk::detail::HitSummaryData::computeSummaries |
( |
| ) |
|
|
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.
165 for (
const auto &[stat_key, stat_hits, stat_outlier_hits, stat_shared_hits] :
m_stat) {
167 m_hits.at(region) += stat_hits;
172 for (
unsigned int region_i=0; region_i<
unknown+1; ++region_i) {
◆ contributingHits()
uint8_t ActsTrk::detail::HitSummaryData::contributingHits |
( |
DetectorRegion |
region | ) |
const |
|
inline |
return the number of hits in a certain detector region.
- Parameters
-
Definition at line 196 of file HitSummaryDataUtils.h.
◆ contributingLayers()
uint8_t ActsTrk::detail::HitSummaryData::contributingLayers |
( |
DetectorRegion |
region | ) |
const |
|
inline |
return the number of layers contributing to the hit collection in the given detector region.
- Parameters
-
Definition at line 188 of file HitSummaryDataUtils.h.
◆ contributingOutlierHits()
uint8_t ActsTrk::detail::HitSummaryData::contributingOutlierHits |
( |
DetectorRegion |
region | ) |
const |
|
inline |
return the number of outliers in a certain detector region.
- Parameters
-
Definition at line 204 of file HitSummaryDataUtils.h.
◆ contributingSharedHits()
uint8_t ActsTrk::detail::HitSummaryData::contributingSharedHits |
( |
DetectorRegion |
region | ) |
const |
|
inline |
return the number of shared hits in a certain detector region.
- Parameters
-
Definition at line 212 of file HitSummaryDataUtils.h.
◆ layerFromKey()
constexpr static uint8_t ActsTrk::detail::HitSummaryData::layerFromKey |
( |
unsigned short |
key | ) |
|
|
inlinestaticconstexpr |
◆ makeKey()
constexpr static unsigned short ActsTrk::detail::HitSummaryData::makeKey |
( |
unsigned short |
region, |
|
|
unsigned short |
layer, |
|
|
int |
eta_mod |
|
) |
| |
|
inlinestaticconstexpr |
Compute a counter key for the given region, layer and module eta module index.
- Parameters
-
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.
◆ regionFromKey()
constexpr static DetectorRegion ActsTrk::detail::HitSummaryData::regionFromKey |
( |
unsigned short |
key | ) |
|
|
inlinestaticconstexpr |
◆ reset()
void ActsTrk::detail::HitSummaryData::reset |
( |
| ) |
|
|
inline |
◆ sum()
template<unsigned short HIT_SELECTION>
uint8_t ActsTrk::detail::HitSummaryData::sum |
( |
DetectorRegion |
region, |
|
|
uint8_t |
layer |
|
) |
| const |
|
inline |
return the total number of hits, outliers, and/or shared hits in the givrn detector region and layer.
- Parameters
-
region | the detector region. |
layer | the detector layer. |
Definition at line 222 of file HitSummaryDataUtils.h.
225 for (
const auto &[stat_key, stat_hits, stat_outlier_hits, stat_shared_hits] :
m_stat) {
231 total += stat_outlier_hits;
234 total += stat_shared_hits;
◆ LAYER_BITS
constexpr static unsigned short ActsTrk::detail::HitSummaryData::LAYER_BITS = 6 |
|
staticconstexpr |
◆ LAYER_MASK
constexpr static unsigned short ActsTrk::detail::HitSummaryData::LAYER_MASK = 0x3F |
|
staticconstexpr |
◆ LAYER_REGION_MASK
constexpr static unsigned short ActsTrk::detail::HitSummaryData::LAYER_REGION_MASK = 0x1FF |
|
staticconstexpr |
◆ m_hits
std::array<uint8_t, Total+1> ActsTrk::detail::HitSummaryData::m_hits |
|
private |
◆ m_layers
std::array<uint8_t, Total+1> ActsTrk::detail::HitSummaryData::m_layers |
|
private |
◆ m_outlierHits
std::array<uint8_t, Total+1> ActsTrk::detail::HitSummaryData::m_outlierHits |
|
private |
◆ m_sharedHits
std::array<uint8_t, Total+1> ActsTrk::detail::HitSummaryData::m_sharedHits |
|
private |
◆ m_stat
std::vector< std::tuple<unsigned short, uint8_t, uint8_t, uint8_t> > ActsTrk::detail::HitSummaryData::m_stat |
|
private |
◆ REGION_BITS
constexpr static unsigned short ActsTrk::detail::HitSummaryData::REGION_BITS = 3 |
|
staticconstexpr |
◆ REGION_MASK
constexpr static unsigned short ActsTrk::detail::HitSummaryData::REGION_MASK = 0x7 |
|
staticconstexpr |
◆ s_type
◆ SIGNED_ETA_MOD_BITS
constexpr static unsigned short ActsTrk::detail::HitSummaryData::SIGNED_ETA_MOD_BITS = 7 |
|
staticconstexpr |
◆ SIGNED_ETA_MOD_MASK
constexpr static unsigned short ActsTrk::detail::HitSummaryData::SIGNED_ETA_MOD_MASK = 0x7F |
|
staticconstexpr |
The documentation for this class was generated from the following file:
constexpr static unsigned short LAYER_REGION_MASK
constexpr static unsigned short SIGNED_ETA_MOD_MASK
@ u
Enums for curvilinear frames.
constexpr static 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.
const AtlasDetectorID * getIdHelper() const
Returns the id helper (inline)
static constexpr std::array< uint8_t, unknown+1 > s_type
constexpr static unsigned short REGION_MASK
std::array< uint8_t, Total+1 > m_outlierHits
constexpr static unsigned short SIGNED_ETA_MOD_BITS
std::array< uint8_t, Total+1 > m_hits
virtual DetectorType type() const
Type of element.
std::vector< std::tuple< unsigned short, uint8_t, uint8_t, uint8_t > > m_stat
void fill(H5::Group &out_file, size_t iterations)
int layer_disk(const Identifier &id) const
int eta_module(const Identifier &id) const
std::array< uint8_t, Total+1 > m_sharedHits
int layer_disk(const Identifier &id) const
constexpr static unsigned short LAYER_MASK
constexpr static unsigned short REGION_BITS
int eta_module(const Identifier &id) const
std::array< uint8_t, Total+1 > m_layers
constexpr static DetectorRegion regionFromKey(unsigned short key)
extract the region index from the given key.
constexpr static unsigned short LAYER_BITS
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
DetectorRegion
Regions for which hit counts are computed.
virtual Identifier identify() const override final
identifier of this detector element (inline)