ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1TGCTrigger::TGCInnerTrackletSlot Class Reference

#include <TGCInnerTrackletSlot.h>

Collaboration diagram for LVL1TGCTrigger::TGCInnerTrackletSlot:

Public Types

enum  {
  FI = 0 , EI = 1 , NUMBER_OF_REGIONS = 2 , WIRE = 0 ,
  STRIP = 1 , NUMBER_OF_READOUTS = 2 , NUMBER_OF_TRIGGER_BITS = 4
}

Public Member Functions

 TGCInnerTrackletSlot ()
 Constructor.
 ~TGCInnerTrackletSlot ()=default
 Destructor.
void setSideId (const int sideId)
int getSideId () const
void setSlotId (const int slotId)
int getSlotId () const
bool setTriggerBit (const unsigned int region, const unsigned int readout, const unsigned int iBit, const bool triggerBit)
bool getTriggerBit (const unsigned int region, const unsigned int readout, const unsigned int iBit) const
bool setTriggerBits (const bool val)
void clearTriggerBits ()
void setTriggerWord (unsigned int word)
unsigned short getTriggerWord () const
const TGCArgumentstgcArgs () const
void setTgcArguments (const TGCArguments *)

Private Attributes

int m_sideId
int m_slotId
bool m_triggerBit [NUMBER_OF_REGIONS][NUMBER_OF_READOUTS][NUMBER_OF_TRIGGER_BITS]
const TGCArgumentsm_tgcArgs

Detailed Description

Definition at line 11 of file TGCInnerTrackletSlot.h.

Member Enumeration Documentation

◆ anonymous enum

Constructor & Destructor Documentation

◆ TGCInnerTrackletSlot()

LVL1TGCTrigger::TGCInnerTrackletSlot::TGCInnerTrackletSlot ( )

◆ ~TGCInnerTrackletSlot()

LVL1TGCTrigger::TGCInnerTrackletSlot::~TGCInnerTrackletSlot ( )
default

Destructor.

Member Function Documentation

◆ clearTriggerBits()

void LVL1TGCTrigger::TGCInnerTrackletSlot::clearTriggerBits ( )

Definition at line 65 of file TGCInnerTrackletSlot.cxx.

65 {
66 for(unsigned int region=0; region<NUMBER_OF_REGIONS; region++) {
67 for(unsigned int readout=0; readout<NUMBER_OF_READOUTS; readout++) {
68 for(unsigned int iBit=0; iBit<NUMBER_OF_TRIGGER_BITS; iBit++) {
69 m_triggerBit[region][readout][iBit] = false;
70 }
71 }
72 }
73 }
bool m_triggerBit[NUMBER_OF_REGIONS][NUMBER_OF_READOUTS][NUMBER_OF_TRIGGER_BITS]

◆ getSideId()

int LVL1TGCTrigger::TGCInnerTrackletSlot::getSideId ( ) const

Definition at line 26 of file TGCInnerTrackletSlot.cxx.

26 {
27 return m_sideId;
28 }

◆ getSlotId()

int LVL1TGCTrigger::TGCInnerTrackletSlot::getSlotId ( ) const

Definition at line 34 of file TGCInnerTrackletSlot.cxx.

34 {
35 return m_slotId;
36 }

◆ getTriggerBit()

bool LVL1TGCTrigger::TGCInnerTrackletSlot::getTriggerBit ( const unsigned int region,
const unsigned int readout,
const unsigned int iBit ) const

Definition at line 57 of file TGCInnerTrackletSlot.cxx.

57 {
58 if(region>=NUMBER_OF_REGIONS) return false;
59 if(readout>=NUMBER_OF_READOUTS) return false;
60 if(iBit>=NUMBER_OF_TRIGGER_BITS) return false;
61
62 return m_triggerBit[region][readout][iBit];
63 }

◆ getTriggerWord()

unsigned short LVL1TGCTrigger::TGCInnerTrackletSlot::getTriggerWord ( ) const

Definition at line 87 of file TGCInnerTrackletSlot.cxx.

87 {
88 unsigned int word=0;
89 unsigned int pos =0;
90 for(unsigned int region=0; region<NUMBER_OF_REGIONS; region++) {
91 for(unsigned int readout=0; readout<NUMBER_OF_READOUTS; readout++) {
92 for(unsigned int iBit=0; iBit<NUMBER_OF_TRIGGER_BITS; iBit++) {
93 if (m_triggerBit[region][readout][iBit]) {
94 word += 1 << pos;
95 }
96 pos += 1;
97 }
98 }
99 }
100 return word;
101 }

◆ setSideId()

void LVL1TGCTrigger::TGCInnerTrackletSlot::setSideId ( const int sideId)

Definition at line 22 of file TGCInnerTrackletSlot.cxx.

22 {
23 m_sideId = sideId;
24 }

◆ setSlotId()

void LVL1TGCTrigger::TGCInnerTrackletSlot::setSlotId ( const int slotId)

Definition at line 30 of file TGCInnerTrackletSlot.cxx.

30 {
31 m_slotId = slotId;
32 }

◆ setTgcArguments()

void LVL1TGCTrigger::TGCInnerTrackletSlot::setTgcArguments ( const TGCArguments * tgcargs)

Definition at line 18 of file TGCInnerTrackletSlot.cxx.

18 {
19 m_tgcArgs = tgcargs;
20 }

◆ setTriggerBit()

bool LVL1TGCTrigger::TGCInnerTrackletSlot::setTriggerBit ( const unsigned int region,
const unsigned int readout,
const unsigned int iBit,
const bool triggerBit )

Definition at line 49 of file TGCInnerTrackletSlot.cxx.

49 {
50 if(region>=NUMBER_OF_REGIONS) return false;
51 if(readout>=NUMBER_OF_READOUTS) return false;
52 if(iBit>=NUMBER_OF_TRIGGER_BITS) return false;
53 m_triggerBit[region][readout][iBit] = triggerBit;
54 return true;
55 }

◆ setTriggerBits()

bool LVL1TGCTrigger::TGCInnerTrackletSlot::setTriggerBits ( const bool val)

Definition at line 38 of file TGCInnerTrackletSlot.cxx.

38 {
39 for (int region=0; region<NUMBER_OF_REGIONS; region++){
40 for (int readout=0; readout<NUMBER_OF_READOUTS; readout++){
41 for (int iBit=0; iBit<NUMBER_OF_TRIGGER_BITS; iBit++){
42 m_triggerBit[region][readout][iBit] = val;
43 }
44 }
45 }
46 return true;
47 }

◆ setTriggerWord()

void LVL1TGCTrigger::TGCInnerTrackletSlot::setTriggerWord ( unsigned int word)

Definition at line 75 of file TGCInnerTrackletSlot.cxx.

75 {
76 unsigned int tstBit =1;
77 for(unsigned int region=0; region<NUMBER_OF_REGIONS; region++) {
78 for(unsigned int readout=0; readout<NUMBER_OF_READOUTS; readout++) {
79 for(unsigned int iBit=0; iBit<NUMBER_OF_TRIGGER_BITS; iBit++) {
80 m_triggerBit[region][readout][iBit] = ((tstBit & word) !=0 );
81 tstBit = tstBit*2;
82 }
83 }
84 }
85 }

◆ tgcArgs()

const TGCArguments * LVL1TGCTrigger::TGCInnerTrackletSlot::tgcArgs ( ) const
inline

Definition at line 57 of file TGCInnerTrackletSlot.h.

57 {
58 return m_tgcArgs;
59 }

Member Data Documentation

◆ m_sideId

int LVL1TGCTrigger::TGCInnerTrackletSlot::m_sideId
private

Definition at line 46 of file TGCInnerTrackletSlot.h.

◆ m_slotId

int LVL1TGCTrigger::TGCInnerTrackletSlot::m_slotId
private

Definition at line 49 of file TGCInnerTrackletSlot.h.

◆ m_tgcArgs

const TGCArguments* LVL1TGCTrigger::TGCInnerTrackletSlot::m_tgcArgs
private

Definition at line 54 of file TGCInnerTrackletSlot.h.

◆ m_triggerBit

bool LVL1TGCTrigger::TGCInnerTrackletSlot::m_triggerBit[NUMBER_OF_REGIONS][NUMBER_OF_READOUTS][NUMBER_OF_TRIGGER_BITS]
private

Definition at line 52 of file TGCInnerTrackletSlot.h.


The documentation for this class was generated from the following files: