#include <PrimitiveSelection.h>
Public Member Functions | |
void | configure (int verbose, int endcap, int sector, int bx, int bxShiftCSC, int bxShiftRPC, int bxShiftGEM, int bxShiftME0, bool includeNeighbor, bool duplicateTheta, bool bugME11Dupes, bool useRun3CCLUT_OTMB, bool useRun3CCLUT_TMB) |
int | get_index_csc (int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_csc_ID, int tp_bx) const |
int | get_index_dt (int tp_endcap, int csc_tp_sector, int tp_subsector, int tp_station, int tp_csc_ID, int tp_bx) const |
int | get_index_gem (int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_csc_ID, int tp_bx) const |
int | get_index_me0 (int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_csc_ID, int tp_pad, int tp_bx) const |
int | get_index_rpc (int tp_endcap, int tp_station, int tp_ring, int tp_sector, int tp_subsector, int tp_bx) const |
bool | is_in_bx_csc (int tp_bx) const |
bool | is_in_bx_dt (int tp_bx) const |
bool | is_in_bx_gem (int tp_bx) const |
bool | is_in_bx_me0 (int tp_bx) const |
bool | is_in_bx_rpc (int tp_bx) 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_neighbor_sector_dt (int tp_endcap, int tp_sector, int tp_csc_ID) const |
bool | is_in_neighbor_sector_gem (int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_csc_ID) const |
bool | is_in_neighbor_sector_me0 (int tp_endcap, int tp_sector, int tp_csc_ID, int tp_pad) 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_sector_csc (int tp_endcap, int tp_sector) const |
bool | is_in_sector_dt (int tp_endcap, int tp_sector) const |
bool | is_in_sector_gem (int tp_endcap, int tp_sector) const |
bool | is_in_sector_me0 (int tp_endcap, int tp_sector, int tp_csc_ID, int tp_pad) const |
bool | is_in_sector_rpc (int tp_endcap, int tp_station, int tp_ring, int tp_sector, int tp_subsector) const |
void | merge (const std::map< int, TriggerPrimitiveCollection > &selected_dt_map, const std::map< int, TriggerPrimitiveCollection > &selected_csc_map, const std::map< int, TriggerPrimitiveCollection > &selected_rpc_map, const std::map< int, TriggerPrimitiveCollection > &selected_gem_map, const std::map< int, TriggerPrimitiveCollection > &selected_me0_map, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const |
void | merge_no_truncate (const std::map< int, TriggerPrimitiveCollection > &selected_dt_map, const std::map< int, TriggerPrimitiveCollection > &selected_csc_map, const std::map< int, TriggerPrimitiveCollection > &selected_rpc_map, const std::map< int, TriggerPrimitiveCollection > &selected_gem_map, const std::map< int, TriggerPrimitiveCollection > &selected_me0_map, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const |
template<typename T > | |
void | process (T tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const |
template<> | |
void | process (emtf::CSCTag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_csc_map) const |
template<> | |
void | process (emtf::RPCTag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_rpc_map) const |
template<> | |
void | process (emtf::GEMTag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_gem_map) const |
template<> | |
void | process (emtf::ME0Tag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_me0_map) const |
template<> | |
void | process (emtf::DTTag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_dt_map) const |
int | select_csc (const TriggerPrimitive &muon_primitive) const |
int | select_dt (const TriggerPrimitive &muon_primitive) const |
int | select_gem (const TriggerPrimitive &muon_primitive) const |
int | select_me0 (const TriggerPrimitive &muon_primitive) const |
int | select_rpc (const TriggerPrimitive &muon_primitive) const |
Private Attributes | |
bool | bugME11Dupes_ |
int | bx_ |
int | bxShiftCSC_ |
int | bxShiftGEM_ |
int | bxShiftME0_ |
int | bxShiftRPC_ |
bool | duplicateTheta_ |
int | endcap_ |
bool | includeNeighbor_ |
int | sector_ |
bool | useRun3CCLUT_OTMB_ |
bool | useRun3CCLUT_TMB_ |
int | verbose_ |
Definition at line 6 of file PrimitiveSelection.h.
void PrimitiveSelection::configure | ( | int | verbose, |
int | endcap, | ||
int | sector, | ||
int | bx, | ||
int | bxShiftCSC, | ||
int | bxShiftRPC, | ||
int | bxShiftGEM, | ||
int | bxShiftME0, | ||
bool | includeNeighbor, | ||
bool | duplicateTheta, | ||
bool | bugME11Dupes, | ||
bool | useRun3CCLUT_OTMB, | ||
bool | useRun3CCLUT_TMB | ||
) |
Definition at line 18 of file PrimitiveSelection.cc.
References bugME11Dupes_, simKBmtfDigis_cfi::bx, bx_, bxShiftCSC_, bxShiftGEM_, bxShiftME0_, bxShiftRPC_, duplicateTheta_, makeMuonMisalignmentScenario::endcap, endcap_, includeNeighbor_, sector_, useRun3CCLUT_OTMB_, useRun3CCLUT_TMB_, verbose, and verbose_.
Referenced by SectorProcessor::process_single_bx().
int PrimitiveSelection::get_index_csc | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_subsector, | ||
int | tp_station, | ||
int | tp_csc_ID, | ||
int | tp_bx | ||
) | const |
Definition at line 726 of file PrimitiveSelection.cc.
References emtf_assert, is_in_bx_csc(), is_in_neighbor_sector_csc(), and is_in_sector_csc().
Referenced by select_csc().
int PrimitiveSelection::get_index_dt | ( | int | tp_endcap, |
int | csc_tp_sector, | ||
int | tp_subsector, | ||
int | tp_station, | ||
int | tp_csc_ID, | ||
int | tp_bx | ||
) | const |
Definition at line 1221 of file PrimitiveSelection.cc.
References emtf_assert, is_in_bx_dt(), is_in_neighbor_sector_dt(), and is_in_sector_dt().
Referenced by select_dt().
int PrimitiveSelection::get_index_gem | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_subsector, | ||
int | tp_station, | ||
int | tp_csc_ID, | ||
int | tp_bx | ||
) | const |
Definition at line 974 of file PrimitiveSelection.cc.
References emtf_assert, is_in_bx_gem(), is_in_neighbor_sector_gem(), and is_in_sector_gem().
Referenced by select_gem().
int PrimitiveSelection::get_index_me0 | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_subsector, | ||
int | tp_station, | ||
int | tp_csc_ID, | ||
int | tp_pad, | ||
int | tp_bx | ||
) | const |
Definition at line 1124 of file PrimitiveSelection.cc.
References emtf_assert, is_in_bx_me0(), is_in_neighbor_sector_me0(), and is_in_sector_me0().
Referenced by select_me0().
int PrimitiveSelection::get_index_rpc | ( | int | tp_endcap, |
int | tp_station, | ||
int | tp_ring, | ||
int | tp_sector, | ||
int | tp_subsector, | ||
int | tp_bx | ||
) | const |
Definition at line 852 of file PrimitiveSelection.cc.
References emtf_assert, is_in_bx_rpc(), is_in_neighbor_sector_rpc(), and is_in_sector_rpc().
Referenced by select_rpc().
bool PrimitiveSelection::is_in_bx_csc | ( | int | tp_bx | ) | const |
Definition at line 720 of file PrimitiveSelection.cc.
References bx_, and bxShiftCSC_.
Referenced by get_index_csc().
bool PrimitiveSelection::is_in_bx_dt | ( | int | tp_bx | ) | const |
Definition at line 1216 of file PrimitiveSelection.cc.
References bx_.
Referenced by get_index_dt().
bool PrimitiveSelection::is_in_bx_gem | ( | int | tp_bx | ) | const |
Definition at line 969 of file PrimitiveSelection.cc.
References bx_, and bxShiftGEM_.
Referenced by get_index_gem().
bool PrimitiveSelection::is_in_bx_me0 | ( | int | tp_bx | ) | const |
Definition at line 1119 of file PrimitiveSelection.cc.
References bx_, and bxShiftME0_.
Referenced by get_index_me0().
bool PrimitiveSelection::is_in_bx_rpc | ( | int | tp_bx | ) | const |
Definition at line 847 of file PrimitiveSelection.cc.
References bx_, and bxShiftRPC_.
Referenced by get_index_rpc().
bool PrimitiveSelection::is_in_neighbor_sector_csc | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_subsector, | ||
int | tp_station, | ||
int | tp_csc_ID | ||
) | const |
Definition at line 701 of file PrimitiveSelection.cc.
References endcap_, includeNeighbor_, and sector_.
Referenced by get_index_csc(), is_in_neighbor_sector_dt(), is_in_neighbor_sector_gem(), and is_in_neighbor_sector_me0().
bool PrimitiveSelection::is_in_neighbor_sector_dt | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_csc_ID | ||
) | const |
Definition at line 1210 of file PrimitiveSelection.cc.
References is_in_neighbor_sector_csc().
Referenced by get_index_dt().
bool PrimitiveSelection::is_in_neighbor_sector_gem | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_subsector, | ||
int | tp_station, | ||
int | tp_csc_ID | ||
) | const |
Definition at line 963 of file PrimitiveSelection.cc.
References is_in_neighbor_sector_csc().
Referenced by get_index_gem().
bool PrimitiveSelection::is_in_neighbor_sector_me0 | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_csc_ID, | ||
int | tp_pad | ||
) | const |
Definition at line 1087 of file PrimitiveSelection.cc.
References endcap_, includeNeighbor_, is_in_neighbor_sector_csc(), and sector_.
Referenced by get_index_me0().
bool PrimitiveSelection::is_in_neighbor_sector_rpc | ( | int | tp_endcap, |
int | tp_station, | ||
int | tp_ring, | ||
int | tp_sector, | ||
int | tp_subsector | ||
) | const |
Definition at line 831 of file PrimitiveSelection.cc.
References endcap_, includeNeighbor_, and sector_.
Referenced by get_index_rpc().
bool PrimitiveSelection::is_in_sector_csc | ( | int | tp_endcap, |
int | tp_sector | ||
) | const |
Definition at line 697 of file PrimitiveSelection.cc.
References endcap_, and sector_.
Referenced by get_index_csc(), is_in_sector_dt(), is_in_sector_gem(), and is_in_sector_me0().
bool PrimitiveSelection::is_in_sector_dt | ( | int | tp_endcap, |
int | tp_sector | ||
) | const |
Definition at line 1205 of file PrimitiveSelection.cc.
References is_in_sector_csc().
Referenced by get_index_dt().
bool PrimitiveSelection::is_in_sector_gem | ( | int | tp_endcap, |
int | tp_sector | ||
) | const |
Definition at line 958 of file PrimitiveSelection.cc.
References is_in_sector_csc().
Referenced by get_index_gem().
bool PrimitiveSelection::is_in_sector_me0 | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_csc_ID, | ||
int | tp_pad | ||
) | const |
Definition at line 1057 of file PrimitiveSelection.cc.
References endcap_, includeNeighbor_, is_in_sector_csc(), and sector_.
Referenced by get_index_me0().
bool PrimitiveSelection::is_in_sector_rpc | ( | int | tp_endcap, |
int | tp_station, | ||
int | tp_ring, | ||
int | tp_sector, | ||
int | tp_subsector | ||
) | const |
Definition at line 810 of file PrimitiveSelection.cc.
References alignCSCRings::corr, endcap_, and sector_.
Referenced by get_index_rpc().
void PrimitiveSelection::merge | ( | const std::map< int, TriggerPrimitiveCollection > & | selected_dt_map, |
const std::map< int, TriggerPrimitiveCollection > & | selected_csc_map, | ||
const std::map< int, TriggerPrimitiveCollection > & | selected_rpc_map, | ||
const std::map< int, TriggerPrimitiveCollection > & | selected_gem_map, | ||
const std::map< int, TriggerPrimitiveCollection > & | selected_me0_map, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_prim_map | ||
) | const |
Definition at line 489 of file PrimitiveSelection.cc.
References emtf_assert, newFWLiteAna::found, and cmsswSequenceInfo::tp.
Referenced by SectorProcessor::process_single_bx().
void PrimitiveSelection::merge_no_truncate | ( | const std::map< int, TriggerPrimitiveCollection > & | selected_dt_map, |
const std::map< int, TriggerPrimitiveCollection > & | selected_csc_map, | ||
const std::map< int, TriggerPrimitiveCollection > & | selected_rpc_map, | ||
const std::map< int, TriggerPrimitiveCollection > & | selected_gem_map, | ||
const std::map< int, TriggerPrimitiveCollection > & | selected_me0_map, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_prim_map | ||
) | const |
Definition at line 568 of file PrimitiveSelection.cc.
Referenced by SectorProcessor::process_single_bx().
void PrimitiveSelection::process | ( | T | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_prim_map | ||
) | const |
Referenced by SectorProcessor::process_single_bx().
void PrimitiveSelection::process | ( | emtf::CSCTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_csc_map | ||
) | const |
Definition at line 53 of file PrimitiveSelection.cc.
References L1TMuon::TriggerPrimitive::accessCSCData(), bugME11Dupes_, relativeConstraints::chamber, L1TMuon::TriggerPrimitive::CSCData::cscID, L1TMuon::TriggerPrimitive::detId(), duplicateTheta_, emtf_assert, makeMuonMisalignmentScenario::endcap, L1TMuon::TriggerPrimitive::getBX(), L1TMuon::TriggerPrimitive::getCSCData(), L1TMuon::TriggerPrimitive::getStrip(), L1TMuon::TriggerPrimitive::getWire(), cuy::ii, L1TMuon::TriggerPrimitive::CSCData::keywire, NUM_CSC_CHAMBERS, relativeConstraints::ring, select_csc(), findQualityFiles::size, relativeConstraints::station, and triggerSector().
void PrimitiveSelection::process | ( | emtf::RPCTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_rpc_map | ||
) | const |
Definition at line 150 of file PrimitiveSelection.cc.
References gather_cfg::cout, emtf_assert, mps_fire::end, NUM_RPC_CHAMBERS, RPCDetId::ring(), select_rpc(), RPCDetId::station(), std::swap(), cmsswSequenceInfo::tp, and x.
void PrimitiveSelection::process | ( | emtf::GEMTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_gem_map | ||
) | const |
Definition at line 343 of file PrimitiveSelection.cc.
References emtf_assert, NUM_GEM_CHAMBERS, select_gem(), and x.
void PrimitiveSelection::process | ( | emtf::ME0Tag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_me0_map | ||
) | const |
Definition at line 390 of file PrimitiveSelection.cc.
References emtf_assert, NUM_GEM_CHAMBERS, and select_me0().
void PrimitiveSelection::process | ( | emtf::DTTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_dt_map | ||
) | const |
Definition at line 425 of file PrimitiveSelection.cc.
References L1TMuon::TriggerPrimitive::accessDTData(), duplicateTheta_, emtf_assert, NUM_DT_CHAMBERS, select_dt(), and L1TMuon::TriggerPrimitive::DTData::theta_bti_group.
int PrimitiveSelection::select_csc | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 592 of file PrimitiveSelection.cc.
References bx_, CSCDetId::chamber(), L1TMuon::TriggerPrimitive::detId(), emtf_assert, CSCDetId::endcap(), endcap_, emtf::get_csc_max_pattern_and_quality(), emtf::get_csc_max_slope(), emtf::get_csc_max_strip_and_wire(), get_index_csc(), L1TMuon::TriggerPrimitive::getCSCData(), L1TMuon::kCSC, emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, CSCDetId::ring(), sector_, CSCDetId::station(), L1TMuon::TriggerPrimitive::subsystem(), CSCDetId::triggerSector(), useRun3CCLUT_OTMB_, and useRun3CCLUT_TMB_.
Referenced by process().
int PrimitiveSelection::select_dt | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 1151 of file PrimitiveSelection.cc.
References bx_, L1TMuon::TriggerPrimitive::detId(), emtf_assert, endcap_, get_index_dt(), emtf::get_trigger_csc_ID(), emtf::get_trigger_sector(), L1TMuon::TriggerPrimitive::getDTData(), L1TMuon::kDT, emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, DTChamberId::sector(), sector_, DTChamberId::station(), L1TMuon::TriggerPrimitive::subsystem(), and DTChamberId::wheel().
Referenced by process().
int PrimitiveSelection::select_gem | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 914 of file PrimitiveSelection.cc.
References bx_, GEMDetId::chamber(), L1TMuon::TriggerPrimitive::detId(), emtf_assert, endcap_, get_index_gem(), emtf::get_trigger_csc_ID(), emtf::get_trigger_sector(), L1TMuon::TriggerPrimitive::getGEMData(), L1TMuon::kGEM, GEMDetId::layer(), emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, GEMDetId::region(), GEMDetId::ring(), GEMDetId::roll(), sector_, GEMDetId::station(), and L1TMuon::TriggerPrimitive::subsystem().
Referenced by process().
int PrimitiveSelection::select_me0 | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 1013 of file PrimitiveSelection.cc.
References bx_, ME0DetId::chamber(), L1TMuon::TriggerPrimitive::detId(), emtf_assert, endcap_, get_index_me0(), emtf::get_trigger_csc_ID(), emtf::get_trigger_sector(), L1TMuon::TriggerPrimitive::getME0Data(), L1TMuon::kME0, emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, ME0DetId::region(), sector_, ME0DetId::station(), and L1TMuon::TriggerPrimitive::subsystem().
Referenced by process().
int PrimitiveSelection::select_rpc | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 762 of file PrimitiveSelection.cc.
References bx_, L1TMuon::TriggerPrimitive::detId(), emtf_assert, endcap_, get_index_rpc(), L1TMuon::TriggerPrimitive::getRPCData(), L1TMuon::kRPC, emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, RPCDetId::region(), RPCDetId::ring(), RPCDetId::roll(), RPCDetId::sector(), sector_, RPCDetId::station(), RPCDetId::subsector(), and L1TMuon::TriggerPrimitive::subsystem().
Referenced by process().
|
private |
Definition at line 118 of file PrimitiveSelection.h.
Referenced by configure(), and process().
|
private |
Definition at line 112 of file PrimitiveSelection.h.
Referenced by configure(), is_in_bx_csc(), is_in_bx_dt(), is_in_bx_gem(), is_in_bx_me0(), is_in_bx_rpc(), select_csc(), select_dt(), select_gem(), select_me0(), and select_rpc().
|
private |
Definition at line 114 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_csc().
|
private |
Definition at line 114 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_gem().
|
private |
Definition at line 114 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_me0().
|
private |
Definition at line 114 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_rpc().
|
private |
Definition at line 116 of file PrimitiveSelection.h.
Referenced by configure(), and process().
|
private |
Definition at line 112 of file PrimitiveSelection.h.
Referenced by configure(), is_in_neighbor_sector_csc(), is_in_neighbor_sector_me0(), is_in_neighbor_sector_rpc(), is_in_sector_csc(), is_in_sector_me0(), is_in_sector_rpc(), select_csc(), select_dt(), select_gem(), select_me0(), and select_rpc().
|
private |
Definition at line 116 of file PrimitiveSelection.h.
Referenced by configure(), is_in_neighbor_sector_csc(), is_in_neighbor_sector_me0(), is_in_neighbor_sector_rpc(), and is_in_sector_me0().
|
private |
Definition at line 112 of file PrimitiveSelection.h.
Referenced by configure(), is_in_neighbor_sector_csc(), is_in_neighbor_sector_me0(), is_in_neighbor_sector_rpc(), is_in_sector_csc(), is_in_sector_me0(), is_in_sector_rpc(), select_csc(), select_dt(), select_gem(), select_me0(), and select_rpc().
|
private |
Definition at line 120 of file PrimitiveSelection.h.
Referenced by configure(), and select_csc().
|
private |
Definition at line 121 of file PrimitiveSelection.h.
Referenced by configure(), and select_csc().
|
private |
Definition at line 112 of file PrimitiveSelection.h.
Referenced by configure().