#include <MuonSimHitMatcher.h>
Public Member Functions | |
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 () | |
Protected Member Functions | |
void | clear () |
std::vector< unsigned int > | getIdsOfSimTrackShower (unsigned trk_id, const edm::SimTrackContainer &simTracks, const edm::SimVertexContainer &simVertices) |
Protected Attributes | |
std::map< unsigned int, edm::PSimHitContainer > | chamber_to_hits_ |
std::map< unsigned int, edm::PSimHitContainer > | detid_to_hits_ |
bool | discardEleHits_ |
const TrackingGeometry * | geometry_ |
bool | hasGeometry_ |
edm::PSimHitContainer | hits_ |
edm::PSimHitContainer | no_hits_ |
edm::EDGetTokenT< edm::PSimHitContainer > | simHitInput_ |
edm::ParameterSet | simHitPSet_ |
edm::PSimHitContainer | simHits_ |
edm::Handle< edm::PSimHitContainer > | simHitsH_ |
bool | simMuOnly_ |
edm::EDGetTokenT< edm::SimTrackContainer > | simTrackInput_ |
edm::SimTrackContainer | simTracks_ |
edm::Handle< edm::SimTrackContainer > | simTracksH_ |
edm::EDGetTokenT< edm::SimVertexContainer > | simVertexInput_ |
edm::SimVertexContainer | simVertices_ |
edm::Handle< edm::SimVertexContainer > | simVerticesH_ |
std::vector< unsigned > | track_ids_ |
std::map< unsigned int, unsigned int > | trkid_to_index_ |
bool | verbose_ |
bool | verboseSimTrack_ |
Description: Matching of muon SimHit to SimTrack
Author: Sven Dildick (TAMU), Tao Huang (TAMU)
Definition at line 32 of file MuonSimHitMatcher.h.
MuonSimHitMatcher::MuonSimHitMatcher | ( | const edm::ParameterSet & | iPS, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 7 of file MuonSimHitMatcher.cc.
References edm::ParameterSet::getParameterSet(), cscDigiValidation_cfi::simTrack, and ecalDetailedTimeRecHit_cfi::simVertex.
|
inline |
Definition at line 38 of file MuonSimHitMatcher.h.
std::set<unsigned int> MuonSimHitMatcher::chamberIds | ( | int | type = 0 | ) | const |
|
protected |
Definition at line 139 of file MuonSimHitMatcher.cc.
Referenced by CSCSimHitMatcher::clear(), and GEMSimHitMatcher::clear().
std::set<unsigned int> MuonSimHitMatcher::detIds | ( | int | type = 0 | ) | const |
|
inline |
Definition at line 69 of file MuonSimHitMatcher.h.
References geometry_.
Referenced by CSCSimHitMatcher::simHitsMeanWG().
|
protected |
Definition at line 47 of file MuonSimHitMatcher.cc.
References SimTrack::noVertex(), mps_fire::result, submitPVValidationJobs::t, and SimTrack::vertIndex().
const edm::PSimHitContainer & MuonSimHitMatcher::hitsInChamber | ( | unsigned int | detid | ) | const |
Definition at line 93 of file MuonSimHitMatcher.cc.
Referenced by CSCSimHitMatcher::fitHitsInChamber(), RPCSimHitMatcher::match(), ME0SimHitMatcher::match(), CSCSimHitMatcher::nLayersWithHitsInChamber(), and DTSimHitMatcher::nSuperLayersWithHitsInChamber().
const edm::PSimHitContainer & MuonSimHitMatcher::hitsInDetId | ( | unsigned int | detid | ) | const |
Definition at line 87 of file MuonSimHitMatcher.cc.
Referenced by RPCSimHitMatcher::hitStripsInDetId(), ME0SimHitMatcher::hitStripsInDetId(), GEMSimHitMatcher::hitStripsInDetId(), CSCSimHitMatcher::hitStripsInDetId(), CSCSimHitMatcher::hitWiregroupsInDetId(), DTSimHitMatcher::hitWiresInDTLayerId(), CSCSimHitMatcher::LocalBendingInChamber(), CSCSimHitMatcher::match(), DTSimHitMatcher::match(), GEMSimHitMatcher::match(), ME0SimHitMatcher::matchSimHitsToSimTrack(), and GEMSimHitMatcher::matchSimHitsToSimTrack().
void MuonSimHitMatcher::init | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) |
initialize the event
Definition at line 17 of file MuonSimHitMatcher.cc.
References iEvent.
Referenced by CSCSimHitMatcher::init(), RPCSimHitMatcher::init(), ME0SimHitMatcher::init(), GEMSimHitMatcher::init(), and DTSimHitMatcher::init().
do the matching
Definition at line 26 of file MuonSimHitMatcher.cc.
References submitPVValidationJobs::t, and HLT_2024v11_cff::track.
Referenced by CSCSimHitMatcher::match(), RPCSimHitMatcher::match(), ME0SimHitMatcher::match(), GEMSimHitMatcher::match(), and DTSimHitMatcher::match().
const edm::PSimHitContainer & MuonSimHitMatcher::simHits | ( | int | sub | ) | const |
Definition at line 85 of file MuonSimHitMatcher.cc.
Referenced by ntupleDataFormat.TrackingParticle::bestMatchingTrack().
GlobalVector MuonSimHitMatcher::simHitsMeanMomentum | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 119 of file MuonSimHitMatcher.cc.
References h, dqmiodumpmetadata::n, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
GlobalPoint MuonSimHitMatcher::simHitsMeanPosition | ( | const edm::PSimHitContainer & | sim_hits | ) | const |
Definition at line 99 of file MuonSimHitMatcher.cc.
References h, and dqmiodumpmetadata::n.
Referenced by CSCSimHitMatcher::LocalBendingInChamber(), RPCSimHitMatcher::match(), ME0SimHitMatcher::match(), GEMSimHitMatcher::match(), DTSimHitMatcher::match(), and CSCSimHitMatcher::match().
GlobalPoint MuonSimHitMatcher::simHitsMeanPositionStation | ( | int | n | ) | const |
|
protected |
Definition at line 107 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::chamberIds(), DTSimHitMatcher::chamberIds(), GEMSimHitMatcher::chamberIds(), ME0SimHitMatcher::chamberIds(), RPCSimHitMatcher::chamberIds(), DTSimHitMatcher::hitsInChamber(), GEMSimHitMatcher::match(), ME0SimHitMatcher::match(), DTSimHitMatcher::match(), RPCSimHitMatcher::match(), RPCSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::matchSimHitsToSimTrack(), CSCSimHitMatcher::matchSimHitsToSimTrack(), and GEMSimHitMatcher::matchSimHitsToSimTrack().
|
protected |
Definition at line 106 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::detIds(), DTSimHitMatcher::detIds(), ME0SimHitMatcher::detIds(), RPCSimHitMatcher::detIds(), GEMSimHitMatcher::detIds(), CSCSimHitMatcher::match(), RPCSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::matchSimHitsToSimTrack(), CSCSimHitMatcher::matchSimHitsToSimTrack(), and GEMSimHitMatcher::matchSimHitsToSimTrack().
|
protected |
Definition at line 80 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::CSCSimHitMatcher(), DTSimHitMatcher::DTSimHitMatcher(), GEMSimHitMatcher::GEMSimHitMatcher(), RPCSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::matchSimHitsToSimTrack(), CSCSimHitMatcher::matchSimHitsToSimTrack(), GEMSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::ME0SimHitMatcher(), and RPCSimHitMatcher::RPCSimHitMatcher().
|
protected |
Definition at line 84 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::fitHitsInChamber(), geometry(), RPCSimHitMatcher::hitStripsInDetId(), ME0SimHitMatcher::hitStripsInDetId(), GEMSimHitMatcher::hitStripsInDetId(), CSCSimHitMatcher::hitStripsInDetId(), CSCSimHitMatcher::hitWiregroupsInDetId(), DTSimHitMatcher::hitWiresInDTChamberId(), DTSimHitMatcher::hitWiresInDTLayerId(), DTSimHitMatcher::hitWiresInDTSuperLayerId(), DTSimHitMatcher::init(), ME0SimHitMatcher::init(), RPCSimHitMatcher::init(), CSCSimHitMatcher::init(), GEMSimHitMatcher::init(), ME0SimHitMatcher::matchSimHitsToSimTrack(), GEMSimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::nLayersWithHitsInChamber(), GEMSimHitMatcher::simHitsGEMCentralPosition(), RPCSimHitMatcher::simHitsMeanStrip(), ME0SimHitMatcher::simHitsMeanStrip(), CSCSimHitMatcher::simHitsMeanStrip(), GEMSimHitMatcher::simHitsMeanStrip(), CSCSimHitMatcher::simHitsMeanWG(), and DTSimHitMatcher::simHitsMeanWire().
|
protected |
Definition at line 82 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 105 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::match(), GEMSimHitMatcher::match(), DTSimHitMatcher::match(), ME0SimHitMatcher::match(), RPCSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::matchSimHitsToSimTrack(), CSCSimHitMatcher::matchSimHitsToSimTrack(), and GEMSimHitMatcher::matchSimHitsToSimTrack().
|
protected |
Definition at line 102 of file MuonSimHitMatcher.h.
Referenced by DTSimHitMatcher::hitsInChamber(), DTSimHitMatcher::hitsInLayer(), ME0SimHitMatcher::hitsInSuperChamber(), GEMSimHitMatcher::hitsInSuperChamber(), and DTSimHitMatcher::hitsInSuperLayer().
|
protected |
Definition at line 88 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::CSCSimHitMatcher(), DTSimHitMatcher::DTSimHitMatcher(), GEMSimHitMatcher::GEMSimHitMatcher(), ME0SimHitMatcher::ME0SimHitMatcher(), and RPCSimHitMatcher::RPCSimHitMatcher().
|
protected |
Definition at line 109 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::CSCSimHitMatcher(), DTSimHitMatcher::DTSimHitMatcher(), GEMSimHitMatcher::GEMSimHitMatcher(), ME0SimHitMatcher::ME0SimHitMatcher(), and RPCSimHitMatcher::RPCSimHitMatcher().
|
protected |
Definition at line 97 of file MuonSimHitMatcher.h.
Referenced by RPCSimHitMatcher::match(), RPCSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::matchSimHitsToSimTrack(), CSCSimHitMatcher::matchSimHitsToSimTrack(), and GEMSimHitMatcher::matchSimHitsToSimTrack().
|
protected |
Definition at line 92 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 79 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::CSCSimHitMatcher(), DTSimHitMatcher::DTSimHitMatcher(), GEMSimHitMatcher::GEMSimHitMatcher(), RPCSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::matchSimHitsToSimTrack(), CSCSimHitMatcher::matchSimHitsToSimTrack(), GEMSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::ME0SimHitMatcher(), and RPCSimHitMatcher::RPCSimHitMatcher().
|
protected |
Definition at line 87 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 94 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 90 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 86 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 95 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 91 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 99 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::match(), GEMSimHitMatcher::match(), RPCSimHitMatcher::match(), DTSimHitMatcher::match(), ME0SimHitMatcher::match(), RPCSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::matchSimHitsToSimTrack(), DTSimHitMatcher::matchSimHitsToSimTrack(), CSCSimHitMatcher::matchSimHitsToSimTrack(), and GEMSimHitMatcher::matchSimHitsToSimTrack().
|
protected |
Definition at line 100 of file MuonSimHitMatcher.h.
|
protected |
Definition at line 81 of file MuonSimHitMatcher.h.
Referenced by CSCSimHitMatcher::CSCSimHitMatcher(), DTSimHitMatcher::DTSimHitMatcher(), GEMSimHitMatcher::GEMSimHitMatcher(), DTSimHitMatcher::hitWiresInDTChamberId(), DTSimHitMatcher::hitWiresInDTLayerId(), DTSimHitMatcher::hitWiresInDTSuperLayerId(), DTSimHitMatcher::match(), GEMSimHitMatcher::match(), RPCSimHitMatcher::match(), CSCSimHitMatcher::match(), ME0SimHitMatcher::match(), GEMSimHitMatcher::matchSimHitsToSimTrack(), ME0SimHitMatcher::ME0SimHitMatcher(), and RPCSimHitMatcher::RPCSimHitMatcher().
|
protected |
Definition at line 78 of file MuonSimHitMatcher.h.