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

Classes

struct  Empty

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Definition at line 77 of file TruthParticleHitCountAlg.h.

Member Function Documentation

◆ dumpStatistics()

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

Definition at line 61 of file TruthParticleHitCountAlg.cxx.

61 {
62 if constexpr(IsDebug) {
63 out << "Measurements per truth particle :" << m_measPerTruthParticle << std::endl
64 << m_measPerTruthParticle.histogramToString();
65 }
66 }

◆ fillStatistics()

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

Definition at line 68 of file TruthParticleHitCountAlg.cxx.

68 {
69 if constexpr(IsDebug) {
72 }
73 }
virtual void lock()=0
Interface to allow an object to lock itself when made const in SG.

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/2]

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

Definition at line 87 of file TruthParticleHitCountAlg.h.

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

◆ ATLAS_THREAD_SAFE [2/2]

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

Definition at line 84 of file TruthParticleHitCountAlg.h.


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