ATLAS Offline Software
Classes | Public Member Functions | Public Attributes | List of all members
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 80 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 51 of file TrackToTruthAssociationAlg.cxx.

51  {
52  if constexpr(IsDebug) {
53  out << "Measurements per track :" << m_measPerTrack << std::endl
54  << m_measPerTrack.histogramToString() << std::endl
55  << "TruthParticles per track :" << m_truthParticlesPerTrack << std::endl
56  << m_truthParticlesPerTrack.histogramToString();
57  }
58  }

◆ fillStatistics()

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

Definition at line 60 of file TrackToTruthAssociationAlg.cxx.

60  {
61  if constexpr(IsDebug) {
62  std::lock_guard<std::mutex> lock(m_mutex);
63  m_measPerTrack.add(n_measurements);
64  m_truthParticlesPerTrack.add(n_particles);
65  }
66  }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/3]

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

Definition at line 87 of file TrackToTruthAssociationAlg.h.

◆ 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 90 of file TrackToTruthAssociationAlg.h.

◆ ATLAS_THREAD_SAFE [3/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 93 of file TrackToTruthAssociationAlg.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