31 ilink_tpc_map[
ilink].emplace_back(
tp, tp_info);
33 edm::LogWarning(
"L1TEMTFpp") <<
"\n******************* EMTF EMULATOR: SUPER-BIZZARE CASE *******************";
34 edm::LogWarning(
"L1TEMTFpp") <<
"Found 3 CSC trigger primitives in the same chamber";
36 for (
unsigned int i_tp = 0; i_tp < 3; i_tp++) {
37 const auto& tp_err = ((i_tp < 2) ? ilink_tpc_map[
ilink].at(i_tp).tp_ :
tp);
39 edm::LogWarning(
"L1TEMTFpp") <<
"LCT #" << i_tp + 1 <<
": BX " << tp_err.getBX() <<
", endcap " 44 << tp_err.getCSCData().cscID <<
": strip " << tp_err.getStrip() <<
", wire " 48 edm::LogWarning(
"L1TEMTFpp") <<
"************************* ONLY KEEP FIRST TWO *************************\n\n";
59 const int tp_endcap = tp_info.
endcap;
60 const int tp_sector = tp_info.
sector;
61 const int tp_subsector = tp_info.
subsector;
62 const int tp_station = tp_info.
station;
63 const int tp_ring = tp_info.
ring;
64 const int tp_csc_id = tp_info.
csc_id;
90 const int& tp_station,
101 const int ilink_offset = 0;
103 if (tp_station == 1) {
104 ilink = ilink_offset + (tp_subsector - 1) * 9 + (tp_csc_id - 1);
106 ilink = ilink_offset + tp_station * 9 + (tp_csc_id - 1);
111 const int ilink_offset = 45;
113 if (tp_station == 1) {
114 ilink = ilink_offset + ((tp_station - 1) * 2) + (tp_csc_id - 1) / 3;
115 }
else if (tp_ring == 1) {
116 ilink = ilink_offset + ((tp_station - 1) * 2) + 1;
118 ilink = ilink_offset + ((tp_station - 1) * 2) + 2;
bool isTPInSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector)
std::map< int, TPCollection > ILinkTPCMap
int getInputLink(const TriggerPrimitive &, TPInfo &) const
int calcInputLink(const int &, const int &, const int &, const int &, const TPSelection &) const
void select(const TriggerPrimitive &, TPInfo, ILinkTPCMap &) const final
CSCTPSelector(const EMTFContext &, const int &, const int &)
bool isTPInNeighborSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_id)
const EMTFContext & context_
Log< level::Warning, false > LogWarning
Int_t triggerSector(Int_t station, Int_t ring, Int_t chamber) const
EMTFConfiguration config_
bool include_neighbor_en_