ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
TrigIDHitStats Class Reference

#include <TrigIDHitStats.h>

Collaboration diagram for TrigIDHitStats:

Public Types

enum  IDSubDetType { PIX =0, SCT, TRT, NUM_SUBDETECTORS }
 

Public Member Functions

 TrigIDHitStats ()
 Constructors: POOL needs default constructor. More...
 
virtual ~TrigIDHitStats ()
 
unsigned char & operator[] (IDSubDetType i)
 
const unsigned char & operator[] (IDSubDetType i) const
 
unsigned int total () const
 
unsigned int pixhits () const
 
unsigned int scthits () const
 
unsigned int trthits () const
 
TrigIDHitStatsoperator+= (const TrigIDHitStats &b)
 

Private Attributes

unsigned char m_numHits [NUM_SUBDETECTORS]
 

Detailed Description

Definition at line 18 of file TrigIDHitStats.h.

Member Enumeration Documentation

◆ IDSubDetType

Enumerator
PIX 
SCT 
TRT 
NUM_SUBDETECTORS 

Definition at line 22 of file TrigIDHitStats.h.

22 { PIX=0, SCT, TRT, NUM_SUBDETECTORS };

Constructor & Destructor Documentation

◆ TrigIDHitStats()

TrigIDHitStats::TrigIDHitStats ( )
inline

Constructors: POOL needs default constructor.

Definition at line 25 of file TrigIDHitStats.h.

25  {
26  memset(m_numHits, 0, NUM_SUBDETECTORS);
27  }

◆ ~TrigIDHitStats()

virtual TrigIDHitStats::~TrigIDHitStats ( )
inlinevirtual

Definition at line 29 of file TrigIDHitStats.h.

29 { }

Member Function Documentation

◆ operator+=()

TrigIDHitStats& TrigIDHitStats::operator+= ( const TrigIDHitStats b)
inline

Definition at line 48 of file TrigIDHitStats.h.

48  {
49  for(unsigned i=0; i<NUM_SUBDETECTORS; i++) {
50  m_numHits[i] += b.m_numHits[i];
51  }
52  return *this;
53  }

◆ operator[]() [1/2]

unsigned char& TrigIDHitStats::operator[] ( IDSubDetType  i)
inline

Definition at line 31 of file TrigIDHitStats.h.

31 { return m_numHits[i]; }

◆ operator[]() [2/2]

const unsigned char& TrigIDHitStats::operator[] ( IDSubDetType  i) const
inline

Definition at line 33 of file TrigIDHitStats.h.

33 { return m_numHits[i]; }

◆ pixhits()

unsigned int TrigIDHitStats::pixhits ( ) const
inline

Definition at line 43 of file TrigIDHitStats.h.

43 { return (unsigned int)m_numHits[PIX];}

◆ scthits()

unsigned int TrigIDHitStats::scthits ( ) const
inline

Definition at line 44 of file TrigIDHitStats.h.

44 { return (unsigned int)m_numHits[SCT];}

◆ total()

unsigned int TrigIDHitStats::total ( ) const
inline

Definition at line 35 of file TrigIDHitStats.h.

35  {
36  unsigned char tot=0;
37  for(unsigned i=0; i<NUM_SUBDETECTORS; i++) {
38  tot += m_numHits[i];
39  }
40  return (unsigned int)tot;
41  }

◆ trthits()

unsigned int TrigIDHitStats::trthits ( ) const
inline

Definition at line 45 of file TrigIDHitStats.h.

45 { return (unsigned int)m_numHits[TRT];}

Member Data Documentation

◆ m_numHits

unsigned char TrigIDHitStats::m_numHits[NUM_SUBDETECTORS]
private

Definition at line 59 of file TrigIDHitStats.h.


The documentation for this class was generated from the following file:
TrigIDHitStats::PIX
@ PIX
Definition: TrigIDHitStats.h:22
TrigIDHitStats::NUM_SUBDETECTORS
@ NUM_SUBDETECTORS
Definition: TrigIDHitStats.h:22
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigIDHitStats::m_numHits
unsigned char m_numHits[NUM_SUBDETECTORS]
Definition: TrigIDHitStats.h:59
LB_AnalMapSplitter.tot
tot
Definition: LB_AnalMapSplitter.py:46
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TrigIDHitStats::SCT
@ SCT
Definition: TrigIDHitStats.h:22
TrigIDHitStats::TRT
@ TRT
Definition: TrigIDHitStats.h:22