ATLAS Offline Software
Classes | Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
SubDetHitStatistics Class Reference

#include <SubDetHitStatistics.h>

Collaboration diagram for SubDetHitStatistics:

Classes

class  OverflowControlledRef
 A simple class to retrofit overflow protection into the existing code. More...
 

Public Types

enum  SubDetType {
  Pixel =0, SCT, TRT, MDT,
  RPC, TGC, CSC, MM,
  STGC, NUM_SUBDETECTORS
}
 

Public Member Functions

 SubDetHitStatistics ()
 
unsigned int operator[] (SubDetType i) const
 Counts of up to (OVERFLOW_VALUE-1) hits. More...
 
OverflowControlledRef operator[] (SubDetType i)
 Write access protected agains overflows. More...
 

Static Public Attributes

static const unsigned int OVERFLOW_VALUE = OverflowControlledRef::OVERFLOW_VALUE
 

Private Attributes

unsigned char m_numPRDs [NUM_SUBDETECTORS]
 For InDet, the largest typical number of measurements per track is 36 in the TRT. More...
 

Friends

class TrackTruthCollectionAccessor
 

Detailed Description

Definition at line 34 of file SubDetHitStatistics.h.

Member Enumeration Documentation

◆ SubDetType

Enumerator
Pixel 
SCT 
TRT 
MDT 
RPC 
TGC 
CSC 
MM 
STGC 
NUM_SUBDETECTORS 

Definition at line 74 of file SubDetHitStatistics.h.

74 { Pixel=0, SCT, TRT, MDT, RPC, TGC, CSC, MM, STGC, NUM_SUBDETECTORS };

Constructor & Destructor Documentation

◆ SubDetHitStatistics()

SubDetHitStatistics::SubDetHitStatistics ( )
inline

Definition at line 110 of file SubDetHitStatistics.h.

110  {
111  memset(m_numPRDs, 0, NUM_SUBDETECTORS);
112 }

Member Function Documentation

◆ operator[]() [1/2]

OverflowControlledRef SubDetHitStatistics::operator[] ( SubDetType  i)
inline

Write access protected agains overflows.

Definition at line 83 of file SubDetHitStatistics.h.

83 { return m_numPRDs[i]; }

◆ operator[]() [2/2]

unsigned int SubDetHitStatistics::operator[] ( SubDetType  i) const
inline

Counts of up to (OVERFLOW_VALUE-1) hits.

Definition at line 80 of file SubDetHitStatistics.h.

80 { return m_numPRDs[i]; }

Friends And Related Function Documentation

◆ TrackTruthCollectionAccessor

friend class TrackTruthCollectionAccessor
friend

Definition at line 92 of file SubDetHitStatistics.h.

Member Data Documentation

◆ m_numPRDs

unsigned char SubDetHitStatistics::m_numPRDs[NUM_SUBDETECTORS]
private

For InDet, the largest typical number of measurements per track is 36 in the TRT.

Perhaps muons do not bit that. One byte is enough to keep any of the numbers in a typical event. (But not for a track looping in the TRT!)

Definition at line 90 of file SubDetHitStatistics.h.

◆ OVERFLOW_VALUE

const unsigned int SubDetHitStatistics::OVERFLOW_VALUE = OverflowControlledRef::OVERFLOW_VALUE
static

Definition at line 75 of file SubDetHitStatistics.h.


The documentation for this class was generated from the following file:
SubDetHitStatistics::SCT
@ SCT
Definition: SubDetHitStatistics.h:74
Pixel
Definition: PixelFEUtils.h:16
SubDetHitStatistics::NUM_SUBDETECTORS
@ NUM_SUBDETECTORS
Definition: SubDetHitStatistics.h:74
SubDetHitStatistics::MM
@ MM
Definition: SubDetHitStatistics.h:74
SubDetHitStatistics::CSC
@ CSC
Definition: SubDetHitStatistics.h:74
SubDetHitStatistics::m_numPRDs
unsigned char m_numPRDs[NUM_SUBDETECTORS]
For InDet, the largest typical number of measurements per track is 36 in the TRT.
Definition: SubDetHitStatistics.h:90
lumiFormat.i
int i
Definition: lumiFormat.py:85
SubDetHitStatistics::MDT
@ MDT
Definition: SubDetHitStatistics.h:74
SubDetHitStatistics::TGC
@ TGC
Definition: SubDetHitStatistics.h:74
SubDetHitStatistics::RPC
@ RPC
Definition: SubDetHitStatistics.h:74
SubDetHitStatistics::TRT
@ TRT
Definition: SubDetHitStatistics.h:74
SubDetHitStatistics::STGC
@ STGC
Definition: SubDetHitStatistics.h:74