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 32 of file TrackToTruthParticleAssociation.h.

Member Typedef Documentation

◆ container

Definition at line 34 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 42 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 38 of file TrackToTruthParticleAssociation.h.

38{ return m_counts; }

◆ noiseCounts() [1/2]

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

Noise hit counts per track.

Definition at line 54 of file TrackToTruthParticleAssociation.h.

54{ 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 58 of file TrackToTruthParticleAssociation.h.

58{ return m_recoCounts[kNoise]; }

◆ totalCounts() [1/2]

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

Total hit counts per track.

Definition at line 46 of file TrackToTruthParticleAssociation.h.

46{ return m_recoCounts[kTotal]; }

◆ totalCounts() [2/2]

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

Total hit counts per track (read only).

Definition at line 50 of file TrackToTruthParticleAssociation.h.

50{ return m_recoCounts[kTotal]; }

Member Data Documentation

◆ m_counts

container ActsTrk::HitCountsPerTrack::m_counts
private

Definition at line 61 of file TrackToTruthParticleAssociation.h.

◆ m_recoCounts

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

Definition at line 63 of file TrackToTruthParticleAssociation.h.

63{};

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