#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=0) 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 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 | matchSimHitsToSimTrack () |
Private Attributes | |
std::map< unsigned int, std::set< int > > | detids_to_copads_ |
std::map< unsigned int, std::set< int > > | detids_to_pads_ |
edm::ESHandle< GEMGeometry > | gem_geom_ |
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 14 of file GEMSimHitMatcher.h.
GEMSimHitMatcher::GEMSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::discardEleHits_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), MuonSimHitMatcher::simHitInput_, MuonSimHitMatcher::simHitPSet_, MuonSimHitMatcher::simMuOnly_, and MuonSimHitMatcher::verbose_.
|
inline |
Definition at line 20 of file GEMSimHitMatcher.h.
References chamberIds(), detIds(), detIdsCoincidences(), MillePedeFileConverter_cfg::e, MuonHitHelper::GEM_ALL, hitCoPadsInDetId(), hitPadsInDetId(), hitPartitions(), hitsInSuperChamber(), hitStation(), hitStripsInDetId(), init(), match(), matchSimHitsToSimTrack(), nCoincidencePadsWithHits(), nLayersWithHitsInSuperChamber(), nPadsWithHits(), nStations(), simHitsGEMCentralPosition(), simHitsMeanStrip(), superChamberIds(), superChamberIdsCoincidences(), lumiQTWidget::t, and findQualityFiles::v.
std::set< unsigned int > GEMSimHitMatcher::chamberIds | ( | int | gem_type = MuonHitHelper::GEM_ALL | ) | const |
Definition at line 190 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(), and ~GEMSimHitMatcher().
std::set< unsigned int > GEMSimHitMatcher::detIds | ( | int | gem_type = MuonHitHelper::GEM_ALL | ) | const |
Definition at line 170 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(), nPadsWithHits(), and ~GEMSimHitMatcher().
std::set< unsigned int > GEMSimHitMatcher::detIdsCoincidences | ( | ) | const |
Definition at line 184 of file GEMSimHitMatcher.cc.
References detids_to_copads_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
Referenced by nCoincidencePadsWithHits(), and ~GEMSimHitMatcher().
std::set< int > GEMSimHitMatcher::hitCoPadsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 327 of file GEMSimHitMatcher.cc.
References detids_to_copads_, and none.
Referenced by nCoincidencePadsWithHits(), and ~GEMSimHitMatcher().
std::set< int > GEMSimHitMatcher::hitPadsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 321 of file GEMSimHitMatcher.cc.
References detids_to_pads_, and none.
Referenced by nPadsWithHits(), and ~GEMSimHitMatcher().
std::set< int > GEMSimHitMatcher::hitPartitions | ( | ) | const |
Definition at line 333 of file GEMSimHitMatcher.cc.
References detIds(), mps_fire::result, and GEMDetId::roll().
Referenced by ~GEMSimHitMatcher().
const edm::PSimHitContainer & GEMSimHitMatcher::hitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 219 of file GEMSimHitMatcher.cc.
References triggerObjects_cff::id, MuonHitHelper::isGEM(), MuonSimHitMatcher::no_hits_, and superchamber_to_hits_.
Referenced by match(), nLayersWithHitsInSuperChamber(), and ~GEMSimHitMatcher().
bool GEMSimHitMatcher::hitStation | ( | int | st, |
int | nlayers | ||
) | const |
Definition at line 242 of file GEMSimHitMatcher.cc.
References chamberIds(), triggerObjects_cff::id, nLayersWithHitsInSuperChamber(), and relativeConstraints::station.
Referenced by nStations(), and ~GEMSimHitMatcher().
std::set< int > GEMSimHitMatcher::hitStripsInDetId | ( | unsigned int | detid, |
int | margin_n_strips = 0 |
||
) | const |
Definition at line 298 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, and mps_fire::result.
Referenced by match(), and ~GEMSimHitMatcher().
void GEMSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 18 of file GEMSimHitMatcher.cc.
References gem_geom_, MuonSimHitMatcher::geometry_, edm::EventSetup::get(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::init(), and edm::ESHandleBase::isValid().
Referenced by ~GEMSimHitMatcher().
do the matching
Definition at line 32 of file GEMSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, detIds(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), hitsInSuperChamber(), hitStripsInDetId(), triggerObjects_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), nCoincidencePadsWithHits(), AlCaHLTBitMon_ParallelJobs::p, MuonSimHitMatcher::simHitsMeanPosition(), RecoTauPiZeroBuilderPlugins_cfi::strips, superchamber_to_hits_, superChamberIds(), MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by ~GEMSimHitMatcher().
|
private |
Definition at line 74 of file GEMSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, edmIntegrityCheck::d, MuonSimHitMatcher::detid_to_hits_, detIds(), detids_to_copads_, detids_to_pads_, MuonSimHitMatcher::discardEleHits_, MuonSimHitMatcher::geometry_, h, hfClusterShapes_cfi::hits, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, globals_cff::id1, globals_cff::id2, GEMDetId::layer(), or, BPhysicsValidation_cfi::pdgid, GEMDetId::region(), GEMDetId::ring(), GEMDetId::roll(), MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, GEMDetId::station(), superchamber_to_hits_, MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by match(), and ~GEMSimHitMatcher().
int GEMSimHitMatcher::nCoincidencePadsWithHits | ( | ) | const |
Definition at line 353 of file GEMSimHitMatcher.cc.
References detIdsCoincidences(), hitCoPadsInDetId(), and mps_fire::result.
Referenced by match(), and ~GEMSimHitMatcher().
int GEMSimHitMatcher::nLayersWithHitsInSuperChamber | ( | unsigned int | detid | ) | const |
Definition at line 232 of file GEMSimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, and hitsInSuperChamber().
Referenced by hitStation(), and ~GEMSimHitMatcher().
int GEMSimHitMatcher::nPadsWithHits | ( | ) | const |
Definition at line 344 of file GEMSimHitMatcher.cc.
References detIds(), hitPadsInDetId(), and mps_fire::result.
Referenced by ~GEMSimHitMatcher().
int GEMSimHitMatcher::nStations | ( | int | nl = 2 | ) | const |
Definition at line 255 of file GEMSimHitMatcher.cc.
References hitStation().
Referenced by ~GEMSimHitMatcher().
float GEMSimHitMatcher::simHitsGEMCentralPosition | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 259 of file GEMSimHitMatcher.cc.
References central, MuonSimHitMatcher::geometry_, runTauDisplay::gp, h, TrackingGeometry::idToDet(), MuonHitHelper::isGEM(), gen::n, PV3DBase< T, PVType, FrameType >::perp(), and GeomDet::toGlobal().
Referenced by ~GEMSimHitMatcher().
float GEMSimHitMatcher::simHitsMeanStrip | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 281 of file GEMSimHitMatcher.cc.
References edmIntegrityCheck::d, f, MuonSimHitMatcher::geometry_, h, and gen::n.
Referenced by ~GEMSimHitMatcher().
std::set< unsigned int > GEMSimHitMatcher::superChamberIds | ( | ) | const |
Definition at line 204 of file GEMSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superchamber_to_hits_.
Referenced by match(), and ~GEMSimHitMatcher().
std::set< unsigned int > GEMSimHitMatcher::superChamberIdsCoincidences | ( | ) | const |
Definition at line 210 of file GEMSimHitMatcher.cc.
References detids_to_copads_, AlCaHLTBitMon_ParallelJobs::p, DetId::rawId(), mps_fire::result, and GEMDetId::superChamberId().
Referenced by ~GEMSimHitMatcher().
|
private |
Definition at line 87 of file GEMSimHitMatcher.h.
Referenced by detIdsCoincidences(), hitCoPadsInDetId(), matchSimHitsToSimTrack(), and superChamberIdsCoincidences().
|
private |
Definition at line 84 of file GEMSimHitMatcher.h.
Referenced by hitPadsInDetId(), and matchSimHitsToSimTrack().
|
private |
Definition at line 79 of file GEMSimHitMatcher.h.
Referenced by init().
|
private |
Definition at line 81 of file GEMSimHitMatcher.h.
Referenced by hitsInSuperChamber(), match(), matchSimHitsToSimTrack(), and superChamberIds().