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

Classes

struct  Empty

Public Member Functions

template<class T_OutStream>
void dumpStatistics (T_OutStream &out) const
void fillMeasForTruthParticleWithoutCount (double weighted_measurement_sum) const
void fillTruthMatchProb (const std::array< float, 2 > &best_match_prob) const

Public Attributes

std::conditional< IsDebug, std::mutex, Empty >::type m_mutex ATLAS_THREAD_SAFE
std::conditional< IsDebug, ActsUtils::StatHist, Empty >::type m_measPerTruthParticleWithoutCounts ATLAS_THREAD_SAFE {20,-.5,20.-.5}
std::conditional< IsDebug, ActsUtils::StatHist, Empty >::type m_bestMatchProb ATLAS_THREAD_SAFE {20,0.,1.}
std::conditional< IsDebug, ActsUtils::StatHist, Empty >::type m_nextToBestMatchProb ATLAS_THREAD_SAFE {20,0.,1.}

Detailed Description

template<bool IsDebug>
struct ActsTrk::TrackTruthMatchingBaseAlg::DebugCounter< IsDebug >

Definition at line 182 of file TrackTruthMatchingBaseAlg.h.

Member Function Documentation

◆ dumpStatistics()

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

Definition at line 134 of file TrackTruthMatchingBaseAlg.cxx.

134 {
135 if constexpr(IsDebug) {
136 out << "Weighted measurement sum per truth particle without associated counts :" << m_measPerTruthParticleWithoutCounts << std::endl
137 << m_measPerTruthParticleWithoutCounts.histogramToString() << std::endl
138 << "Match probability of best match :" << m_bestMatchProb << std::endl
139 << m_bestMatchProb.histogramToString() << std::endl
140 << "Match probability of next-to-best match :" << m_nextToBestMatchProb << std::endl
141 << m_nextToBestMatchProb.histogramToString() << std::endl;
142 }
143 }

◆ fillMeasForTruthParticleWithoutCount()

template<bool IsDebug>
void ActsTrk::TrackTruthMatchingBaseAlg::DebugCounter< IsDebug >::fillMeasForTruthParticleWithoutCount ( double weighted_measurement_sum) const
inline

Definition at line 146 of file TrackTruthMatchingBaseAlg.cxx.

146 {
147 if constexpr(IsDebug) {
150 }
151 }
virtual void lock()=0
Interface to allow an object to lock itself when made const in SG.

◆ fillTruthMatchProb()

template<bool IsDebug>
void ActsTrk::TrackTruthMatchingBaseAlg::DebugCounter< IsDebug >::fillTruthMatchProb ( const std::array< float, 2 > & best_match_prob) const
inline

Definition at line 153 of file TrackTruthMatchingBaseAlg.cxx.

153 {
154 if constexpr(IsDebug) {
158 }
159 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/4]

template<bool IsDebug>
std::conditional<IsDebug,ActsUtils::StatHist,Empty>::type m_nextToBestMatchProb ActsTrk::TrackTruthMatchingBaseAlg::DebugCounter< IsDebug >::ATLAS_THREAD_SAFE {20,0.,1.}
mutable

Definition at line 198 of file TrackTruthMatchingBaseAlg.h.

198{20,0.,1.};

◆ ATLAS_THREAD_SAFE [2/4]

template<bool IsDebug>
std::conditional<IsDebug,ActsUtils::StatHist,Empty>::type m_bestMatchProb ActsTrk::TrackTruthMatchingBaseAlg::DebugCounter< IsDebug >::ATLAS_THREAD_SAFE {20,0.,1.}
mutable

Definition at line 195 of file TrackTruthMatchingBaseAlg.h.

195{20,0.,1.};

◆ ATLAS_THREAD_SAFE [3/4]

template<bool IsDebug>
std::conditional<IsDebug,ActsUtils::StatHist,Empty>::type m_measPerTruthParticleWithoutCounts ActsTrk::TrackTruthMatchingBaseAlg::DebugCounter< IsDebug >::ATLAS_THREAD_SAFE {20,-.5,20.-.5}
mutable

Definition at line 192 of file TrackTruthMatchingBaseAlg.h.

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

◆ ATLAS_THREAD_SAFE [4/4]

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

Definition at line 189 of file TrackTruthMatchingBaseAlg.h.


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