#include <GEMSimHitMatcher.h>
Public Member Functions | |
std::set< unsigned int > | chamberIds (int gem_type=MuonHitHelper::GEM_ALL) const |
std::set< unsigned int > | detIds (int gem_type=MuonHitHelper::GEM_ALL) const |
std::set< unsigned int > | detIdsCoincidences () const |
GEMSimHitMatcher (const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC) | |
std::set< int > | hitCoPadsInDetId (unsigned int) const |
std::set< int > | hitPadsInDetId (unsigned int) const |
std::set< int > | hitPartitions () const |
const edm::PSimHitContainer & | hitsInSuperChamber (unsigned int) const |
bool | hitStation (int, int) const |
std::set< int > | hitStripsInDetId (unsigned int, int margin_n_strips=1) const |
void | init (const edm::Event &e, const edm::EventSetup &eventSetup) |
initialize the event More... | |
void | match (const SimTrack &t, const SimVertex &v) |
do the matching More... | |
int | nCoincidencePadsWithHits () const |
int | nLayersWithHitsInSuperChamber (unsigned int) const |
int | nPadsWithHits () const |
int | nStations (int nl=2) const |
float | simHitsGEMCentralPosition (const edm::PSimHitContainer &sim_hits) const |
float | simHitsMeanStrip (const edm::PSimHitContainer &sim_hits) const |
std::set< unsigned int > | superChamberIds () const |
std::set< unsigned int > | superChamberIdsCoincidences () const |
~GEMSimHitMatcher () | |
Public Member Functions inherited from MuonSimHitMatcher | |
std::set< unsigned int > | chamberIds (int type=0) const |
std::set< unsigned int > | detIds (int type=0) const |
const TrackingGeometry * | geometry () |
const edm::PSimHitContainer & | hitsInChamber (unsigned int) const |
const edm::PSimHitContainer & | hitsInDetId (unsigned int) const |
void | init (const edm::Event &e, const edm::EventSetup &eventSetup) |
initialize the event More... | |
void | match (const SimTrack &t, const SimVertex &v) |
do the matching More... | |
MuonSimHitMatcher (const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC) | |
const edm::PSimHitContainer & | simHits (int) const |
GlobalVector | simHitsMeanMomentum (const edm::PSimHitContainer &sim_hits) const |
GlobalPoint | simHitsMeanPosition (const edm::PSimHitContainer &sim_hits) const |
GlobalPoint | simHitsMeanPositionStation (int n) const |
~MuonSimHitMatcher () | |
Private Member Functions | |
void | clear () |
void | matchSimHitsToSimTrack () |
Private Attributes | |
std::map< unsigned int, std::set< int > > | detids_to_copads_ |
std::map< unsigned int, std::set< int > > | detids_to_pads_ |
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > | geomToken_ |
std::map< unsigned int, edm::PSimHitContainer > | superchamber_to_hits_ |
Description: Matching of GEM SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 16 of file GEMSimHitMatcher.h.
GEMSimHitMatcher::GEMSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::discardEleHits_, geomToken_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), MuonSimHitMatcher::simHitInput_, MuonSimHitMatcher::simHitPSet_, MuonSimHitMatcher::simMuOnly_, and MuonSimHitMatcher::verbose_.
|
inline |
Definition at line 22 of file GEMSimHitMatcher.h.
std::set< unsigned int > GEMSimHitMatcher::chamberIds | ( | int | gem_type = MuonHitHelper::GEM_ALL | ) | const |
Definition at line 184 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, GEMDetId::ring(), GEMDetId::station(), and MuonHitHelper::toGEMType().
Referenced by hitStation().
|
private |
Definition at line 352 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::clear(), detids_to_copads_, detids_to_pads_, and superchamber_to_hits_.
Referenced by match().
std::set< unsigned int > GEMSimHitMatcher::detIds | ( | int | gem_type = MuonHitHelper::GEM_ALL | ) | const |
Definition at line 163 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::detid_to_hits_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, GEMDetId::ring(), GEMDetId::station(), and MuonHitHelper::toGEMType().
Referenced by hitPartitions(), match(), matchSimHitsToSimTrack(), and nPadsWithHits().
std::set< unsigned int > GEMSimHitMatcher::detIdsCoincidences | ( | ) | const |
Definition at line 177 of file GEMSimHitMatcher.cc.
References detids_to_copads_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
Referenced by nCoincidencePadsWithHits().
std::set< int > GEMSimHitMatcher::hitCoPadsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 316 of file GEMSimHitMatcher.cc.
References detids_to_copads_, and none.
Referenced by nCoincidencePadsWithHits().
std::set< int > GEMSimHitMatcher::hitPadsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 309 of file GEMSimHitMatcher.cc.
References detids_to_pads_, and none.
Referenced by nPadsWithHits().
std::set< int > GEMSimHitMatcher::hitPartitions | ( | ) | const |
Definition at line 323 of file GEMSimHitMatcher.cc.
References detIds(), mps_fire::result, and GEMDetId::roll().
const edm::PSimHitContainer & GEMSimHitMatcher::hitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 214 of file GEMSimHitMatcher.cc.
References gpuClustering::id, MuonHitHelper::isGEM(), MuonSimHitMatcher::no_hits_, and superchamber_to_hits_.
Referenced by match(), and nLayersWithHitsInSuperChamber().
bool GEMSimHitMatcher::hitStation | ( | int | st, |
int | nlayers | ||
) | const |
Definition at line 235 of file GEMSimHitMatcher.cc.
References chamberIds(), gpuClustering::id, nLayersWithHitsInSuperChamber(), and relativeConstraints::station.
Referenced by nStations().
std::set< int > GEMSimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 1 |
||
) | const |
Definition at line 290 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), gpuClustering::id, mps_fire::result, and contentValuesCheck::ss.
Referenced by match().
void GEMSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 17 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, geomToken_, edm::EventSetup::getData(), and MuonSimHitMatcher::init().
do the matching
Definition at line 23 of file GEMSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, clear(), detIds(), MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), hitsInSuperChamber(), hitStripsInDetId(), gpuClustering::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), CoreSimTrack::momentum(), nCoincidencePadsWithHits(), AlCaHLTBitMon_ParallelJobs::p, MuonSimHitMatcher::simHitsMeanPosition(), DigiDM_cff::strips, superchamber_to_hits_, superChamberIds(), MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
|
private |
Definition at line 63 of file GEMSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, ztail::d, MuonSimHitMatcher::detid_to_hits_, detIds(), detids_to_copads_, detids_to_pads_, MuonSimHitMatcher::discardEleHits_, MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), gpuClustering::id, GEMDetId::layer(), or, GEMDetId::region(), GEMDetId::ring(), GEMDetId::roll(), MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, GEMDetId::station(), superchamber_to_hits_, MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by match().
int GEMSimHitMatcher::nCoincidencePadsWithHits | ( | ) | const |
Definition at line 343 of file GEMSimHitMatcher.cc.
References detIdsCoincidences(), hitCoPadsInDetId(), and mps_fire::result.
Referenced by match().
int GEMSimHitMatcher::nLayersWithHitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 225 of file GEMSimHitMatcher.cc.
References h, and hitsInSuperChamber().
Referenced by hitStation().
int GEMSimHitMatcher::nPadsWithHits | ( | ) | const |
Definition at line 334 of file GEMSimHitMatcher.cc.
References detIds(), hitPadsInDetId(), and mps_fire::result.
int GEMSimHitMatcher::nStations | ( | int | nl = 2 | ) | const |
Definition at line 250 of file GEMSimHitMatcher.cc.
References hitStation().
float GEMSimHitMatcher::simHitsGEMCentralPosition | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 252 of file GEMSimHitMatcher.cc.
References central, MuonSimHitMatcher::geometry_, runTauDisplay::gp, h, TrackingGeometry::idToDet(), MuonHitHelper::isGEM(), dqmiodumpmetadata::n, PV3DBase< T, PVType, FrameType >::perp(), and GeomDet::toGlobal().
float GEMSimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 273 of file GEMSimHitMatcher.cc.
References ztail::d, validate-o2o-wbm::f, MuonSimHitMatcher::geometry_, h, and dqmiodumpmetadata::n.
std::set< unsigned int > GEMSimHitMatcher::superChamberIds | ( | ) | const |
Definition at line 198 of file GEMSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superchamber_to_hits_.
Referenced by match().
std::set< unsigned int > GEMSimHitMatcher::superChamberIdsCoincidences | ( | ) | const |
Definition at line 205 of file GEMSimHitMatcher.cc.
References detids_to_copads_, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), mps_fire::result, and GEMDetId::superChamberId().
|
private |
Definition at line 90 of file GEMSimHitMatcher.h.
Referenced by clear(), detIdsCoincidences(), hitCoPadsInDetId(), matchSimHitsToSimTrack(), and superChamberIdsCoincidences().
|
private |
Definition at line 87 of file GEMSimHitMatcher.h.
Referenced by clear(), hitPadsInDetId(), and matchSimHitsToSimTrack().
|
private |
Definition at line 82 of file GEMSimHitMatcher.h.
Referenced by GEMSimHitMatcher(), and init().
|
private |
Definition at line 84 of file GEMSimHitMatcher.h.
Referenced by clear(), hitsInSuperChamber(), match(), matchSimHitsToSimTrack(), and superChamberIds().