#include <TGCInnerTrackletSlotHolder.h>
|
| | TGCInnerTrackletSlotHolder (TGCArguments *) |
| | Constructor.
|
| | ~TGCInnerTrackletSlotHolder () |
| | Destructor.
|
| void | clearTriggerBits () |
| bool | setTriggerBit (const int sideId, const int slotId, const unsigned int region, const unsigned int readout, const unsigned int iBit, const bool triggerBit) |
| const TGCInnerTrackletSlot * | getInnerTrackletSlot (const int sideId, const int slotId) const |
| void | getInnerTrackletSlots (const int sideId, const int octId, const int moduleId, const TGCInnerTrackletSlot *innerTrackletSlots[]) const |
| void | getInnerTrackletBits (const TGCInnerTrackletSlot *innerTrackletSlots[], std::array< int, NUMBER_OF_SLOTS_PER_TRIGGER_SECTOR > &eifi_bits) const |
| const TGCArguments * | tgcArgs () const |
◆ anonymous enum
returns SL readout trigger bits FI2|EI2|FI1|EI1|FI0|EI0
| Enumerator |
|---|
| NUMBER_OF_SIDES | |
| NUMBER_OF_SLOTS | |
| FIRST_SLOT | |
| NUMBER_OF_SLOTS_PER_TRIGGER_SECTOR | |
Definition at line 31 of file TGCInnerTrackletSlotHolder.h.
31 {
36
37 };
@ NUMBER_OF_SLOTS_PER_TRIGGER_SECTOR
◆ TGCInnerTrackletSlotHolder()
| LVL1TGCTrigger::TGCInnerTrackletSlotHolder::TGCInnerTrackletSlotHolder |
( |
TGCArguments * | tgcargs | ) |
|
Constructor.
Definition at line 9 of file TGCInnerTrackletSlotHolder.cxx.
9 :
11 {
15
18 }
19 }
20 }
TGCInnerTrackletSlot m_innerTrackletSlot[NUMBER_OF_SIDES][NUMBER_OF_SLOTS]
const TGCArguments * tgcArgs() const
◆ ~TGCInnerTrackletSlotHolder()
| LVL1TGCTrigger::TGCInnerTrackletSlotHolder::~TGCInnerTrackletSlotHolder |
( |
| ) |
|
|
inline |
◆ clearTriggerBits()
| void LVL1TGCTrigger::TGCInnerTrackletSlotHolder::clearTriggerBits |
( |
| ) |
|
◆ getInnerTrackletBits()
Definition at line 80 of file TGCInnerTrackletSlotHolder.cxx.
81 {
82
87
88 for (int iSlot = 0; iSlot < n_slots; iSlot++) {
89 int tmp_bits = 0;
90 for (int iRegion = 0; iRegion < n_regions; iRegion++) {
91 for (int iReadouts = 0; iReadouts < n_readouts; iReadouts++) {
92 for (int iBits = 0; iBits < n_bits; iBits++) {
93 tmp_bits &= innerTrackletSlots[iSlot]->getTriggerBit(iRegion, iReadouts, iBits) << (iBits+iReadouts*4+iRegion*8);
94 }
95 }
96 }
97 eifi_bits[iSlot] = tmp_bits;
98 }
99 }
◆ getInnerTrackletSlot()
| const TGCInnerTrackletSlot * LVL1TGCTrigger::TGCInnerTrackletSlotHolder::getInnerTrackletSlot |
( |
const int | sideId, |
|
|
const int | slotId ) const |
◆ getInnerTrackletSlots()
| void LVL1TGCTrigger::TGCInnerTrackletSlotHolder::getInnerTrackletSlots |
( |
const int | sideId, |
|
|
const int | octId, |
|
|
const int | moduleId, |
|
|
const TGCInnerTrackletSlot * | innerTrackletSlots[] ) const |
Definition at line 44 of file TGCInnerTrackletSlotHolder.cxx.
45 {
46
48 innerTrackletSlots[iSlot] = 0;
49 }
51 if(octId<0 || octId>=8) return;
52
53
54
55
56
57 if(!(moduleId==0 || moduleId==1 ||
58 moduleId==3 || moduleId==4 ||
59 moduleId==6 || moduleId==7)) return;
60 int secId = (moduleId/3)*2+moduleId%3;
61 int phi = (secId+46+octId*6)%48+1;
62
63
64
65
67 int slotId = (
static_cast<int>(iSlot) + (
phi-1)/2 + 23)%24 + 1;
68
69
70
71
72
73
74
75
77 }
78 }
Scalar phi() const
phi method
const TGCInnerTrackletSlot * getInnerTrackletSlot(const int sideId, const int slotId) const
◆ setTriggerBit()
| bool LVL1TGCTrigger::TGCInnerTrackletSlotHolder::setTriggerBit |
( |
const int | sideId, |
|
|
const int | slotId, |
|
|
const unsigned int | region, |
|
|
const unsigned int | readout, |
|
|
const unsigned int | iBit, |
|
|
const bool | triggerBit ) |
◆ tgcArgs()
| const TGCArguments * LVL1TGCTrigger::TGCInnerTrackletSlotHolder::tgcArgs |
( |
| ) |
const |
|
inline |
◆ m_innerTrackletSlot
◆ m_tgcArgs
| TGCArguments* LVL1TGCTrigger::TGCInnerTrackletSlotHolder::m_tgcArgs |
|
private |
The documentation for this class was generated from the following files: