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

40 {
41 if constexpr(IsDebug) {
42 out << "Measurements per track :" << m_measPerTrack << std::endl
43 << m_measPerTrack.histogramToString() << std::endl
44 << "TruthParticles per track :" << m_truthParticlesPerTrack << std::endl
45 << m_truthParticlesPerTrack.histogramToString();
46 }
47 }

◆ fillStatistics()

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

Definition at line 49 of file TrackToTruthAssociationAlg.cxx.

49 {
50 if constexpr(IsDebug) {
54 }
55 }
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 88 of file TrackToTruthAssociationAlg.h.

88{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 85 of file TrackToTruthAssociationAlg.h.

85{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 82 of file TrackToTruthAssociationAlg.h.


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