ATLAS Offline Software
Public Types | Public Member Functions | Private Types | Private Attributes | List of all members
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 containercountsPerTruthParticle () const
 vector with counts per associated truth particle (read only) More...
 
containercountsPerTruthParticle ()
 vector with counts per associated truth particle More...
 
HitCounterArraytotalCounts ()
 Total hit counts per track. More...
 
const HitCounterArraytotalCounts () const
 Total hit counts per track (read only). More...
 
HitCounterArraynoiseCounts ()
 Noise hit counts per track. More...
 
const HitCounterArraynoiseCounts () const
 Noise hit counts per track (read only). More...
 

Private Types

enum  ECounts { kTotal, kNoise, kNRecoCounts }
 

Private Attributes

container m_counts
 
std::array< HitCounterArray, kNRecoCountsm_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

Enumerator
kTotal 
kNoise 
kNRecoCounts 

Definition at line 67 of file TrackToTruthParticleAssociation.h.

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.

47 { return m_counts; }

◆ 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]; }

◆ 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:
ActsTrk::HitCountsPerTrack::kNRecoCounts
@ kNRecoCounts
Definition: TrackToTruthParticleAssociation.h:67
ActsTrk::HitCountsPerTrack::kTotal
@ kTotal
Definition: TrackToTruthParticleAssociation.h:67
ActsTrk::HitCountsPerTrack::kNoise
@ kNoise
Definition: TrackToTruthParticleAssociation.h:67
ActsTrk::HitCountsPerTrack::m_recoCounts
std::array< HitCounterArray, kNRecoCounts > m_recoCounts
Definition: TrackToTruthParticleAssociation.h:68
ActsTrk::HitCountsPerTrack::m_counts
container m_counts
Definition: TrackToTruthParticleAssociation.h:66