#include <PrimitiveSelection.h>
Public Member Functions | |
void | cluster_gem (const TriggerPrimitiveCollection &muon_primitives, TriggerPrimitiveCollection &clus_muon_primitives) const |
void | cluster_rpc (const TriggerPrimitiveCollection &muon_primitives, TriggerPrimitiveCollection &clus_muon_primitives) const |
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_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_sector, int tp_subsector) const |
void | merge (std::map< int, TriggerPrimitiveCollection > &selected_csc_map, std::map< int, TriggerPrimitiveCollection > &selected_rpc_map, std::map< int, TriggerPrimitiveCollection > &selected_gem_map, std::map< int, TriggerPrimitiveCollection > &selected_prim_map) const |
void | merge_no_truncate (std::map< int, TriggerPrimitiveCollection > &selected_csc_map, std::map< int, TriggerPrimitiveCollection > &selected_rpc_map, 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::cluster_gem | ( | const TriggerPrimitiveCollection & | muon_primitives, |
TriggerPrimitiveCollection & | clus_muon_primitives | ||
) | const |
Definition at line 812 of file PrimitiveSelection.cc.
References L1TMuon::TriggerPrimitive::kGEM, tier0::unique(), and x.
Referenced by process().
void PrimitiveSelection::cluster_rpc | ( | const TriggerPrimitiveCollection & | muon_primitives, |
TriggerPrimitiveCollection & | clus_muon_primitives | ||
) | const |
Definition at line 626 of file PrimitiveSelection.cc.
References L1TMuon::TriggerPrimitive::kRPC, tier0::unique(), and x.
Referenced by process().
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 18 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 603 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 1011 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 775 of file PrimitiveSelection.cc.
Referenced by select_rpc().
bool PrimitiveSelection::is_in_bx_csc | ( | int | tp_bx | ) | const |
Definition at line 597 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 1006 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 770 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 577 of file PrimitiveSelection.cc.
References endcap_, includeNeighbor_, and sector_.
Referenced by 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 1001 of file PrimitiveSelection.cc.
Referenced by select_gem().
bool PrimitiveSelection::is_in_neighbor_sector_rpc | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_subsector | ||
) | const |
Definition at line 766 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 573 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 996 of file PrimitiveSelection.cc.
References is_in_sector_csc().
Referenced by select_gem().
bool PrimitiveSelection::is_in_sector_rpc | ( | int | tp_endcap, |
int | tp_sector, | ||
int | tp_subsector | ||
) | const |
Definition at line 756 of file PrimitiveSelection.cc.
References corr, endcap_, and sector_.
Referenced by select_rpc().
void PrimitiveSelection::merge | ( | std::map< int, TriggerPrimitiveCollection > & | selected_csc_map, |
std::map< int, TriggerPrimitiveCollection > & | selected_rpc_map, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_gem_map, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_prim_map | ||
) | const |
Definition at line 377 of file PrimitiveSelection.cc.
References runEdmFileComparison::found, SiStripPI::max, RPCDetId::ring(), findQualityFiles::size, and relativeConstraints::station.
Referenced by SectorProcessor::process_single_bx().
void PrimitiveSelection::merge_no_truncate | ( | std::map< int, TriggerPrimitiveCollection > & | selected_csc_map, |
std::map< int, TriggerPrimitiveCollection > & | selected_rpc_map, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_gem_map, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_prim_map | ||
) | const |
Definition at line 483 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 ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), SectorProcessor::process_single_bx(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
void PrimitiveSelection::process | ( | CSCTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_csc_map | ||
) | const |
Definition at line 42 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().
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
void PrimitiveSelection::process | ( | RPCTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_rpc_map | ||
) | const |
Definition at line 156 of file PrimitiveSelection.cc.
References cluster_rpc(), end, NUM_RPC_CHAMBERS, select_rpc(), std::swap(), and x.
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
void PrimitiveSelection::process | ( | GEMTag | tag, |
const TriggerPrimitiveCollection & | muon_primitives, | ||
std::map< int, TriggerPrimitiveCollection > & | selected_gem_map | ||
) | const |
Definition at line 300 of file PrimitiveSelection.cc.
References cluster_gem(), NUM_GEM_CHAMBERS, select_gem(), and x.
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().
int PrimitiveSelection::select_csc | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 507 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 891 of file PrimitiveSelection.cc.
References relativeConstraints::chamber, GEMDetId::chamber(), L1TMuon::TriggerPrimitive::detId(), get_index_gem(), L1TMuon::TriggerPrimitive::getGEMData(), is_in_bx_gem(), is_in_neighbor_sector_gem(), is_in_sector_gem(), L1TMuon::TriggerPrimitive::kGEM, GEMDetId::layer(), emtf::MAX_ENDCAP, emtf::MAX_TRIGSECTOR, emtf::MIN_ENDCAP, emtf::MIN_TRIGSECTOR, GEMDetId::region(), mps_fire::result, GEMDetId::ring(), relativeConstraints::ring, GEMDetId::roll(), GEMDetId::station(), relativeConstraints::station, and L1TMuon::TriggerPrimitive::subsystem().
Referenced by process().
int PrimitiveSelection::select_rpc | ( | const TriggerPrimitive & | muon_primitive | ) | const |
Definition at line 705 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(), RPCDetId::station(), RPCDetId::subsector(), and L1TMuon::TriggerPrimitive::subsystem().
Referenced by process().
|
private |
Definition at line 88 of file PrimitiveSelection.h.
Referenced by configure(), and process().
|
private |
Definition at line 82 of file PrimitiveSelection.h.
Referenced by configure(), is_in_bx_csc(), is_in_bx_gem(), and is_in_bx_rpc().
|
private |
Definition at line 84 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_csc().
|
private |
Definition at line 84 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_gem().
|
private |
Definition at line 84 of file PrimitiveSelection.h.
Referenced by configure(), and is_in_bx_rpc().
|
private |
Definition at line 86 of file PrimitiveSelection.h.
Referenced by configure(), and process().
|
private |
Definition at line 82 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 86 of file PrimitiveSelection.h.
Referenced by configure(), is_in_neighbor_sector_csc(), and is_in_neighbor_sector_rpc().
|
private |
Definition at line 82 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().