#include <MuonAssociatorByHitsHelper.h>
Classes | |
struct | IndexMatch |
struct | Resources |
Public Types | |
typedef std::map< size_t, std::vector< IndexMatch > > | IndexAssociation |
typedef std::vector < std::unique_ptr < uint_SimHitIdpr_pair > > | MapOfMatchedIds |
typedef std::pair< uint32_t, EncodedEventId > | SimHitIdpr |
typedef std::vector< std::pair < trackingRecHit_iterator, trackingRecHit_iterator > > | TrackHitsCollection |
typedef std::pair< unsigned int, std::vector< SimHitIdpr > > | uint_SimHitIdpr_pair |
Public Member Functions | |
IndexAssociation | associateRecoToSimIndices (const TrackHitsCollection &, const edm::RefVector< TrackingParticleCollection > &, Resources const &) const |
IndexAssociation | associateSimToRecoIndices (const TrackHitsCollection &, const edm::RefVector< TrackingParticleCollection > &, Resources const &) const |
MuonAssociatorByHitsHelper (const edm::ParameterSet &conf) | |
Private Member Functions | |
const TrackingRecHit * | getHitPtr (edm::OwnVector< TrackingRecHit >::const_iterator iter) const |
const TrackingRecHit * | getHitPtr (const trackingRecHit_iterator &iter) const |
void | getMatchedIds (MapOfMatchedIds &tracker_matchedIds_valid, MapOfMatchedIds &muon_matchedIds_valid, MapOfMatchedIds &tracker_matchedIds_INVALID, MapOfMatchedIds &muon_matchedIds_INVALID, int &n_tracker_valid, int &n_dt_valid, int &n_csc_valid, int &n_rpc_valid, int &n_gem_valid, int &n_tracker_matched_valid, int &n_dt_matched_valid, int &n_csc_matched_valid, int &n_rpc_matched_valid, int &n_gem_matched_valid, int &n_tracker_INVALID, int &n_dt_INVALID, int &n_csc_INVALID, int &n_rpc_INVALID, int &n_gem_INVALID, int &n_tracker_matched_INVALID, int &n_dt_matched_INVALID, int &n_csc_matched_INVALID, int &n_rpc_matched_INVALID, int &n_gem_matched_INVALID, trackingRecHit_iterator begin, trackingRecHit_iterator end, const TrackerHitAssociator *trackertruth, const DTHitAssociator &dttruth, const CSCHitAssociator &csctruth, const RPCHitAssociator &rpctruth, const GEMHitAssociator &gemtruth, bool printRts, const TrackerTopology *) const |
int | getShared (MapOfMatchedIds &matchedIds, TrackingParticleCollection::const_iterator trpart) const |
int | LayerFromDetid (const DetId &) const |
std::string | write_matched_simtracks (const std::vector< SimHitIdpr > &) const |
Private Attributes | |
const bool | AbsoluteNumberOfHits_muon |
const bool | AbsoluteNumberOfHits_track |
const bool | acceptOneStubMatchings |
const bool | dumpDT |
double | EfficiencyCut_muon |
double | EfficiencyCut_track |
const bool | includeZeroHitMuons |
unsigned int | NHitCut_muon |
unsigned int | NHitCut_track |
double | PurityCut_muon |
double | PurityCut_track |
const bool | rejectBadGlobal |
const bool | ThreeHitTracksAreSpecial |
const bool | UseGrouped |
bool | UseMuon |
const bool | UsePixels |
const bool | UseSplitting |
bool | UseTracker |
Definition at line 28 of file MuonAssociatorByHitsHelper.h.
typedef std::map<size_t, std::vector<IndexMatch> > MuonAssociatorByHitsHelper::IndexAssociation |
Definition at line 69 of file MuonAssociatorByHitsHelper.h.
typedef std::vector<std::unique_ptr<uint_SimHitIdpr_pair> > MuonAssociatorByHitsHelper::MapOfMatchedIds |
Definition at line 33 of file MuonAssociatorByHitsHelper.h.
typedef std::pair<uint32_t, EncodedEventId> MuonAssociatorByHitsHelper::SimHitIdpr |
Definition at line 30 of file MuonAssociatorByHitsHelper.h.
typedef std::vector<std::pair<trackingRecHit_iterator, trackingRecHit_iterator> > MuonAssociatorByHitsHelper::TrackHitsCollection |
Definition at line 34 of file MuonAssociatorByHitsHelper.h.
typedef std::pair<unsigned int, std::vector<SimHitIdpr> > MuonAssociatorByHitsHelper::uint_SimHitIdpr_pair |
Definition at line 32 of file MuonAssociatorByHitsHelper.h.
MuonAssociatorByHitsHelper::MuonAssociatorByHitsHelper | ( | const edm::ParameterSet & | conf | ) |
Definition at line 17 of file MuonAssociatorByHitsHelper.cc.
References edm::ParameterSet::dump(), EfficiencyCut_muon, includeZeroHitMuons, NHitCut_muon, PurityCut_muon, UseMuon, and UseTracker.
MuonAssociatorByHitsHelper::IndexAssociation MuonAssociatorByHitsHelper::associateRecoToSimIndices | ( | const TrackHitsCollection & | tC, |
const edm::RefVector< TrackingParticleCollection > & | TPCollectionH, | ||
Resources const & | resources | ||
) | const |
Definition at line 66 of file MuonAssociatorByHitsHelper.cc.
References AbsoluteNumberOfHits_muon, AbsoluteNumberOfHits_track, acceptOneStubMatchings, MuonAssociatorByHitsHelper::Resources::cscHitAssoc_, MuonAssociatorByHitsHelper::Resources::diagnostics_, MuonAssociatorByHitsHelper::Resources::dtHitAssoc_, MuonAssociatorByHitsHelper::Resources::gemHitAssoc_, getMatchedIds(), getShared(), includeZeroHitMuons, LogTrace, NHitCut_muon, NHitCut_track, PurityCut_muon, PurityCut_track, rejectBadGlobal, MuonAssociatorByHitsHelper::Resources::rpcHitAssoc_, edm::RefVector< C, T, F >::size(), AlCaHLTBitMon_QueryRunRegistry::string, ThreeHitTracksAreSpecial, HLT_FULL_cff::track, MuonAssociatorByHitsHelper::Resources::trackerHitAssoc_, MuonAssociatorByHitsHelper::Resources::tTopo_, UseMuon, and UseTracker.
Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonAssociatorByHits::associateRecoToSim().
MuonAssociatorByHitsHelper::IndexAssociation MuonAssociatorByHitsHelper::associateSimToRecoIndices | ( | const TrackHitsCollection & | tC, |
const edm::RefVector< TrackingParticleCollection > & | TPCollectionH, | ||
Resources const & | resources | ||
) | const |
Definition at line 408 of file MuonAssociatorByHitsHelper.cc.
References AbsoluteNumberOfHits_muon, AbsoluteNumberOfHits_track, acceptOneStubMatchings, MuonAssociatorByHitsHelper::Resources::cscHitAssoc_, MuonAssociatorByHitsHelper::Resources::dtHitAssoc_, EfficiencyCut_muon, EfficiencyCut_track, MuonAssociatorByHitsHelper::Resources::gemHitAssoc_, getMatchedIds(), getShared(), includeZeroHitMuons, NHitCut_muon, NHitCut_track, PurityCut_muon, PurityCut_track, rejectBadGlobal, MuonAssociatorByHitsHelper::Resources::rpcHitAssoc_, edm::RefVector< C, T, F >::size(), AlCaHLTBitMon_QueryRunRegistry::string, ThreeHitTracksAreSpecial, HLT_FULL_cff::track, MuonAssociatorByHitsHelper::Resources::trackerHitAssoc_, MuonAssociatorByHitsHelper::Resources::tTopo_, UseMuon, and UseTracker.
Referenced by MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonAssociatorByHits::associateSimToReco().
|
inlineprivate |
Definition at line 136 of file MuonAssociatorByHitsHelper.h.
Referenced by getMatchedIds().
|
inlineprivate |
Definition at line 137 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 851 of file MuonAssociatorByHitsHelper.cc.
References CSCHitAssociator::associateCSCHitId(), DTHitAssociator::associateDTHitId(), DTHitAssociator::associateHit(), TrackerHitAssociator::associateHitId(), RPCHitAssociator::associateRecHit(), GEMHitAssociator::associateRecHit(), MuonSubdetId::CSC, CSCDetId, DetId::det(), MuonSubdetId::DT, dumpDT, dataset::end, MuonSubdetId::GEM, TrackingRecHit::geographicalId(), getHitPtr(), DTRecSegment4D::hasPhi(), DTRecSegment4D::hasZed(), TrackingRecHit::isValid(), dqmiolumiharvest::j, DetId::Muon, DTRecSegment4D::phiSegment(), TrackerTopology::print(), DetId::rawId(), CSCSegment::recHits(), GEMSegment::recHits(), DTRecSegment2D::recHits(), MuonSubdetId::RPC, RPCDetId, DetId::subdetId(), DetId::Tracker, UseMuon, UseTracker, DTRecHit1D::wireId(), write_matched_simtracks(), and DTRecSegment4D::zSegment().
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 1370 of file MuonAssociatorByHitsHelper.cc.
References newFWLiteAna::found.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
|
private |
Definition at line 1406 of file MuonAssociatorByHitsHelper.cc.
References visDQMUpload::buf, first, dqmiolumiharvest::j, and edm::second().
Referenced by getMatchedIds().
|
private |
Definition at line 125 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 121 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 117 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 133 of file MuonAssociatorByHitsHelper.h.
Referenced by getMatchedIds().
|
private |
Definition at line 127 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 123 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices().
|
private |
Definition at line 116 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 126 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 122 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 128 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 124 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 118 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 132 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 130 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 120 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), getMatchedIds(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 129 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 131 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 119 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), getMatchedIds(), and MuonAssociatorByHitsHelper().