ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::HitCountsPerTrack Class Reference

Container for hit counts per track Contains hit counts per associated truth particle and the total hit counts As last element in the container. More...

#include <TrackToTruthParticleAssociation.h>

Collaboration diagram for ActsTrk::HitCountsPerTrack:

Public Types

using container = boost::container::small_vector<std::pair<const xAOD::TruthParticle *, HitCounterArray >, NTruthParticlesPerTrack>

Public Member Functions

const container & countsPerTruthParticle () const
 vector with counts per associated truth particle (read only)
container & countsPerTruthParticle ()
 vector with counts per associated truth particle
HitCounterArray & totalCounts ()
 Total hit counts per track.
const HitCounterArray & totalCounts () const
 Total hit counts per track (read only).
HitCounterArray & noiseCounts ()
 Noise hit counts per track.
const HitCounterArray & noiseCounts () const
 Noise hit counts per track (read only).

Private Types

enum  ECounts { kTotal , kNoise , kNRecoCounts }

Private Attributes

container m_counts
std::array< HitCounterArray, kNRecoCounts > m_recoCounts

Detailed Description

Container for hit counts per track Contains hit counts per associated truth particle and the total hit counts As last element in the container.

The sub-container returned by countsPerTruthParticle contains the subset where each of the pairs contains a valid pointer to a truth particle and its associated hit counts.

Definition at line 37 of file TrackToTruthParticleAssociation.h.

Member Typedef Documentation

◆ container

Definition at line 39 of file TrackToTruthParticleAssociation.h.

Member Enumeration Documentation

◆ ECounts

Member Function Documentation

◆ countsPerTruthParticle() [1/2]

container & ActsTrk::HitCountsPerTrack::countsPerTruthParticle ( )
inline

vector with counts per associated truth particle

Definition at line 47 of file TrackToTruthParticleAssociation.h.

◆ countsPerTruthParticle() [2/2]

const container & ActsTrk::HitCountsPerTrack::countsPerTruthParticle ( ) const
inline

vector with counts per associated truth particle (read only)

Definition at line 43 of file TrackToTruthParticleAssociation.h.

43{ return m_counts; }

◆ noiseCounts() [1/2]

HitCounterArray & ActsTrk::HitCountsPerTrack::noiseCounts ( )
inline

Noise hit counts per track.

Definition at line 59 of file TrackToTruthParticleAssociation.h.

59{ return m_recoCounts[kNoise]; }
std::array< HitCounterArray, kNRecoCounts > m_recoCounts

◆ noiseCounts() [2/2]

const HitCounterArray & ActsTrk::HitCountsPerTrack::noiseCounts ( ) const
inline

Noise hit counts per track (read only).

Definition at line 63 of file TrackToTruthParticleAssociation.h.

63{ return m_recoCounts[kNoise]; }

◆ totalCounts() [1/2]

HitCounterArray & ActsTrk::HitCountsPerTrack::totalCounts ( )
inline

Total hit counts per track.

Definition at line 51 of file TrackToTruthParticleAssociation.h.

51{ return m_recoCounts[kTotal]; }

◆ totalCounts() [2/2]

const HitCounterArray & ActsTrk::HitCountsPerTrack::totalCounts ( ) const
inline

Total hit counts per track (read only).

Definition at line 55 of file TrackToTruthParticleAssociation.h.

55{ return m_recoCounts[kTotal]; }

Member Data Documentation

◆ m_counts

container ActsTrk::HitCountsPerTrack::m_counts
private

Definition at line 66 of file TrackToTruthParticleAssociation.h.

◆ m_recoCounts

std::array<HitCounterArray,kNRecoCounts> ActsTrk::HitCountsPerTrack::m_recoCounts
private

Definition at line 68 of file TrackToTruthParticleAssociation.h.


The documentation for this class was generated from the following file: