ATLAS Offline Software
Loading...
Searching...
No Matches
ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug > Struct Template Reference
Collaboration diagram for ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >:

Classes

struct  Empty

Public Member Functions

template<class T_OutStream>
void dumpStatistics (T_OutStream &out) const
void fillStatistics (unsigned int n_measurements, unsigned int n_particles) const

Public Attributes

std::conditional< IsDebug, std::mutex, Empty >::type m_mutex ATLAS_THREAD_SAFE
std::conditional< IsDebug, ActsUtils::StatHist, Empty >::type m_measPerTrack ATLAS_THREAD_SAFE {20,-.5,40.-.5}
std::conditional< IsDebug, ActsUtils::StatHist, Empty >::type m_truthParticlesPerTrack ATLAS_THREAD_SAFE {20,-.5,20.-.5}

Detailed Description

template<bool IsDebug>
struct ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >

Definition at line 82 of file TrackToTruthAssociationAlg.h.

Member Function Documentation

◆ dumpStatistics()

template<bool IsDebug>
template<class T_OutStream>
void ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >::dumpStatistics ( T_OutStream & out) const
inline

Definition at line 51 of file TrackToTruthAssociationAlg.cxx.

51 {
52 if constexpr(IsDebug) {
53 out << "Measurements per track :" << m_measPerTrack << std::endl
54 << m_measPerTrack.histogramToString() << std::endl
55 << "TruthParticles per track :" << m_truthParticlesPerTrack << std::endl
56 << m_truthParticlesPerTrack.histogramToString();
57 }
58 }

◆ fillStatistics()

template<bool IsDebug>
void ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >::fillStatistics ( unsigned int n_measurements,
unsigned int n_particles ) const
inline

Definition at line 60 of file TrackToTruthAssociationAlg.cxx.

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/3]

template<bool IsDebug>
std::conditional<IsDebug,std::mutex,Empty>::type m_mutex ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >::ATLAS_THREAD_SAFE
mutable

Definition at line 89 of file TrackToTruthAssociationAlg.h.

◆ ATLAS_THREAD_SAFE [2/3]

template<bool IsDebug>
std::conditional<IsDebug,ActsUtils::StatHist,Empty>::type m_measPerTrack ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >::ATLAS_THREAD_SAFE {20,-.5,40.-.5}
mutable

Definition at line 92 of file TrackToTruthAssociationAlg.h.

92{20,-.5,40.-.5};

◆ ATLAS_THREAD_SAFE [3/3]

template<bool IsDebug>
std::conditional<IsDebug,ActsUtils::StatHist,Empty>::type m_truthParticlesPerTrack ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >::ATLAS_THREAD_SAFE {20,-.5,20.-.5}
mutable

Definition at line 95 of file TrackToTruthAssociationAlg.h.

95{20,-.5,20.-.5};

The documentation for this struct was generated from the following files: