#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 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 | matchSimHitsToSimTrack () |
Private Attributes | |
edm::ESGetToken< DTGeometry, MuonGeometryRecord > | geomToken_ |
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 16 of file DTSimHitMatcher.h.
DTSimHitMatcher::DTSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 5 of file DTSimHitMatcher.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 DTSimHitMatcher.h.
std::set< unsigned int > DTSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::DT_ALL | ) | const |
Definition at line 80 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 288 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, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, chargedHadronTrackResolutionFilter_cfi::p3, mps_fire::result, and relativeConstraints::station.
std::set< unsigned int > DTSimHitMatcher::detIds | ( | int | type = MuonHitHelper::DT_ALL | ) | const |
Definition at line 66 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 |
Definition at line 281 of file DTSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p.
const edm::PSimHitContainer & DTSimHitMatcher::hitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 128 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, l1ctLayer2EG_cff::id, MuonHitHelper::isDT(), and MuonSimHitMatcher::no_hits_.
const edm::PSimHitContainer & DTSimHitMatcher::hitsInLayer | ( | unsigned int | detid | ) | const |
Definition at line 108 of file DTSimHitMatcher.cc.
References l1ctLayer2EG_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 118 of file DTSimHitMatcher.cc.
References l1ctLayer2EG_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 138 of file DTSimHitMatcher.cc.
References chamberIds(), l1ctLayer2EG_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 269 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 231 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), l1ctLayer2EG_cff::id, MuonHitHelper::isDT(), pixelTopology::layer, 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 257 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, hitWiresInDTLayerId(), cmsLHEtoEOSManager::l, hgcalTBTopologyTester_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 17 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, geomToken_, edm::EventSetup::getData(), iEvent, and MuonSimHitMatcher::init().
std::set< unsigned int > DTSimHitMatcher::layerIds | ( | ) | const |
Definition at line 94 of file DTSimHitMatcher.cc.
References layer_to_hits_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
do the matching
Definition at line 23 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, detIds(), MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), l1ctLayer2EG_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), MuonSimHitMatcher::simHitsMeanPosition(), HLT_2022v15_cff::track, MuonSimHitMatcher::track_ids_, MuonSimHitMatcher::verbose_, and bphysicsOniaDQM_cfi::vertex.
|
private |
Definition at line 44 of file DTSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, MuonSimHitMatcher::detid_to_hits_, MuonSimHitMatcher::discardEleHits_, h, 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 164 of file DTSimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, hitsInLayer(), and MuonHitHelper::isDT().
int DTSimHitMatcher::nLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 200 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 176 of file DTSimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, hitsInSuperLayer(), and MuonHitHelper::isDT().
Referenced by nLayersWithHitsInChamber().
int DTSimHitMatcher::nStations | ( | int | nsl = 1 , |
int | nl = 3 |
||
) | const |
Definition at line 159 of file DTSimHitMatcher.cc.
References hitStation(), and nlayers.
int DTSimHitMatcher::nSuperLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 188 of file DTSimHitMatcher.cc.
References h, 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 208 of file DTSimHitMatcher.cc.
References ztail::d, f, MuonSimHitMatcher::geometry_, h, MuonHitHelper::isDT(), pixelTopology::layer, dqmiodumpmetadata::n, and alignCSCRings::s.
std::set< unsigned int > DTSimHitMatcher::superlayerIds | ( | ) | const |
Definition at line 101 of file DTSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superlayer_to_hits_.
|
private |
Definition at line 78 of file DTSimHitMatcher.h.
Referenced by DTSimHitMatcher(), and init().
|
private |
Definition at line 75 of file DTSimHitMatcher.h.
Referenced by hitsInLayer(), layerIds(), and matchSimHitsToSimTrack().
|
private |
Definition at line 76 of file DTSimHitMatcher.h.
Referenced by hitsInSuperLayer(), matchSimHitsToSimTrack(), and superlayerIds().