111 int max_address = (
station == 1) ? 2 : 12;
112 for (
int reladr = 0; reladr < max_address; reladr++) {
114 if (
m_sp.
ovl() && (reladr / 2) % 2 != 0)
124 int phib = ts->
phiB();
126 bool tag = (reladr % 2 == 1) ?
true :
false;
134 if (qual < pars->get_inrec_qual_st1(lwheel,
sector))
139 if (qual < pars->get_inrec_qual_st2(lwheel,
sector))
144 if (qual < pars->get_inrec_qual_st3(lwheel,
sector))
149 if (qual < pars->get_inrec_qual_st4(lwheel,
sector))
175 if (tsPreviousBX_1) {
176 int phiBX = tsPreviousBX_1->
phi();
177 int qualBX = tsPreviousBX_1->
code();
183 if (tsPreviousBX_2) {
184 int phiBX = tsPreviousBX_2->
phi();
185 int qualBX = tsPreviousBX_2->
code();
192 int phiBX = tsNextBX_1->
phi();
193 int qualBX = tsNextBX_1->
code();
200 int phiBX = tsNextBX_2->
phi();
201 int qualBX = tsNextBX_2->
code();
224 if (bx < -6 || bx > 6)
232 vector<csctf::TrackStub> csc_list;
233 vector<csctf::TrackStub>::const_iterator csc_iter;
244 for (csc_iter = csc_list.begin(); csc_iter != csc_list.end(); csc_iter++) {
245 bool etaFlag = (csc_iter->etaPacked() > 17);
246 int qualCSC = csc_iter->getQuality();
249 unsigned int qual = 7;
276 int phi = csc_iter->phiPacked();
279 if (phi < -2048 || phi > 2047)
292 int address = 16 + ncsc;
293 bool tag = (ncsc == 1) ?
true :
false;
309 if (adr >= 4 && adr <= 7)
311 if (adr >= 8 && adr <= 11)
324 if ((adr / 2) % 2 == 1)
int getTSOutOfTimeWindow() const
void receiveCSCData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive track segment data from CSC chamber trigger
int wheel() const
return wheel number
void receiveDTBXData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive track segment data from DTBX chamber trigger
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
int locwheel() const
return physical wheel number (-2,-1,0,+1,+2)
bool ovl() const
is it an overlap region Sector Processor?
void reset()
clear Sector Receiver
bool get_inrec_chdis_st4(int wh, int sc) const
L1MuDTSectorProcessor & m_sp
ALPAKA_FN_ACC int side(int ieta, int iphi)
int sector() const
return sector number
const L1MuDTDataBuffer * data() const
return pointer to Data Buffer
edm::ESHandle< L1MuDTTFParameters > pars
int address2wheel(int adr) const
find the right wheel for a given address
bool get_inrec_chdis_csc(int wh, int sc) const
const L1MuDTSecProcId & id() const
return Sector Processor identifier
bool get_inrec_chdis_st1(int wh, int sc) const
L1MuDTSectorReceiver(L1MuDTSectorProcessor &, edm::ConsumesCollector iC)
constructor
bool get_soc_csc_etacanc(int wh, int sc) const
bool get_soc_nbx_del(int wh, int sc) const
Abs< T >::type abs(const T &t)
L1MuDTChambPhDigi const * chPhiSegm2(int wheel, int stat, int sect, int bx) const
const L1MuDTTFConfig * config() const
return configuration
edm::ESGetToken< L1MuDTTFParameters, L1MuDTTFParametersRcd > m_parsToken
edm::InputTag getCSCTrSInputTag() const
int address2sector(int adr) const
find the right sector for a given address
edm::ESHandle< L1MuDTTFMasks > msks
void addTSphi(int adr, const L1MuDTTrackSegPhi &)
add new phi track segment to the Data Buffer
int getNbitsExtPhi() const
edm::EDGetTokenT< L1MuDTChambPhContainer > m_DTDigiToken
edm::EDGetTokenT< CSCTriggerContainer< csctf::TrackStub > > m_CSCTrSToken
void run(int bx, const edm::Event &e, const edm::EventSetup &c)
receive track segment data from the DTBX and CSC chamber triggers
bool getTSOutOfTimeFilter() const
bool get_inrec_chdis_st2(int wh, int sc) const
bool get_inrec_chdis_st3(int wh, int sc) const
edm::ESGetToken< L1MuDTTFMasks, L1MuDTTFMasksRcd > m_msksToken
virtual ~L1MuDTSectorReceiver()
destructor
L1MuDTChambPhDigi const * chPhiSegm1(int wheel, int stat, int sect, int bx) const