#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.
References chamberIds(), chamberIdsStation(), detIds(), MuonHitHelper::DT_ALL, dtChamberIdsToString(), MillePedeFileConverter_cfg::e, hitsInChamber(), hitsInLayer(), hitsInSuperLayer(), hitStation(), hitWiresInDTChamberId(), hitWiresInDTLayerId(), hitWiresInDTSuperLayerId(), init(), layerIds(), match(), matchSimHitsToSimTrack(), gen::n, nCellsWithHitsInLayer(), nLayersWithHitsInChamber(), nLayersWithHitsInSuperLayer(), nStations(), nSuperLayersWithHitsInChamber(), simHitsMeanPositionStation(), simHitsMeanWire(), relativeConstraints::station, superlayerIds(), lumiQTWidget::t, and findQualityFiles::v.
std::set< unsigned int > DTSimHitMatcher::chamberIds | ( | int | type = MuonHitHelper::DT_ALL | ) | const |
Definition at line 92 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(), hitStation(), and ~DTSimHitMatcher().
std::set< unsigned int > DTSimHitMatcher::chamberIdsStation | ( | int | station | ) | const |
Definition at line 317 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, and mps_fire::result.
Referenced by ~DTSimHitMatcher().
std::set< unsigned int > DTSimHitMatcher::detIds | ( | int | type = MuonHitHelper::DT_ALL | ) | const |
Definition at line 78 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(), and ~DTSimHitMatcher().
void DTSimHitMatcher::dtChamberIdsToString | ( | const std::set< unsigned int > & | set | ) | const |
Definition at line 309 of file DTSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by ~DTSimHitMatcher().
const edm::PSimHitContainer & DTSimHitMatcher::hitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 139 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, triggerObjects_cff::id, MuonHitHelper::isDT(), and MuonSimHitMatcher::no_hits_.
Referenced by ~DTSimHitMatcher().
const edm::PSimHitContainer & DTSimHitMatcher::hitsInLayer | ( | unsigned int | detid | ) | const |
Definition at line 118 of file DTSimHitMatcher.cc.
References triggerObjects_cff::id, MuonHitHelper::isDT(), layer_to_hits_, and MuonSimHitMatcher::no_hits_.
Referenced by nCellsWithHitsInLayer(), and ~DTSimHitMatcher().
const edm::PSimHitContainer & DTSimHitMatcher::hitsInSuperLayer | ( | unsigned int | detid | ) | const |
Definition at line 128 of file DTSimHitMatcher.cc.
References triggerObjects_cff::id, MuonHitHelper::isDT(), MuonSimHitMatcher::no_hits_, and superlayer_to_hits_.
Referenced by nLayersWithHitsInSuperLayer(), and ~DTSimHitMatcher().
bool DTSimHitMatcher::hitStation | ( | int | st, |
int | nsuperlayers, | ||
int | nlayers | ||
) | const |
Definition at line 149 of file DTSimHitMatcher.cc.
References chamberIds(), triggerObjects_cff::id, nLayersWithHitsInChamber(), nSuperLayersWithHitsInChamber(), and relativeConstraints::station.
Referenced by nStations(), and ~DTSimHitMatcher().
std::set< unsigned int > DTSimHitMatcher::hitWiresInDTChamberId | ( | unsigned int | detid, |
int | margin_n_wires = 0 |
||
) | const |
Definition at line 293 of file DTSimHitMatcher.cc.
References relativeConstraints::chamber, MuonSimHitMatcher::geometry_, hitWiresInDTSuperLayerId(), AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and MuonSimHitMatcher::verbose_.
Referenced by ~DTSimHitMatcher().
std::set< unsigned int > DTSimHitMatcher::hitWiresInDTLayerId | ( | unsigned int | detid, |
int | margin_n_wires = 0 |
||
) | const |
Definition at line 245 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, h, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, MuonHitHelper::isDT(), DetId::rawId(), mps_fire::result, and MuonSimHitMatcher::verbose_.
Referenced by hitWiresInDTSuperLayerId(), and ~DTSimHitMatcher().
std::set< unsigned int > DTSimHitMatcher::hitWiresInDTSuperLayerId | ( | unsigned int | detid, |
int | margin_n_wires = 0 |
||
) | const |
Definition at line 277 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::geometry_, hitWiresInDTLayerId(), checklumidiff::l, LayerTriplets::layers(), AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and MuonSimHitMatcher::verbose_.
Referenced by hitWiresInDTChamberId(), and ~DTSimHitMatcher().
void DTSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 18 of file DTSimHitMatcher.cc.
References dt_geom_, MuonSimHitMatcher::geometry_, edm::EventSetup::get(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::init(), and edm::ESHandleBase::isValid().
Referenced by ~DTSimHitMatcher().
std::set< unsigned int > DTSimHitMatcher::layerIds | ( | ) | const |
Definition at line 106 of file DTSimHitMatcher.cc.
References layer_to_hits_, AlCaHLTBitMon_ParallelJobs::p, and mps_fire::result.
Referenced by ~DTSimHitMatcher().
do the matching
Definition at line 32 of file DTSimHitMatcher.cc.
References MuonSimHitMatcher::chamber_to_hits_, detIds(), MuonSimHitMatcher::hasGeometry_, MuonSimHitMatcher::hits_, MuonSimHitMatcher::hitsInDetId(), triggerObjects_cff::id, MuonSimHitMatcher::match(), matchSimHitsToSimTrack(), MuonSimHitMatcher::simHitsMeanPosition(), MuonSimHitMatcher::track_ids_, and MuonSimHitMatcher::verbose_.
Referenced by ~DTSimHitMatcher().
|
private |
Definition at line 59 of file DTSimHitMatcher.cc.
References funct::abs(), MuonSimHitMatcher::chamber_to_hits_, MuonSimHitMatcher::detid_to_hits_, MuonSimHitMatcher::discardEleHits_, h, MuonSimHitMatcher::hits_, layer_to_hits_, BPhysicsValidation_cfi::pdgid, MuonSimHitMatcher::simHits_, MuonSimHitMatcher::simMuOnly_, superlayer_to_hits_, and MuonSimHitMatcher::track_ids_.
Referenced by match(), and ~DTSimHitMatcher().
int DTSimHitMatcher::nCellsWithHitsInLayer | ( | unsigned int | detid | ) | const |
Definition at line 174 of file DTSimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, hitsInLayer(), and MuonHitHelper::isDT().
Referenced by ~DTSimHitMatcher().
int DTSimHitMatcher::nLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 210 of file DTSimHitMatcher.cc.
References relativeConstraints::chamber, MuonSimHitMatcher::geometry_, MuonTCMETValueMapProducer_cff::nLayers, and nLayersWithHitsInSuperLayer().
Referenced by hitStation(), and ~DTSimHitMatcher().
int DTSimHitMatcher::nLayersWithHitsInSuperLayer | ( | unsigned int | detid | ) | const |
Definition at line 186 of file DTSimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, hitsInSuperLayer(), and MuonHitHelper::isDT().
Referenced by nLayersWithHitsInChamber(), and ~DTSimHitMatcher().
int DTSimHitMatcher::nStations | ( | int | nsl = 1 , |
int | nl = 3 |
||
) | const |
Definition at line 167 of file DTSimHitMatcher.cc.
References hitStation().
Referenced by ~DTSimHitMatcher().
int DTSimHitMatcher::nSuperLayersWithHitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 198 of file DTSimHitMatcher.cc.
References h, hfClusterShapes_cfi::hits, MuonSimHitMatcher::hitsInChamber(), and MuonHitHelper::isDT().
Referenced by hitStation(), and ~DTSimHitMatcher().
GlobalPoint DTSimHitMatcher::simHitsMeanPositionStation | ( | int | n | ) | const |
Referenced by ~DTSimHitMatcher().
float DTSimHitMatcher::simHitsMeanWire | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 220 of file DTSimHitMatcher.cc.
References edmIntegrityCheck::d, f, MuonSimHitMatcher::geometry_, h, MuonHitHelper::isDT(), gen::n, and alignCSCRings::s.
Referenced by ~DTSimHitMatcher().
std::set< unsigned int > DTSimHitMatcher::superlayerIds | ( | ) | const |
Definition at line 112 of file DTSimHitMatcher.cc.
References AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, and superlayer_to_hits_.
Referenced by ~DTSimHitMatcher().
|
private |
Definition at line 79 of file DTSimHitMatcher.h.
Referenced by init().
|
private |
Definition at line 76 of file DTSimHitMatcher.h.
Referenced by hitsInLayer(), layerIds(), and matchSimHitsToSimTrack().
|
private |
Definition at line 77 of file DTSimHitMatcher.h.
Referenced by hitsInSuperLayer(), matchSimHitsToSimTrack(), and superlayerIds().