105 int max_address = (
station == 1) ? 2 : 12;
106 for (
int reladr = 0; reladr < max_address; reladr++) {
124 int qual = ts->
code();
125 bool tag = (reladr % 2 == 1) ?
true :
false;
128 lwheel =
abs(lwheel) / lwheel * (
abs(wheel) + 1);
174 if (tsPreviousBX_1) {
175 int phiBX = tsPreviousBX_1->
phi();
176 int qualBX = tsPreviousBX_1->
code();
177 if (
abs((phi >> sh_phi) - (phiBX >> sh_phi)) <= tolerance && qualBX > qual)
182 if (tsPreviousBX_2) {
183 int phiBX = tsPreviousBX_2->
phi();
184 int qualBX = tsPreviousBX_2->
code();
185 if (
abs((phi >> sh_phi) - (phiBX >> sh_phi)) <= tolerance && qualBX > qual)
191 int phiBX = tsNextBX_1->
phi();
192 int qualBX = tsNextBX_1->
code();
193 if (
abs((phi >> sh_phi) - (phiBX >> sh_phi)) <= tolerance && qualBX > qual)
199 int phiBX = tsNextBX_2->
phi();
200 int qualBX = tsNextBX_2->
code();
201 if (
abs((phi >> sh_phi) - (phiBX >> sh_phi)) <= tolerance && qualBX > qual)
220 wheel, sector,
station, phi, phib, static_cast<L1MuBMTrackSegPhi::TSQuality>(qual), tag, bx - bx_offset);
234 if (adr >= 4 && adr <= 7)
235 sector = (sector + 13) % 12;
236 if (adr >= 8 && adr <= 11)
237 sector = (sector + 11) % 12;
249 if ((adr / 2) % 2 == 1)
L1MuDTTFParameters l1mudttfparams
static int getTSOutOfTimeWindow()
void run(int bx, const edm::Event &e, const edm::EventSetup &c)
receive track segment data from the BBMX and CSC chamber triggers
int address2wheel(int adr) const
find the right wheel for a given address
static int getNbitsExtPhi()
unsigned short int get_inrec_qual_st4(int wh, int sc) const
void addTSphi(int adr, const L1MuBMTrackSegPhi &)
add new phi track segment to the Data Buffer
L1MuDTChambPhDigi const * chPhiSegm1(int wheel, int stat, int sect, int bx) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool get_soc_nbx_del(int wh, int sc) const
L1MuDTChambPhDigi const * chPhiSegm2(int wheel, int stat, int sect, int bx) const
bool get_inrec_chdis_st1(int wh, int sc) const
unsigned short int get_soc_stdis_wr(int wh, int sc) const
unsigned short int get_soc_stdis_zr(int wh, int sc) const
bool get_inrec_chdis_st3(int wh, int sc) const
int address2sector(int adr) const
find the right sector for a given address
L1MuBMSectorReceiver(L1MuBMSectorProcessor &, edm::ConsumesCollector &&iC)
constructor
edm::EDGetTokenT< L1MuDTChambPhContainer > m_DTDigiToken
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle
int sector() const
return sector number
virtual ~L1MuBMSectorReceiver()
destructor
L1MuDTTFMasks l1mudttfmasks
L1MuBMSectorProcessor & m_sp
unsigned short int get_inrec_qual_st3(int wh, int sc) const
Abs< T >::type abs(const T &t)
bool get_inrec_chdis_st2(int wh, int sc) const
static bool getTSOutOfTimeFilter()
unsigned short int get_inrec_qual_st2(int wh, int sc) const
const L1MuBMSecProcId & id() const
return Sector Processor identifier
unsigned short int get_soc_stdis_zl(int wh, int sc) const
bool get_inrec_chdis_st4(int wh, int sc) const
unsigned short int get_inrec_qual_st1(int wh, int sc) const
void reset()
clear Sector Receiver
const L1MuBMDataBuffer * data() const
return pointer to Data Buffer
unsigned short int get_soc_stdis_wl(int wh, int sc) const
unsigned short int get_soc_stdis_n(int wh, int sc) const
T const * product() const
int locwheel() const
return physical wheel number (-2,-1,0,+1,+2)
void receiveBBMXData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive track segment data from BBMX chamber trigger
int wheel() const
return wheel number