#include <DTSimHitMatcher.h>
Public Member Functions | |
std::set< unsigned int > | chamberIds (int type=MuonHitHelper::DT_ALL) const |
std::set< unsigned int > | chamberIdsStation (int station) const |
std::set< unsigned int > | detIds (int type=MuonHitHelper::DT_ALL) const |
void | dtChamberIdsToString (const std::set< unsigned int > &) const |
DTSimHitMatcher (const edm::ParameterSet &iPS, edm::ConsumesCollector &&iC) | |
const edm::PSimHitContainer & | hitsInChamber (unsigned int) const |
const edm::PSimHitContainer & | hitsInLayer (unsigned int) const |
const edm::PSimHitContainer & | hitsInSuperLayer (unsigned int) const |
bool | hitStation (int, int, int) const |
std::set< unsigned int > | hitWiresInDTChamberId (unsigned int, int margin_n_wires=0) const |
std::set< unsigned int > | hitWiresInDTLayerId (unsigned int, int margin_n_wires=0) const |
std::set< unsigned int > | hitWiresInDTSuperLayerId (unsigned int, int margin_n_wires=0) const |
void | init (const edm::Event &e, const edm::EventSetup &eventSetup) |
initialize the event More... | |
std::set< unsigned int > | layerIds () const |
void | match (const SimTrack &t, const SimVertex &v) |
do the matching More... | |
int | nCellsWithHitsInLayer (unsigned int) const |
int | nLayersWithHitsInChamber (unsigned int) const |
int | nLayersWithHitsInSuperLayer (unsigned int) const |
int | nStations (int nsl=1, int nl=3) const |
int | nSuperLayersWithHitsInChamber (unsigned int) const |
GlobalPoint | simHitsMeanPositionStation (int n) const |
float | simHitsMeanWire (const edm::PSimHitContainer &sim_hits) const |
std::set< unsigned int > | superlayerIds () const |
~DTSimHitMatcher () | |
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 | |
edm::ESHandle< DTGeometry > | dt_geom_ |
std::map< unsigned int, edm::PSimHitContainer > | layer_to_hits_ |
std::map< unsigned int, edm::PSimHitContainer > | superlayer_to_hits_ |
Description: Matching of DT SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 14 of file DTSimHitMatcher.h.
DTSimHitMatcher::DTSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file DTSimHitMatcher.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 DTSimHitMatcher.h.
std::set< unsigned int > DTSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::DT_ALL | ) | const |
Definition at line 88 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, DTChamberId::station(), MuonHitHelper::toDTType(), and DTChamberId::wheel().
Referenced by chamberIdsStation(), and hitStation().
std::set< unsigned int > DTSimHitMatcher::chamberIdsStation | ( | int | station | ) | const |
Definition at line 296 of file DTSimHitMatcher.cc.
References chamberIds(), MuonHitHelper::DT_MB01, MuonHitHelper::DT_MB02, MuonHitHelper::DT_MB03, MuonHitHelper::DT_MB04, MuonHitHelper::DT_MB11n, MuonHitHelper::DT_MB11p, MuonHitHelper::DT_MB12n, MuonHitHelper::DT_MB12p, MuonHitHelper::DT_MB13n, MuonHitHelper::DT_MB13p, MuonHitHelper::DT_MB14n, MuonHitHelper::DT_MB14p, MuonHitHelper::DT_MB21n, MuonHitHelper::DT_MB21p, MuonHitHelper::DT_MB22n, MuonHitHelper::DT_MB22p, MuonHitHelper::DT_MB23n, MuonHitHelper::DT_MB23p, MuonHitHelper::DT_MB24n, MuonHitHelper::DT_MB24p, p1, p2, p3, p4, mps_fire::result, and relativeConstraints::station.
std::set< unsigned int > DTSimHitMatcher::detIds | ( | int | type = MuonHitHelper::DT_ALL | ) | const |
Definition at line 74 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::detid_to_hits_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, DTChamberId::station(), MuonHitHelper::toDTType(), and DTChamberId::wheel().
Referenced by match().
void DTSimHitMatcher::dtChamberIdsToString | ( | const std::set< unsigned int > & | set | ) | const |
const edm::PSimHitContainer & DTSimHitMatcher::hitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 136 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, triggerObjects_cff::id, MuonHitHelper::isDT(), and MuonSimHitMatcher::no_hits_.
const edm::PSimHitContainer & DTSimHitMatcher::hitsInLayer | ( | unsigned int | detid | ) | const |
Definition at line 116 of file DTSimHitMatcher.cc.
References triggerObjects_cff::id, MuonHitHelper::isDT(), layer_to_hits_, and MuonSimHitMatcher::no_hits_.
Referenced by nCellsWithHitsInLayer().
const edm::PSimHitContainer & DTSimHitMatcher::hitsInSuperLayer | ( | unsigned int | detid | ) | const |
Definition at line 126 of file DTSimHitMatcher.cc.
References triggerObjects_cff::id, MuonHitHelper::isDT(), MuonSimHitMatcher::no_hits_, and superlayer_to_hits_.
Referenced by nLayersWithHitsInSuperLayer().
bool DTSimHitMatcher::hitStation | ( | int | st, |
int | nsuperlayers, | ||
int | nlayers | ||
) | const |
Definition at line 146 of file DTSimHitMatcher.cc.
References chamberIds(), triggerObjects_cff::id, nlayers, nLayersWithHitsInChamber(), nSuperLayersWithHitsInChamber(), and relativeConstraints::station.
Referenced by nStations().
std::set< unsigned int > DTSimHitMatcher::hitWiresInDTChamberId | ( | unsigned int | detid, |
int | margin_n_wires = 0 |
||
) | const |
Definition at line 277 of file DTSimHitMatcher.cc.
References relativeConstraints::chamber, MuonSimHitMatcher::geometry_, hitWiresInDTSuperLayerId(), AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and MuonSimHitMatcher::verbose_.
std::set< unsigned int > DTSimHitMatcher::hitWiresInDTLayerId | ( | unsigned int | detid, |
int | margin_n_wires = 0 |
||
) | const |
Definition at line 239 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, MuonHitHelper::isDT(), DetId::rawId(), mps_fire::result, contentValuesCheck::ss, and MuonSimHitMatcher::verbose_.
Referenced by hitWiresInDTSuperLayerId().
std::set< unsigned int > DTSimHitMatcher::hitWiresInDTSuperLayerId | ( | unsigned int | detid, |
int | margin_n_wires = 0 |
||
) | const |
Definition at line 265 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, hitWiresInDTLayerId(), cmsLHEtoEOSManager::l, hgcalTopologyTester_cfi::layers, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and MuonSimHitMatcher::verbose_.
Referenced by hitWiresInDTChamberId().
void DTSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 16 of file DTSimHitMatcher.cc.
References dt_geom_, MuonSimHitMatcher::geometry_, edm::EventSetup::get(), get, MuonSimHitMatcher::hasGeometry_, iEvent, MuonSimHitMatcher::init(), and edm::ESHandleBase::isValid().
std::set< unsigned int > DTSimHitMatcher::layerIds | ( | ) | const |
Definition at line 102 of file DTSimHitMatcher.cc.
References layer_to_hits_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
do the matching
Definition at line 28 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, detIds(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), MuonSimHitMatcher::simHitsMeanPosition(), HLT_2018_cff::track, MuonSimHitMatcher::track_ids_, MuonSimHitMatcher::verbose_, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 52 of file DTSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, MuonSimHitMatcher::detid_to_hits_, MuonSimHitMatcher::discardEleHits_, MuonSimHitMatcher::hits_, layer_to_hits_, EgammaValidation_cff::pdgid, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, superlayer_to_hits_, and MuonSimHitMatcher::track_ids_.
Referenced by match().
int DTSimHitMatcher::nCellsWithHitsInLayer | ( | unsigned int | detid | ) | const |
Definition at line 172 of file DTSimHitMatcher.cc.
References hfClusterShapes_cfi::hits, hitsInLayer(), and MuonHitHelper::isDT().
int DTSimHitMatcher::nLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 208 of file DTSimHitMatcher.cc.
References relativeConstraints::chamber, MuonSimHitMatcher::geometry_, MuonTCMETValueMapProducer_cff::nLayers, and nLayersWithHitsInSuperLayer().
Referenced by hitStation().
int DTSimHitMatcher::nLayersWithHitsInSuperLayer | ( | unsigned int | detid | ) | const |
Definition at line 184 of file DTSimHitMatcher.cc.
References hfClusterShapes_cfi::hits, hitsInSuperLayer(), and MuonHitHelper::isDT().
Referenced by nLayersWithHitsInChamber().
int DTSimHitMatcher::nStations | ( | int | nsl = 1 , |
int | nl = 3 |
||
) | const |
int DTSimHitMatcher::nSuperLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 196 of file DTSimHitMatcher.cc.
References hfClusterShapes_cfi::hits, MuonSimHitMatcher::hitsInChamber(), and MuonHitHelper::isDT().
Referenced by hitStation().
GlobalPoint DTSimHitMatcher::simHitsMeanPositionStation | ( | int | n | ) | const |
float DTSimHitMatcher::simHitsMeanWire | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 216 of file DTSimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, MuonHitHelper::isDT(), dqmiodumpmetadata::n, and alignCSCRings::s.
std::set< unsigned int > DTSimHitMatcher::superlayerIds | ( | ) | const |
Definition at line 109 of file DTSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superlayer_to_hits_.
|
private |
Definition at line 76 of file DTSimHitMatcher.h.
Referenced by init().
|
private |
Definition at line 73 of file DTSimHitMatcher.h.
Referenced by hitsInLayer(), layerIds(), and matchSimHitsToSimTrack().
|
private |
Definition at line 74 of file DTSimHitMatcher.h.
Referenced by hitsInSuperLayer(), matchSimHitsToSimTrack(), and superlayerIds().