#include <PrimitiveSelection.h>
Public Member Functions | |
void | configure (int verbose, int endcap, int sector, int bx, int bxShiftCSC, int bxShiftRPC, int bxShiftGEM, bool includeNeighbor, bool duplicateTheta, bool bugME11Dupes) |
int | get_index_csc (int tp_subsector, int tp_station, int tp_csc_ID, bool is_neighbor) const |
int | get_index_gem (int tp_subsector, int tp_station, int tp_csc_ID, bool is_neighbor) const |
int | get_index_rpc (int tp_station, int tp_ring, int tp_subsector, bool is_neighbor) const |
bool | is_in_bx_csc (int tp_bx) const |
bool | is_in_bx_gem (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_gem (int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_csc_ID) 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_gem (int tp_endcap, int tp_sector) 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_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 |
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 |
template<typename T > | |
void | process (T tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const |
template<> | |
void | process (CSCTag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_csc_map) const |
template<> | |
void | process (RPCTag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_rpc_map) const |
template<> | |
void | process (GEMTag tag, const TriggerPrimitiveCollection &muon_primitives, std::map< int, TriggerPrimitiveCollection > &selected_gem_map) const |
int | select_csc (const TriggerPrimitive &muon_primitive) const |
int | select_gem (const TriggerPrimitive &muon_primitive) const |
int | select_rpc (const TriggerPrimitive &muon_primitive) const |
Private Attributes | |
bool | bugME11Dupes_ |
int | bx_ |
int | bxShiftCSC_ |
int | bxShiftGEM_ |
int | bxShiftRPC_ |
bool | duplicateTheta_ |
int | endcap_ |
bool | includeNeighbor_ |
int | sector_ |
int | verbose_ |
Definition at line 7 of file PrimitiveSelection.h.
void PrimitiveSelection::configure | ( | int | verbose, |
int | endcap, | ||
int | sector, | ||
int | bx, | ||
int | bxShiftCSC, | ||
int | bxShiftRPC, | ||
int | bxShiftGEM, | ||
bool | includeNeighbor, | ||
bool | duplicateTheta, | ||
bool | bugME11Dupes | ||
) |
Definition at line 21 of file PrimitiveSelection.cc.
References bugME11Dupes_, bx_, bxShiftCSC_, bxShiftGEM_, bxShiftRPC_, duplicateTheta_, makeMuonMisalignmentScenario::endcap, endcap_, includeNeighbor_, sector_, verbose, and verbose_.
Referenced by SectorProcessor::process_single_bx().
int PrimitiveSelection::get_index_csc | ( | int | tp_subsector, |
int | tp_station, | ||
int | tp_csc_ID, | ||
bool | is_neighbor | ||
) | const |
Definition at line 605 of file PrimitiveSelection.cc.
Referenced by get_index_gem(), and select_csc().
int PrimitiveSelection::get_index_gem | ( | int | tp_subsector, |
int | tp_station, | ||
int | tp_csc_ID, | ||
bool | is_neighbor | ||
) | const |
Definition at line 867 of file PrimitiveSelection.cc.
References get_index_csc().
Referenced by select_gem().
int PrimitiveSelection::get_index_rpc | ( | int | tp_station, |
int | tp_ring, | ||
int | tp_subsector, | ||
bool | is_neighbor | ||
) | const |
Definition at line 708 of file PrimitiveSelection.cc.
Referenced by select_rpc().
bool PrimitiveSelection::is_in_bx_csc | ( | int | tp_bx | ) | const |
Definition at line 599 of file PrimitiveSelection.cc.
References bx_, and bxShiftCSC_.
Referenced by select_csc().
bool PrimitiveSelection::is_in_bx_gem | ( | int | tp_bx | ) | const |
Definition at line 862 of file PrimitiveSelection.cc.
References bx_, and bxShiftGEM_.
Referenced by select_gem().
bool PrimitiveSelection::is_in_bx_rpc | ( | int | tp_bx | ) | const |
Definition at line 703 of file PrimitiveSelection.cc.
References bx_, and bxShiftRPC_.
Referenced by select_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 579 of file PrimitiveSelection.cc.
References endcap_, includeNeighbor_, and sector_.
Referenced by is_in_neighbor_sector_gem(), and select_csc().
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 857 of file PrimitiveSelection.cc.
References is_in_neighbor_sector_csc().
Referenced by select_gem().
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 695 of file PrimitiveSelection.cc.
References endcap_, includeNeighbor_, and sector_.
Referenced by select_rpc().
bool PrimitiveSelection::is_in_sector_csc | ( | int | tp_endcap, |
int | tp_sector | ||
) | const |
Definition at line 575 of file PrimitiveSelection.cc.
References endcap_, and sector_.
Referenced by is_in_sector_gem(), and select_csc().
bool PrimitiveSelection::is_in_sector_gem | ( | int | tp_endcap, |
int | tp_sector | ||
) | const |
Definition at line 852 of file PrimitiveSelection.cc.
References is_in_sector_csc().
Referenced by select_gem().
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 684 of file PrimitiveSelection.cc.
References corr, endcap_, and sector_.
Referenced by select_rpc().
void PrimitiveSelection::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 |
Definition at line 393 of file PrimitiveSelection.cc.
References runEdmFileComparison::found.
Referenced by SectorProcessor::process_single_bx().
void PrimitiveSelection::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 |
Definition at line 474 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 | ( | CSCTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_csc_map | ||
) | const |
Definition at line 45 of file PrimitiveSelection.cc.
References L1TMuon::TriggerPrimitive::accessCSCData(), bugME11Dupes_, relativeConstraints::chamber, L1TMuon::TriggerPrimitive::CSCData::cscID, L1TMuon::TriggerPrimitive::detId(), duplicateTheta_, makeMuonMisalignmentScenario::endcap, L1TMuon::TriggerPrimitive::getBX(), L1TMuon::TriggerPrimitive::getCSCData(), L1TMuon::TriggerPrimitive::getStrip(), L1TMuon::TriggerPrimitive::getWire(), cuy::ii, L1TMuon::TriggerPrimitive::kCSC, L1TMuon::TriggerPrimitive::CSCData::keywire, NUM_CSC_CHAMBERS, L1TMuon::TriggerPrimitive::CSCData::pattern, L1TMuon::TriggerPrimitive::CSCData::quality, relativeConstraints::ring, select_csc(), findQualityFiles::size, relativeConstraints::station, L1TMuon::TriggerPrimitive::subsystem(), and triggerSector().
void PrimitiveSelection::process | ( | RPCTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_rpc_map | ||
) | const |
Definition at line 169 of file PrimitiveSelection.cc.
References gather_cfg::cout, end, NUM_RPC_CHAMBERS, select_rpc(), std::swap(), and x.
void PrimitiveSelection::process | ( | GEMTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_gem_map | ||
) | const |
Definition at line 323 of file PrimitiveSelection.cc.
References NUM_GEM_CHAMBERS, select_gem(), and x.
int PrimitiveSelection::select_csc | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 493 of file PrimitiveSelection.cc.
References CSCDetId::chamber(), L1TMuon::TriggerPrimitive::detId(), CSCDetId::endcap(), get_index_csc(), L1TMuon::TriggerPrimitive::getCSCData(), is_in_bx_csc(), is_in_neighbor_sector_csc(), is_in_sector_csc(), L1TMuon::TriggerPrimitive::kCSC, emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, CSCDetId::ring(), CSCDetId::station(), L1TMuon::TriggerPrimitive::subsystem(), and CSCDetId::triggerSector().
Referenced by process().
int PrimitiveSelection::select_gem | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 745 of file PrimitiveSelection.cc.
References L1TMuon::TriggerPrimitive::GEMData::bx, EMTFGEMDetId::chamber(), relativeConstraints::chamber, emtf::construct_EMTFGEMDetId(), get_index_gem(), L1TMuon::TriggerPrimitive::getGEMData(), is_in_bx_gem(), is_in_neighbor_sector_gem(), is_in_sector_gem(), L1TMuon::TriggerPrimitive::kGEM, EMTFGEMDetId::layer(), emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, L1TMuon::TriggerPrimitive::GEMData::pad, EMTFGEMDetId::region(), mps_fire::result, EMTFGEMDetId::ring(), relativeConstraints::ring, EMTFGEMDetId::roll(), EMTFGEMDetId::station(), relativeConstraints::station, and L1TMuon::TriggerPrimitive::subsystem().
Referenced by process().
int PrimitiveSelection::select_rpc | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 628 of file PrimitiveSelection.cc.
References L1TMuon::TriggerPrimitive::detId(), get_index_rpc(), L1TMuon::TriggerPrimitive::getRPCData(), is_in_bx_rpc(), is_in_neighbor_sector_rpc(), is_in_sector_rpc(), L1TMuon::TriggerPrimitive::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 84 of file PrimitiveSelection.h.
Referenced by configure(), and process().
|
private |
Definition at line 78 of file PrimitiveSelection.h.
Referenced by configure(), is_in_bx_csc(), is_in_bx_gem(), and is_in_bx_rpc().
|
private |
Definition at line 80 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_csc().
|
private |
Definition at line 80 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_gem().
|
private |
Definition at line 80 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_rpc().
|
private |
Definition at line 82 of file PrimitiveSelection.h.
Referenced by configure(), and process().
|
private |
Definition at line 78 of file PrimitiveSelection.h.
Referenced by configure(), is_in_neighbor_sector_csc(), is_in_neighbor_sector_rpc(), is_in_sector_csc(), and is_in_sector_rpc().
|
private |
Definition at line 82 of file PrimitiveSelection.h.
Referenced by configure(), is_in_neighbor_sector_csc(), and is_in_neighbor_sector_rpc().
|
private |
Definition at line 78 of file PrimitiveSelection.h.
Referenced by configure(), is_in_neighbor_sector_csc(), is_in_neighbor_sector_rpc(), is_in_sector_csc(), is_in_sector_rpc(), and select_rpc().
|
private |
Definition at line 78 of file PrimitiveSelection.h.
Referenced by configure().