30 ilink_tpc_map[
ilink].emplace_back(
tp, tp_info);
40 const int tp_endcap = tp_info.
endcap;
41 const int tp_sector = tp_info.
sector;
42 const int tp_subsector = tp_info.
subsector;
43 const int tp_station = tp_info.
station;
44 const int tp_ring = tp_info.
ring;
45 const int tp_csc_id = tp_info.
csc_id;
48 const int tp_emtf_sect = tp_data.emtf_sector;
49 const bool tp_is_CPPF = tp_data.isCPPF;
52 if (tp_is_CPPF && (tp_emtf_sect !=
sector_))
78 const int& tp_station,
89 const int ilink_offset = 54;
91 if (tp_station == 1) {
92 ilink = ilink_offset + (tp_subsector - 1) * 9 + (tp_csc_id - 1);
94 ilink = ilink_offset + tp_station * 9 + (tp_csc_id - 1);
99 const int ilink_offset = 99;
101 if (tp_station == 1) {
102 ilink = ilink_offset + ((tp_station - 1) * 2) + ((tp_csc_id - 1) / 3);
103 }
else if (tp_ring == 1) {
104 ilink = ilink_offset + ((tp_station - 1) * 2) + 1;
106 ilink = ilink_offset + ((tp_station - 1) * 2) + 2;
bool isTPInSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector)
void select(const TriggerPrimitive &, TPInfo, ILinkTPCMap &) const final
RPCTPSelector(const EMTFContext &, const int &, const int &)
std::map< int, TPCollection > ILinkTPCMap
const EMTFContext & context_
bool isTPInNeighborSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_id)
int getInputLink(const TriggerPrimitive &, TPInfo &) const
int calcInputLink(const int &, const int &, const int &, const int &, const TPSelection &) const
EMTFConfiguration config_
bool include_neighbor_en_