13 #define NUM_CSC_CHAMBERS 6*9 // 18 in ME1; 9x3 in ME2,3,4; 9 from neighbor sector. 15 #define NUM_RPC_CHAMBERS 7*8 // 6x2 in RE1,2; 12x2 in RE3,4; 6 from neighbor sector. 17 #define NUM_GEM_CHAMBERS 6*9 // 6 in GE1/1; 3 in GE2/1; 2 from neighbor sector. 23 int bxShiftCSC,
int bxShiftRPC,
int bxShiftGEM,
24 bool includeNeighbor,
bool duplicateTheta,
48 std::map<int, TriggerPrimitiveCollection>& selected_csc_map
50 TriggerPrimitiveCollection::const_iterator tp_it = muon_primitives.begin();
51 TriggerPrimitiveCollection::const_iterator tp_end = muon_primitives.end();
53 for (; tp_it != tp_end; ++tp_it) {
58 bool patchPattern =
true;
68 bool patchQuality =
true;
78 if (selected_csc >= 0) {
82 if (selected_csc_map[selected_csc].
size() < 2) {
83 selected_csc_map[selected_csc].push_back(new_tp);
86 edm::LogWarning(
"L1T") <<
"\n******************* EMTF EMULATOR: SUPER-BIZZARE CASE *******************";
87 edm::LogWarning(
"L1T") <<
"Found 3 CSC trigger primitives in the same chamber";
88 for (
int ii = 0;
ii < 3;
ii++) {
96 edm::LogWarning(
"L1T") <<
"************************* ONLY KEEP FIRST TWO *************************\n\n";
106 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_it = selected_csc_map.begin();
107 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_end = selected_csc_map.end();
109 for (; map_tp_it != map_tp_end; ++map_tp_it) {
110 int selected = map_tp_it->first;
113 if (tmp_primitives.size() >= 4) {
114 edm::LogWarning(
"L1T") <<
"EMTF found 4 or more CSC LCTs in one chamber: keeping only two";
115 tmp_primitives.erase(tmp_primitives.begin() + 4, tmp_primitives.end());
116 tmp_primitives.erase(tmp_primitives.begin() + 2);
117 tmp_primitives.erase(tmp_primitives.begin() + 1);
118 }
else if (tmp_primitives.size() == 3) {
119 edm::LogWarning(
"L1T") <<
"EMTF found 3 CSC LCTs in one chamber: keeping only two";
120 tmp_primitives.erase(tmp_primitives.begin() + 2);
122 if (not(tmp_primitives.size() <= 2))
123 {
edm::LogError(
"L1T") <<
"tmp_primitives.size() = " << tmp_primitives.size() ;
return; }
125 if (tmp_primitives.size() == 2) {
127 (tmp_primitives.at(0).getStrip() != tmp_primitives.at(1).getStrip()) &&
128 (tmp_primitives.at(0).getWire() != tmp_primitives.at(1).getWire())
137 tmp_primitives.insert(tmp_primitives.begin()+1, tp1);
138 tmp_primitives.insert(tmp_primitives.begin()+2, tp0);
141 const bool is_csc_me11 = (0 <= selected && selected <= 2) || (9 <= selected && selected <= 11) || (selected == 45);
145 if (tmp_primitives.size() == 2) {
153 tmp_primitives.insert(tmp_primitives.begin()+1, tp1);
154 tmp_primitives.insert(tmp_primitives.begin()+2, tp0);
156 if (not(tmp_primitives.size() == 1 || tmp_primitives.size() == 4))
157 {
edm::LogError(
"L1T") <<
"tmp_primitives.size() = " << tmp_primitives.size();
return; }
172 std::map<int, TriggerPrimitiveCollection>& selected_rpc_map
174 TriggerPrimitiveCollection::const_iterator tp_it = muon_primitives.begin();
175 TriggerPrimitiveCollection::const_iterator tp_end = muon_primitives.end();
177 for (; tp_it != tp_end; ++tp_it) {
180 if (selected_rpc >= 0) {
183 selected_rpc_map[selected_rpc].push_back(*tp_it);
195 bool apply_truncation =
true;
196 if (apply_truncation) {
199 bool operator()(
const value_type&
x)
const {
200 int sz = x.getRPCData().strip_hi - x.getRPCData().strip_low + 1;
205 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_it = selected_rpc_map.begin();
206 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_end = selected_rpc_map.end();
208 for (; map_tp_it != map_tp_end; ++map_tp_it) {
213 if (tmp_primitives.size() > 2 && tmp_primitives.at(0).getRPCData().isCPPF) {
214 edm::LogWarning(
"L1T") <<
"\n******************* EMTF EMULATOR: SUPER-BIZZARE CASE *******************";
215 edm::LogWarning(
"L1T") <<
"Found " << tmp_primitives.size() <<
" CPPF digis in the same chamber";
216 for (
const auto & tp : tmp_primitives) tp.print(
std::cout);
217 edm::LogWarning(
"L1T") <<
"************************* ONLY KEEP FIRST TWO *************************\n\n";
221 if (tmp_primitives.size() > 2)
222 tmp_primitives.erase(tmp_primitives.begin()+2, tmp_primitives.end());
225 if (!tmp_primitives.empty() && tmp_primitives.at(0).getRPCData().isCPPF)
229 tmp_primitives.erase(
230 std::remove_if(tmp_primitives.begin(), tmp_primitives.end(), cluster_size_cut),
238 bool map_rpc_to_csc =
true;
239 if (map_rpc_to_csc) {
240 std::map<int, TriggerPrimitiveCollection> tmp_selected_rpc_map;
242 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_it = selected_rpc_map.begin();
243 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_end = selected_rpc_map.end();
245 for (; map_tp_it != map_tp_end; ++map_tp_it) {
246 int selected = map_tp_it->first;
249 int rpc_sub = selected / 8;
250 int rpc_chm = selected % 8;
257 if (0 <= rpc_sub && rpc_sub < 3) {
259 pc_chamber = 3 + rpc_sub;
260 }
else if (3 <= rpc_sub && rpc_sub < 6) {
262 pc_chamber = 3 + (rpc_sub - 3);
264 }
else if (rpc_chm == 1) {
266 pc_chamber = 3 + rpc_sub;
267 }
else if (2 <= rpc_chm && rpc_chm <= 3) {
269 pc_chamber = 3 + rpc_sub;
270 }
else if (4 <= rpc_chm && rpc_chm <= 5) {
272 pc_chamber = 3 + rpc_sub;
279 }
else if (rpc_chm == 1) {
281 }
else if (2 <= rpc_chm && rpc_chm <= 3) {
283 }
else if (4 <= rpc_chm && rpc_chm <= 5) {
288 if (not(pc_station != -1 && pc_chamber != -1))
289 {
edm::LogError(
"L1T") <<
"pc_station = " << pc_station <<
", pc_chamber = " << pc_chamber;
return; }
291 selected = (pc_station * 9) + pc_chamber;
293 bool ignore_this_rpc_chm =
false;
294 if (rpc_chm == 3 || rpc_chm == 5) {
297 if (tmp_selected_rpc_map.find(selected) != tmp_selected_rpc_map.end())
298 ignore_this_rpc_chm =
true;
301 if (ignore_this_rpc_chm) {
303 for (
auto&& tp : tmp_primitives) {
304 tp.accessRPCData().valid = 0;
308 if (tmp_selected_rpc_map.find(selected) == tmp_selected_rpc_map.end()) {
309 tmp_selected_rpc_map[selected] = tmp_primitives;
311 tmp_selected_rpc_map[selected].insert(tmp_selected_rpc_map[selected].
end(), tmp_primitives.begin(), tmp_primitives.end());
315 std::swap(selected_rpc_map, tmp_selected_rpc_map);
326 std::map<int, TriggerPrimitiveCollection>& selected_gem_map
328 TriggerPrimitiveCollection::const_iterator tp_it = muon_primitives.begin();
329 TriggerPrimitiveCollection::const_iterator tp_end = muon_primitives.end();
331 for (; tp_it != tp_end; ++tp_it) {
334 if (selected_gem >= 0) {
337 selected_gem_map[selected_gem].push_back(*tp_it);
342 bool apply_truncation =
true;
343 if (apply_truncation) {
346 bool operator()(
const value_type&
x)
const {
347 int sz = x.getGEMData().pad_hi - x.getGEMData().pad_low + 1;
352 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_it = selected_gem_map.begin();
353 std::map<int, TriggerPrimitiveCollection>::iterator map_tp_end = selected_gem_map.end();
355 for (; map_tp_it != map_tp_end; ++map_tp_it) {
360 tmp_primitives.erase(
361 std::remove_if(tmp_primitives.begin(), tmp_primitives.end(), cluster_size_cut),
366 if (tmp_primitives.size() > 8)
367 tmp_primitives.erase(tmp_primitives.begin()+8, tmp_primitives.end());
394 const std::map<int, TriggerPrimitiveCollection>& selected_csc_map,
395 const std::map<int, TriggerPrimitiveCollection>& selected_rpc_map,
396 const std::map<int, TriggerPrimitiveCollection>& selected_gem_map,
397 std::map<int, TriggerPrimitiveCollection>& selected_prim_map
400 std::map<int, TriggerPrimitiveCollection>::const_iterator map_tp_it = selected_csc_map.begin();
401 std::map<int, TriggerPrimitiveCollection>::const_iterator map_tp_end = selected_csc_map.end();
403 for (; map_tp_it != map_tp_end; ++map_tp_it) {
404 int selected_csc = map_tp_it->first;
406 if (not(csc_primitives.size() <= 4))
407 {
edm::LogError(
"L1T") <<
"csc_primitives.size() = " << csc_primitives.size();
return; }
410 selected_prim_map[selected_csc] = csc_primitives;
414 map_tp_it = selected_gem_map.begin();
415 map_tp_end = selected_gem_map.end();
417 for (; map_tp_it != map_tp_end; ++map_tp_it) {
418 int selected_gem = map_tp_it->first;
420 if (gem_primitives.empty())
continue;
421 if (not(gem_primitives.size() <= 8))
422 {
edm::LogError(
"L1T") <<
"gem_primitives.size() = " << gem_primitives.size();
return; }
424 bool found = (selected_prim_map.find(selected_gem) != selected_prim_map.end());
427 selected_prim_map[selected_gem] = gem_primitives;
435 map_tp_it = selected_rpc_map.begin();
436 map_tp_end = selected_rpc_map.end();
438 for (; map_tp_it != map_tp_end; ++map_tp_it) {
439 int selected_rpc = map_tp_it->first;
441 if (rpc_primitives.empty())
continue;
442 if (not(rpc_primitives.size() <= 4))
443 {
edm::LogError(
"L1T") <<
"rpc_primitives.size() = " << rpc_primitives.size();
return; }
445 bool found = (selected_prim_map.find(selected_rpc) != selected_prim_map.end());
452 for (
const auto& tp : rpc_primitives) {
453 if (tp.getRPCData().valid != 0) {
454 tmp_rpc_primitives.push_back(tp);
457 if (not(tmp_rpc_primitives.size() <= 2))
458 {
edm::LogError(
"L1T") <<
"tmp_rpc_primitives.size() = " << tmp_rpc_primitives.size();
return; }
460 selected_prim_map[selected_rpc] = tmp_rpc_primitives;
475 const std::map<int, TriggerPrimitiveCollection>& selected_csc_map,
476 const std::map<int, TriggerPrimitiveCollection>& selected_rpc_map,
477 const std::map<int, TriggerPrimitiveCollection>& selected_gem_map,
478 std::map<int, TriggerPrimitiveCollection>& selected_prim_map
481 merge_map_into_map(selected_csc_map, selected_prim_map);
484 merge_map_into_map(selected_gem_map, selected_prim_map);
487 merge_map_into_map(selected_rpc_map, selected_prim_map);
500 int tp_endcap = tp_detId.
endcap();
502 int tp_station = tp_detId.
station();
503 int tp_ring = tp_detId.
ring();
504 int tp_chamber = tp_detId.
chamber();
506 int tp_bx = tp_data.bx;
507 int tp_csc_ID = tp_data.cscID;
510 edm::LogWarning(
"L1T") <<
"EMTF CSC format error: tp_endcap = " << tp_endcap;
return selected; }
512 edm::LogWarning(
"L1T") <<
"EMTF CSC format error: tp_sector = " << tp_sector;
return selected; }
513 if ( !(1 <= tp_station && tp_station <= 4) ) {
514 edm::LogWarning(
"L1T") <<
"EMTF CSC format error: tp_station = " << tp_station;
return selected; }
515 if ( !(1 <= tp_csc_ID && tp_csc_ID <= 9) ) {
516 edm::LogWarning(
"L1T") <<
"EMTF CSC format error: tp_csc_ID = " << tp_csc_ID;
return selected; }
517 if ( !(tp_data.valid ==
true) ) {
518 edm::LogWarning(
"L1T") <<
"EMTF CSC format error: tp_data.valid = " << tp_data.valid ;
return selected; }
519 if ( !(tp_data.pattern <= 10) ) {
520 edm::LogWarning(
"L1T") <<
"EMTF CSC format error: tp_data.pattern = " << tp_data.pattern;
return selected; }
521 if ( !(tp_data.quality > 0) ) {
522 edm::LogWarning(
"L1T") <<
"EMTF CSC format error: tp_data.quality = " << tp_data.quality;
return selected; }
526 if (tp_station == 1 && tp_ring == 4) {
529 }
else if (tp_station == 1 && tp_ring == 1) {
532 }
else if (tp_station == 1 && tp_ring == 2) {
535 }
else if (tp_station == 1 && tp_ring == 3) {
538 }
else if (tp_station == 2 && tp_ring == 1) {
541 }
else if (tp_station >= 3 && tp_ring == 1) {
544 }
else if (tp_station >= 2 && tp_ring == 2) {
549 if ( !(tp_data.strip < max_strip) ) {
550 edm::LogWarning(
"L1T") <<
"EMTF CSC format error in station " << tp_station <<
", ring " << tp_ring
551 <<
": tp_data.strip = " << tp_data.strip <<
" (max = " << max_strip - 1 <<
")" << std::endl;
553 if ( !(tp_data.keywire < max_wire) ) {
554 edm::LogWarning(
"L1T") <<
"EMTF CSC format error in station " << tp_station <<
", ring " << tp_ring
555 <<
": tp_data.keywire = " << tp_data.keywire <<
" (max = " << max_wire - 1 <<
")" << std::endl;
561 int tp_subsector = (tp_station != 1) ? 0 : ((tp_chamber%6 > 2) ? 1 : 2);
566 selected =
get_index_csc(tp_subsector, tp_station, tp_csc_ID,
false);
568 selected =
get_index_csc(tp_subsector, tp_station, tp_csc_ID,
true);
580 auto get_neighbor = [](
int sector) {
581 return (sector == 1) ? 6 : sector - 1;
585 if ((
endcap_ == tp_endcap) && (get_neighbor(
sector_) == tp_sector)) {
586 if (tp_station == 1) {
587 if ((tp_subsector == 2) && (tp_csc_ID == 3 || tp_csc_ID == 6 || tp_csc_ID == 9))
591 if (tp_csc_ID == 3 || tp_csc_ID == 9)
601 return (
bx_ == tp_bx);
609 if (tp_station == 1) {
610 selected = (tp_subsector-1) * 9 + (tp_csc_ID-1);
612 selected = (tp_station) * 9 + (tp_csc_ID-1);
616 if (tp_station == 1) {
617 selected = (5) * 9 + (tp_csc_ID-1)/3;
619 selected = (5) * 9 + (tp_station) * 2 - 1 + (tp_csc_ID-1 < 3 ? 0 : 1);
635 int tp_region = tp_detId.
region();
636 int tp_endcap = (tp_region == -1) ? 2 : tp_region;
637 int tp_sector = tp_detId.
sector();
639 int tp_station = tp_detId.
station();
640 int tp_ring = tp_detId.
ring();
641 int tp_roll = tp_detId.
roll();
644 int tp_bx = tp_data.bx;
645 int tp_strip = tp_data.strip;
646 int tp_emtf_sect = tp_data.emtf_sector;
647 bool tp_CPPF = tp_data.isCPPF;
650 if (tp_CPPF && (tp_emtf_sect !=
sector_))
return selected;
652 if ( !(tp_region != 0) ) {
653 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_region = " << tp_region;
return selected; }
655 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_endcap = " << tp_endcap;
return selected; }
657 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_sector = " << tp_sector;
return selected; }
658 if ( !(1 <= tp_subsector && tp_subsector <= 6) ) {
659 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_subsector = " << tp_subsector;
return selected; }
660 if ( !(1 <= tp_station && tp_station <= 4) ) {
661 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_station = " << tp_station;
return selected; }
662 if ( !(2 <= tp_ring && tp_ring <= 3) ) {
663 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_ring = " << tp_ring;
return selected; }
664 if ( !(1 <= tp_roll && tp_roll <= 3) ) {
665 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_roll = " << tp_roll;
return selected; }
666 if ( !(tp_CPPF || (1 <= tp_strip && tp_strip <= 32)) ) {
667 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_data.strip = " << tp_data.strip;
return selected; }
668 if ( !(tp_station > 2 || tp_ring != 3) ) {
669 edm::LogWarning(
"L1T") <<
"EMTF RPC format error: tp_station = " << tp_station <<
", tp_ring = " << tp_ring;
return selected; }
674 if (
is_in_sector_rpc(tp_endcap, tp_station, tp_ring, tp_sector, tp_subsector)) {
675 selected =
get_index_rpc(tp_station, tp_ring, tp_subsector,
false);
677 selected =
get_index_rpc(tp_station, tp_ring, tp_subsector,
true);
687 auto get_csc_sector = [](
int tp_station,
int tp_ring,
int tp_sector,
int tp_subsector) {
689 int corr = (tp_subsector < 3) ? (tp_sector == 1 ? +5 : -1) : 0;
690 return tp_sector +
corr;
692 return ((
endcap_ == tp_endcap) && (
sector_ == get_csc_sector(tp_station, tp_ring, tp_sector, tp_subsector)));
696 auto get_csc_neighbor_subsector = [](
int tp_station,
int tp_ring) {
700 return (
includeNeighbor_ && (
endcap_ == tp_endcap) && (
sector_ == tp_sector) && (tp_subsector == get_csc_neighbor_subsector(tp_station, tp_ring)));
705 return (
bx_ == tp_bx);
724 rpc_sub = ((tp_subsector + 3) % 6);
729 if (tp_station <= 2) {
730 rpc_chm = (tp_station - 1);
732 rpc_chm = 2 + (tp_station - 3)*2 + (tp_ring - 2);
735 if (not(rpc_sub != -1 && rpc_chm != -1))
736 {
edm::LogError(
"L1T") <<
"rpc_sub = " << rpc_sub <<
", rpc_chm = " << rpc_chm;
return selected; }
738 selected = (rpc_sub * 8) + rpc_chm;
752 int tp_region = tp_detId.
region();
753 int tp_endcap = (tp_region == -1) ? 2 : tp_region;
754 int tp_station = tp_detId.
station();
755 int tp_ring = tp_detId.
ring();
756 int tp_roll = tp_detId.
roll();
757 int tp_layer = tp_detId.
layer();
758 int tp_chamber = tp_detId.
chamber();
760 int tp_bx = tp_data.
bx;
761 int tp_pad = tp_data.
pad;
767 if( station > 1 && ring > 1 ) {
768 result = ((
static_cast<unsigned>(
chamber-3) & 0x7f) / 6) + 1;
770 else if( station == 1 && ring != 4 ) {
771 result = ((
static_cast<unsigned>(
chamber-3) & 0x7f) / 6) + 1;
774 result = ((
static_cast<unsigned>(
chamber-2) & 0x1f) / 3) + 1;
776 return (result <= 6) ? result : 6;
807 int tp_sector = get_trigger_sector(tp_ring, tp_station, tp_chamber);
808 int tp_csc_ID = get_trigger_csc_ID(tp_ring, tp_station, tp_chamber);
812 int tp_subsector = (tp_station != 1) ? 0 : ((tp_chamber%6 > 2) ? 1 : 2);
816 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_endcap = " << tp_endcap;
return selected; }
818 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_sector = " << tp_sector;
return selected; }
819 if ( !(1 <= tp_station && tp_station <= 2) ) {
820 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_station = " << tp_station;
return selected; }
821 if ( !(1 <= tp_ring && tp_ring <= 1) ) {
822 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_ring = " << tp_ring;
return selected; }
823 if ( !(1 <= tp_csc_ID && tp_csc_ID <= 9) ) {
824 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_csc_ID = " << tp_csc_ID;
return selected; }
825 if (!(tp_station == 1 && 1 <= tp_roll && tp_roll <= 8) || (tp_station != 1)) {
826 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_station = " << tp_station
827 <<
", tp_roll = " << tp_roll;
return selected; }
828 if ( !(tp_station == 2 && 1 <= tp_roll && tp_roll <= 12) || (tp_station != 2)) {
829 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_station = " << tp_station
830 <<
", tp_roll = " << tp_roll;
return selected; }
831 if ( !(1 <= tp_layer && tp_layer <= 2)) {
832 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_layer = " << tp_layer;
return selected; }
833 if ( !((tp_station == 1 && 1 <= tp_pad && tp_pad <= 192) || (tp_station != 1))) {
834 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_station = " << tp_station
835 <<
", tp_pad = " << tp_pad;
return selected; }
836 if ( !((tp_station == 2 && 1 <= tp_pad && tp_pad <= 192) || (tp_station != 2))) {
837 edm::LogWarning(
"L1T") <<
"EMTF GEM format error: tp_station = " << tp_station
838 <<
", tp_pad = " << tp_pad;
return selected; }
843 selected =
get_index_gem(tp_subsector, tp_station, tp_csc_ID,
false);
845 selected =
get_index_gem(tp_subsector, tp_station, tp_csc_ID,
true);
864 return (
bx_ == tp_bx);
869 return get_index_csc(tp_subsector, tp_station, tp_csc_ID, is_neighbor);
const subsystem_type subsystem() const
bool is_in_sector_csc(int tp_endcap, int tp_sector) const
const GEMData getGEMData() const
int get_index_gem(int tp_subsector, int tp_station, int tp_csc_ID, bool is_neighbor) const
const CSCData getCSCData() const
int select_gem(const TriggerPrimitive &muon_primitive) const
bool is_in_sector_gem(int tp_endcap, int tp_sector) const
void merge_no_truncate(const std::map< int, TriggerPrimitiveCollection > &selected_csc_map, const std::map< int, TriggerPrimitiveCollection > &selected_rpc_map, const std::map< int, TriggerPrimitiveCollection > &selected_gem_map, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const
const RPCData getRPCData() const
void configure(int verbose, int endcap, int sector, int bx, int bxShiftCSC, int bxShiftRPC, int bxShiftGEM, bool includeNeighbor, bool duplicateTheta, bool bugME11Dupes)
bool is_in_sector_rpc(int tp_endcap, int tp_station, int tp_ring, int tp_sector, int tp_subsector) const
const int getStrip() const
Container::value_type value_type
bool is_in_bx_gem(int tp_bx) const
int region() const
The identifiers.
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
CSCData & accessCSCData()
int select_rpc(const TriggerPrimitive &muon_primitive) const
int select_csc(const TriggerPrimitive &muon_primitive) const
void process(T tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const
bool is_in_neighbor_sector_csc(int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_csc_ID) const
bool is_in_bx_csc(int tp_bx) const
int get_index_csc(int tp_subsector, int tp_station, int tp_csc_ID, bool is_neighbor) const
void merge(const std::map< int, TriggerPrimitiveCollection > &selected_csc_map, const std::map< int, TriggerPrimitiveCollection > &selected_rpc_map, const std::map< int, TriggerPrimitiveCollection > &selected_gem_map, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const
bool is_in_bx_rpc(int tp_bx) const
L1TMuon::TriggerPrimitiveCollection TriggerPrimitiveCollection
int triggerSector() const
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
const int getWire() const
int get_index_rpc(int tp_station, int tp_ring, int tp_subsector, bool is_neighbor) const
EMTFGEMDetId construct_EMTFGEMDetId(const L1TMuon::TriggerPrimitive &tp)
Int_t triggerSector(Int_t station, Int_t ring, Int_t chamber) const
bool is_in_neighbor_sector_rpc(int tp_endcap, int tp_station, int tp_ring, int tp_sector, int tp_subsector) const
bool is_in_neighbor_sector_gem(int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_csc_ID) const
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.