ATLAS Offline Software
TGCInnerTrackletSlot.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TGCInnerTrackletSlot_hh
6 #define TGCInnerTrackletSlot_hh
7 
9 
10 namespace LVL1TGCTrigger {
12  public:
16  ~TGCInnerTrackletSlot() = default;
17 
18  void setSideId(const int sideId);
19  int getSideId() const;
20 
21  void setSlotId(const int slotId);
22  int getSlotId() const;
23 
24  bool setTriggerBit(const unsigned int region, const unsigned int readout, const unsigned int iBit, const bool triggerBit);
25  bool getTriggerBit(const unsigned int region, const unsigned int readout, const unsigned int iBit) const;
26  bool setTriggerBits(const bool val);
27  void clearTriggerBits();
28 
29  void setTriggerWord(unsigned int word);
30  unsigned short getTriggerWord() const;
31 
32  enum {
33  FI = 0,
34  EI = 1,
36  WIRE = 0,
37  STRIP = 1,
40  };
41 
42  const TGCArguments* tgcArgs() const;
43  void setTgcArguments( const TGCArguments* );
44 
45  private:
46  int m_sideId; // Side A or Side C
47  // slot01 - slot24
48  // https://twiki.cern.ch/twiki/pub/Main/TgcDocument/EIFI_PSB_SSW_ConnectionTable_v20080808.pdf
49  int m_slotId;
50  // Trigger bits from EI/FI, TRIG0-TRIG3
51  // https://twiki.cern.ch/twiki/pub/Main/TgcDocument/celladdress2_asic_rev2.pdf
53 
55  };
56 
58  return m_tgcArgs;
59  }
60 } //end of namespace bracket
61 
62 #endif // TGCInnerTrackletSlot_hh
LVL1TGCTrigger::TGCInnerTrackletSlot::NUMBER_OF_TRIGGER_BITS
@ NUMBER_OF_TRIGGER_BITS
Definition: TGCInnerTrackletSlot.h:39
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_READOUTS
@ NUMBER_OF_READOUTS
Definition: TGCInnerTrackletSlot.h:38
LVL1TGCTrigger::TGCInnerTrackletSlot::tgcArgs
const TGCArguments * tgcArgs() const
Definition: TGCInnerTrackletSlot.h:57
LVL1TGCTrigger::TGCInnerTrackletSlot::setSideId
void setSideId(const int sideId)
Definition: TGCInnerTrackletSlot.cxx:22
LVL1TGCTrigger::TGCInnerTrackletSlot::STRIP
@ STRIP
Definition: TGCInnerTrackletSlot.h:37
LVL1TGCTrigger::TGCInnerTrackletSlot::getTriggerWord
unsigned short getTriggerWord() const
Definition: TGCInnerTrackletSlot.cxx:87
LVL1TGCTrigger::TGCInnerTrackletSlot::getTriggerBit
bool getTriggerBit(const unsigned int region, const unsigned int readout, const unsigned int iBit) const
Definition: TGCInnerTrackletSlot.cxx:57
LVL1TGCTrigger::TGCInnerTrackletSlot::setTriggerBit
bool setTriggerBit(const unsigned int region, const unsigned int readout, const unsigned int iBit, const bool triggerBit)
Definition: TGCInnerTrackletSlot.cxx:49
LVL1TGCTrigger::TGCInnerTrackletSlot::setSlotId
void setSlotId(const int slotId)
Definition: TGCInnerTrackletSlot.cxx:30
LVL1TGCTrigger::TGCInnerTrackletSlot::m_slotId
int m_slotId
Definition: TGCInnerTrackletSlot.h:49
LVL1TGCTrigger::TGCInnerTrackletSlot::setTgcArguments
void setTgcArguments(const TGCArguments *)
Definition: TGCInnerTrackletSlot.cxx:18
LVL1TGCTrigger::TGCInnerTrackletSlot::m_sideId
int m_sideId
Definition: TGCInnerTrackletSlot.h:46
LVL1TGCTrigger::TGCInnerTrackletSlot::setTriggerBits
bool setTriggerBits(const bool val)
Definition: TGCInnerTrackletSlot.cxx:38
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCInnerTrackletSlot::EI
@ EI
Definition: TGCInnerTrackletSlot.h:34
LVL1TGCTrigger::TGCInnerTrackletSlot::TGCInnerTrackletSlot
TGCInnerTrackletSlot()
Constructor.
Definition: TGCInnerTrackletSlot.cxx:10
LVL1TGCTrigger::TGCInnerTrackletSlot::~TGCInnerTrackletSlot
~TGCInnerTrackletSlot()=default
Destructor.
LVL1TGCTrigger::TGCArguments
Definition: TGCArguments.h:12
LVL1TGCTrigger::TGCInnerTrackletSlot::getSideId
int getSideId() const
Definition: TGCInnerTrackletSlot.cxx:26
LVL1TGCTrigger::TGCInnerTrackletSlot::NUMBER_OF_REGIONS
@ NUMBER_OF_REGIONS
Definition: TGCInnerTrackletSlot.h:35
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
TGCArguments.h
LVL1TGCTrigger::TGCInnerTrackletSlot::setTriggerWord
void setTriggerWord(unsigned int word)
Definition: TGCInnerTrackletSlot.cxx:75
LVL1TGCTrigger::TGCInnerTrackletSlot::WIRE
@ WIRE
Definition: TGCInnerTrackletSlot.h:36
LVL1TGCTrigger::TGCInnerTrackletSlot::clearTriggerBits
void clearTriggerBits()
Definition: TGCInnerTrackletSlot.cxx:65
LVL1TGCTrigger::TGCInnerTrackletSlot
Definition: TGCInnerTrackletSlot.h:11
LVL1TGCTrigger::TGCInnerTrackletSlot::getSlotId
int getSlotId() const
Definition: TGCInnerTrackletSlot.cxx:34