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 46 of file TrackToTruthAssociationAlg.cxx.

46 {
47 if constexpr(IsDebug) {
48 out << "Measurements per track :" << m_measPerTrack << std::endl
49 << m_measPerTrack.histogramToString() << std::endl
50 << "TruthParticles per track :" << m_truthParticlesPerTrack << std::endl
51 << m_truthParticlesPerTrack.histogramToString();
52 }
53 }

◆ fillStatistics()

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

Definition at line 55 of file TrackToTruthAssociationAlg.cxx.

55 {
56 if constexpr(IsDebug) {
60 }
61 }
virtual void lock()=0
Interface to allow an object to lock itself when made const in SG.

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/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};

◆ 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,std::mutex,Empty>::type m_mutex ActsTrk::TrackToTruthAssociationAlg::AssociationCounter< IsDebug >::ATLAS_THREAD_SAFE
mutable

Definition at line 89 of file TrackToTruthAssociationAlg.h.


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