102 int max_address = (
station == 1) ? 2 : 12;
103 for (
int reladr = 0; reladr < max_address; reladr++) {
121 int qual = ts->
code();
122 bool tag = (reladr % 2 == 1) ?
true :
false;
171 if (tsPreviousBX_1) {
172 int phiBX = tsPreviousBX_1->
phi();
173 int qualBX = tsPreviousBX_1->
code();
174 if (
abs((
phi >> sh_phi) - (phiBX >> sh_phi)) <=
tolerance && qualBX > qual)
179 if (tsPreviousBX_2) {
180 int phiBX = tsPreviousBX_2->
phi();
181 int qualBX = tsPreviousBX_2->
code();
182 if (
abs((
phi >> sh_phi) - (phiBX >> sh_phi)) <=
tolerance && qualBX > qual)
188 int phiBX = tsNextBX_1->
phi();
189 int qualBX = tsNextBX_1->
code();
190 if (
abs((
phi >> sh_phi) - (phiBX >> sh_phi)) <=
tolerance && qualBX > qual)
196 int phiBX = tsNextBX_2->
phi();
197 int qualBX = tsNextBX_2->
code();
198 if (
abs((
phi >> sh_phi) - (phiBX >> sh_phi)) <=
tolerance && qualBX > qual)
231 if (adr >= 4 && adr <= 7)
233 if (adr >= 8 && adr <= 11)
246 if ((adr / 2) % 2 == 1)
const L1MuBMSecProcId & id() const
return Sector Processor identifier
L1MuDTTFParameters l1mudttfparams
static int getTSOutOfTimeWindow()
int address2sector(int adr) const
find the right sector for a given address
void run(int bx, const edm::Event &e, const edm::EventSetup &c)
receive track segment data from the BBMX and CSC chamber triggers
static int getNbitsExtPhi()
void addTSphi(int adr, const L1MuBMTrackSegPhi &)
add new phi track segment to the Data Buffer
unsigned short int get_inrec_qual_st2(int wh, int sc) const
int wheel() const
return wheel number
bool get_inrec_chdis_st4(int wh, int sc) const
unsigned short int get_soc_stdis_zl(int wh, int sc) const
int locwheel() const
return physical wheel number (-2,-1,0,+1,+2)
L1MuBMSectorReceiver(L1MuBMSectorProcessor &, edm::ConsumesCollector &&iC)
constructor
edm::EDGetTokenT< L1MuDTChambPhContainer > m_DTDigiToken
virtual ~L1MuBMSectorReceiver()
destructor
const L1MuBMDataBuffer * data() const
return pointer to Data Buffer
L1MuDTTFMasks l1mudttfmasks
bool get_inrec_chdis_st1(int wh, int sc) const
int address2wheel(int adr) const
find the right wheel for a given address
L1MuBMSectorProcessor & m_sp
unsigned short int get_soc_stdis_wl(int wh, int sc) const
unsigned short int get_soc_stdis_wr(int wh, int sc) const
unsigned short int get_soc_stdis_n(int wh, int sc) const
bool get_soc_nbx_del(int wh, int sc) const
Abs< T >::type abs(const T &t)
static bool getTSOutOfTimeFilter()
unsigned short int get_soc_stdis_zr(int wh, int sc) const
L1MuDTChambPhDigi const * chPhiSegm2(int wheel, int stat, int sect, int bx) const
void receiveBBMXData(int bx, const edm::Event &e)
receive track segment data from BBMX chamber trigger
int sector() const
return sector number
unsigned short int get_inrec_qual_st3(int wh, int sc) const
void reset()
clear Sector Receiver
unsigned short int get_inrec_qual_st1(int wh, int sc) const
unsigned short int get_inrec_qual_st4(int wh, int sc) const
bool get_inrec_chdis_st2(int wh, int sc) const
bool get_inrec_chdis_st3(int wh, int sc) const
edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd > m_bmtfParamsToken
L1MuDTChambPhDigi const * chPhiSegm1(int wheel, int stat, int sect, int bx) const