ATLAS Offline Software
Classes | Public Member Functions | Public Attributes | List of all members
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 206 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 145 of file TrackTruthMatchingBaseAlg.cxx.

145  {
146  if constexpr(IsDebug) {
147  out << "Weighted measurement sum per truth particle without associated counts :" << m_measPerTruthParticleWithoutCounts << std::endl
148  << m_measPerTruthParticleWithoutCounts.histogramToString() << std::endl
149  << "Match probability of best match :" << m_bestMatchProb << std::endl
150  << m_bestMatchProb.histogramToString() << std::endl
151  << "Match probability of next-to-best match :" << m_nextToBestMatchProb << std::endl
152  << m_nextToBestMatchProb.histogramToString() << std::endl;
153  }
154  }

◆ fillMeasForTruthParticleWithoutCount()

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

Definition at line 157 of file TrackTruthMatchingBaseAlg.cxx.

157  {
158  if constexpr(IsDebug) {
159  std::lock_guard<std::mutex> lock(m_mutex);
160  m_measPerTruthParticleWithoutCounts.add(weighted_measurement_sum);
161  }
162  }

◆ fillTruthMatchProb()

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

Definition at line 164 of file TrackTruthMatchingBaseAlg.cxx.

164  {
165  if constexpr(IsDebug) {
166  std::lock_guard<std::mutex> lock(m_mutex);
167  m_bestMatchProb.add(best_match_prob[0]);
168  m_nextToBestMatchProb.add(best_match_prob[1]);
169  }
170  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/4]

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

Definition at line 213 of file TrackTruthMatchingBaseAlg.h.

◆ ATLAS_THREAD_SAFE [2/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 216 of file TrackTruthMatchingBaseAlg.h.

◆ ATLAS_THREAD_SAFE [3/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 219 of file TrackTruthMatchingBaseAlg.h.

◆ ATLAS_THREAD_SAFE [4/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 222 of file TrackTruthMatchingBaseAlg.h.


The documentation for this struct was generated from the following files:
createSimpleDistributions.IsDebug
bool IsDebug
Definition: createSimpleDistributions.py:12
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71