ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
InDet::TrackStatHelper::Counter< N_Categories, N_Types, N_Regions, T_Int > Struct Template Reference
Collaboration diagram for InDet::TrackStatHelper::Counter< N_Categories, N_Types, N_Regions, T_Int >:

Public Member Functions

 Counter ()
 
void reset ()
 
template<typename T_IntB >
Counteroperator+= (const Counter< N_Categories, N_Types, N_Regions, T_IntB > &a)
 

Public Attributes

T_Int m_counter [N_Categories][N_Types][N_Regions]
 

Detailed Description

template<int N_Categories, int N_Types, int N_Regions, typename T_Int = long>
struct InDet::TrackStatHelper::Counter< N_Categories, N_Types, N_Regions, T_Int >

Definition at line 190 of file TrackStatHelper.h.

Constructor & Destructor Documentation

◆ Counter()

template<int N_Categories, int N_Types, int N_Regions, typename T_Int = long>
InDet::TrackStatHelper::Counter< N_Categories, N_Types, N_Regions, T_Int >::Counter ( )
inline

Definition at line 191 of file TrackStatHelper.h.

191 { reset(); }

Member Function Documentation

◆ operator+=()

template<int N_Categories, int N_Types, int N_Regions, typename T_Int = long>
template<typename T_IntB >
Counter& InDet::TrackStatHelper::Counter< N_Categories, N_Types, N_Regions, T_Int >::operator+= ( const Counter< N_Categories, N_Types, N_Regions, T_IntB > &  a)
inline

Definition at line 202 of file TrackStatHelper.h.

202  {
203  for (unsigned int cat_i=0; cat_i < N_Categories; ++cat_i ) {
204  for (unsigned int type_i=0; type_i < N_Types; ++type_i) {
205  for (unsigned int eta_i=0; eta_i < N_Regions; ++eta_i) {
206  m_counter[cat_i][type_i][eta_i] += a.m_counter[cat_i][type_i][eta_i];
207  }
208  }
209  }
210  return *this;
211  }

◆ reset()

template<int N_Categories, int N_Types, int N_Regions, typename T_Int = long>
void InDet::TrackStatHelper::Counter< N_Categories, N_Types, N_Regions, T_Int >::reset ( )
inline

Definition at line 192 of file TrackStatHelper.h.

192  {
193  for (unsigned int cat_i=0; cat_i < N_Categories; ++cat_i ) {
194  for (unsigned int type_i=0; type_i < N_Types; ++type_i) {
195  for (unsigned int eta_i=0; eta_i < N_Regions; ++eta_i) {
196  m_counter[cat_i][type_i][eta_i]=0;
197  }
198  }
199  }
200  }

Member Data Documentation

◆ m_counter

template<int N_Categories, int N_Types, int N_Regions, typename T_Int = long>
T_Int InDet::TrackStatHelper::Counter< N_Categories, N_Types, N_Regions, T_Int >::m_counter[N_Categories][N_Types][N_Regions]

Definition at line 212 of file TrackStatHelper.h.


The documentation for this struct was generated from the following file:
InDet::TrackStatHelper::Counter::m_counter
T_Int m_counter[N_Categories][N_Types][N_Regions]
Definition: TrackStatHelper.h:212
InDet::TrackStatHelper::Counter::reset
void reset()
Definition: TrackStatHelper.h:192
a
TList * a
Definition: liststreamerinfos.cxx:10