31 const unsigned int region,
const unsigned int readout,
32 const unsigned int iBit,
const bool triggerBit) {
48 innerTrackletSlots[iSlot] = 0;
51 if(octId<0 || octId>=8)
return;
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;
67 int slotId = (
static_cast<int>(iSlot) + (
phi-1)/2 + 23)%24 + 1;
81 std::array<int, NUMBER_OF_SLOTS_PER_TRIGGER_SECTOR> &eifi_bits)
const {
88 for (
int iSlot = 0; iSlot < n_slots; iSlot++) {
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);
97 eifi_bits[iSlot] = tmp_bits;
Scalar phi() const
phi method
bool setTriggerBit(const int sideId, const int slotId, const unsigned int region, const unsigned int readout, const unsigned int iBit, const bool triggerBit)
TGCInnerTrackletSlot m_innerTrackletSlot[NUMBER_OF_SIDES][NUMBER_OF_SLOTS]
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
TGCInnerTrackletSlotHolder(TGCArguments *)
Constructor.
@ NUMBER_OF_SLOTS_PER_TRIGGER_SECTOR
const TGCInnerTrackletSlot * getInnerTrackletSlot(const int sideId, const int slotId) const
bool getTriggerBit(const unsigned int region, const unsigned int readout, const unsigned int iBit) const