ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
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. More...
 
 ~TGCInnerTrackletSlot ()=default
 Destructor. More...
 
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

anonymous enum
Enumerator
FI 
EI 
NUMBER_OF_REGIONS 
WIRE 
STRIP 
NUMBER_OF_READOUTS 
NUMBER_OF_TRIGGER_BITS 

Definition at line 32 of file TGCInnerTrackletSlot.h.

32  {
33  FI = 0,
34  EI = 1,
36  WIRE = 0,
37  STRIP = 1,
40  };

Constructor & Destructor Documentation

◆ TGCInnerTrackletSlot()

LVL1TGCTrigger::TGCInnerTrackletSlot::TGCInnerTrackletSlot ( )

Constructor.

Definition at line 10 of file TGCInnerTrackletSlot.cxx.

11  {
12  m_sideId = -1;
13  m_slotId = -1;
15  }

◆ ~TGCInnerTrackletSlot()

LVL1TGCTrigger::TGCInnerTrackletSlot::~TGCInnerTrackletSlot ( )
default

Destructor.

Member Function Documentation

◆ clearTriggerBits()

void LVL1TGCTrigger::TGCInnerTrackletSlot::clearTriggerBits ( )

Definition at line 64 of file TGCInnerTrackletSlot.cxx.

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

◆ getSideId()

int LVL1TGCTrigger::TGCInnerTrackletSlot::getSideId ( ) const

Definition at line 25 of file TGCInnerTrackletSlot.cxx.

25  {
26  return m_sideId;
27  }

◆ getSlotId()

int LVL1TGCTrigger::TGCInnerTrackletSlot::getSlotId ( ) const

Definition at line 33 of file TGCInnerTrackletSlot.cxx.

33  {
34  return m_slotId;
35  }

◆ getTriggerBit()

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

Definition at line 56 of file TGCInnerTrackletSlot.cxx.

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

◆ getTriggerWord()

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

Definition at line 86 of file TGCInnerTrackletSlot.cxx.

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

◆ setSideId()

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

Definition at line 21 of file TGCInnerTrackletSlot.cxx.

21  {
22  m_sideId = sideId;
23  }

◆ setSlotId()

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

Definition at line 29 of file TGCInnerTrackletSlot.cxx.

29  {
30  m_slotId = slotId;
31  }

◆ setTgcArguments()

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

Definition at line 17 of file TGCInnerTrackletSlot.cxx.

17  {
18  m_tgcArgs = tgcargs;
19  }

◆ setTriggerBit()

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

Definition at line 48 of file TGCInnerTrackletSlot.cxx.

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

◆ setTriggerBits()

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

Definition at line 37 of file TGCInnerTrackletSlot.cxx.

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

◆ setTriggerWord()

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

Definition at line 74 of file TGCInnerTrackletSlot.cxx.

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

◆ 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:
LVL1TGCTrigger::TGCInnerTrackletSlot::m_triggerBit
bool m_triggerBit[NUMBER_OF_REGIONS][NUMBER_OF_READOUTS][NUMBER_OF_TRIGGER_BITS]
Definition: TGCInnerTrackletSlot.h:52
LVL1TGCTrigger::TGCInnerTrackletSlot::NUMBER_OF_REGIONS
@ NUMBER_OF_REGIONS
Definition: TGCInnerTrackletSlot.h:35
LVL1TGCTrigger::TGCInnerTrackletSlot::NUMBER_OF_READOUTS
@ NUMBER_OF_READOUTS
Definition: TGCInnerTrackletSlot.h:38
LVL1TGCTrigger::TGCInnerTrackletSlot::WIRE
@ WIRE
Definition: TGCInnerTrackletSlot.h:36
LVL1TGCTrigger::TGCInnerTrackletSlot::EI
@ EI
Definition: TGCInnerTrackletSlot.h:34
LVL1TGCTrigger::TGCInnerTrackletSlot::m_slotId
int m_slotId
Definition: TGCInnerTrackletSlot.h:49
LVL1TGCTrigger::TGCInnerTrackletSlot::NUMBER_OF_TRIGGER_BITS
@ NUMBER_OF_TRIGGER_BITS
Definition: TGCInnerTrackletSlot.h:39
LVL1TGCTrigger::TGCInnerTrackletSlot::m_sideId
int m_sideId
Definition: TGCInnerTrackletSlot.h:46
LVL1TGCTrigger::TGCInnerTrackletSlot::STRIP
@ STRIP
Definition: TGCInnerTrackletSlot.h:37
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
LVL1TGCTrigger::TGCInnerTrackletSlot::m_tgcArgs
const TGCArguments * m_tgcArgs
Definition: TGCInnerTrackletSlot.h:54
LVL1TGCTrigger::TGCInnerTrackletSlot::FI
@ FI
Definition: TGCInnerTrackletSlot.h:33
LVL1TGCTrigger::TGCInnerTrackletSlot::clearTriggerBits
void clearTriggerBits()
Definition: TGCInnerTrackletSlot.cxx:64