ATLAS Offline Software
Loading...
Searching...
No Matches
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.
OverflowControlledRef operator[] (SubDetType i)
 Write access protected agains overflows.

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.

Friends

class TrackTruthCollectionAccessor

Detailed Description

Definition at line 34 of file SubDetHitStatistics.h.

Member Enumeration Documentation

◆ SubDetType

Constructor & Destructor Documentation

◆ SubDetHitStatistics()

SubDetHitStatistics::SubDetHitStatistics ( )
inline

Definition at line 110 of file SubDetHitStatistics.h.

110 {
111 memset(m_numPRDs, 0, NUM_SUBDETECTORS);
112}
unsigned char m_numPRDs[NUM_SUBDETECTORS]
For InDet, the largest typical number of measurements per track is 36 in the TRT.

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]; }

◆ 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: