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

Public Member Functions

 Counter4D ()
 
void reset ()
 
template<typename T_IntB >
Counter4Doperator+= (const Counter4D< N_Categories, N_Types, N_Regions, N_SubCategories, T_IntB > &a)
 

Public Attributes

T_Int m_counter [N_Categories][N_Types][N_Regions][N_SubCategories]
 

Detailed Description

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

Definition at line 216 of file TrackStatHelper.h.

Constructor & Destructor Documentation

◆ Counter4D()

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

Definition at line 217 of file TrackStatHelper.h.

217 { reset(); }

Member Function Documentation

◆ operator+=()

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

Definition at line 230 of file TrackStatHelper.h.

230  {
231  for (unsigned int cat_i=0; cat_i < N_Categories; ++cat_i ) {
232  for (unsigned int type_i=0; type_i < N_Types; ++type_i) {
233  for (unsigned int eta_i=0; eta_i < N_Regions; ++eta_i) {
234  for (unsigned int sub_i=0; sub_i < N_SubCategories; ++sub_i) {
235  m_counter[cat_i][type_i][eta_i][sub_i] += a.m_counter[cat_i][type_i][eta_i][sub_i];
236  }
237  }
238  }
239  }
240  return *this;
241  }

◆ reset()

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

Definition at line 218 of file TrackStatHelper.h.

218  {
219  for (unsigned int cat_i=0; cat_i < N_Categories; ++cat_i ) {
220  for (unsigned int type_i=0; type_i < N_Types; ++type_i) {
221  for (unsigned int eta_i=0; eta_i < N_Regions; ++eta_i) {
222  for (unsigned int sub_i=0; sub_i < N_SubCategories; ++sub_i) {
223  m_counter[cat_i][type_i][eta_i][sub_i]=0;
224  }
225  }
226  }
227  }
228  }

Member Data Documentation

◆ m_counter

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

Definition at line 242 of file TrackStatHelper.h.


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