#include <MuonAssociatorByHitsHelper.h>
Classes | |
struct | IndexMatch |
struct | Resources |
Public Types | |
typedef std::map< size_t, std::vector< IndexMatch > > | IndexAssociation |
typedef boost::ptr_vector< 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 | ThreeHitTracksAreSpecial |
const bool | UseGrouped |
bool | UseMuon |
const bool | UsePixels |
const bool | UseSplitting |
bool | UseTracker |
Definition at line 27 of file MuonAssociatorByHitsHelper.h.
typedef std::map<size_t, std::vector<IndexMatch> > MuonAssociatorByHitsHelper::IndexAssociation |
Definition at line 54 of file MuonAssociatorByHitsHelper.h.
typedef boost::ptr_vector<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 & | , |
const edm::RefVector< TrackingParticleCollection > & | , | ||
Resources const & | |||
) | const |
Definition at line 59 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, NHitCut_muon, NHitCut_track, PurityCut_muon, PurityCut_track, MuonAssociatorByHitsHelper::Resources::rpcHitAssoc_, edm::RefVector< C, T, F >::size(), AlCaHLTBitMon_QueryRunRegistry::string, ThreeHitTracksAreSpecial, HiIsolationCommonParameters_cff::track, MuonAssociatorByHitsHelper::Resources::trackerHitAssoc_, and MuonAssociatorByHitsHelper::Resources::tTopo_.
Referenced by MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonAssociatorByHits::associateRecoToSim().
MuonAssociatorByHitsHelper::IndexAssociation MuonAssociatorByHitsHelper::associateSimToRecoIndices | ( | const TrackHitsCollection & | , |
const edm::RefVector< TrackingParticleCollection > & | , | ||
Resources const & | |||
) | const |
Definition at line 341 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, MuonAssociatorByHitsHelper::Resources::rpcHitAssoc_, edm::RefVector< C, T, F >::size(), AlCaHLTBitMon_QueryRunRegistry::string, ThreeHitTracksAreSpecial, HiIsolationCommonParameters_cff::track, MuonAssociatorByHitsHelper::Resources::trackerHitAssoc_, MuonAssociatorByHitsHelper::Resources::tTopo_, UseMuon, and UseTracker.
Referenced by MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonAssociatorByHits::associateSimToReco().
|
inlineprivate |
Definition at line 99 of file MuonAssociatorByHitsHelper.h.
Referenced by getMatchedIds().
|
inlineprivate |
Definition at line 100 of file MuonAssociatorByHitsHelper.h.
References AlCaHLTBitMon_QueryRunRegistry::string, and write_matched_simtracks().
|
private |
Definition at line 771 of file MuonAssociatorByHitsHelper.cc.
References CSCHitAssociator::associateCSCHitId(), DTHitAssociator::associateDTHitId(), DTHitAssociator::associateHit(), TrackerHitAssociator::associateHitId(), RPCHitAssociator::associateRecHit(), GEMHitAssociator::associateRecHit(), MuonSubdetId::CSC, DetId::det(), MuonSubdetId::DT, dumpDT, end, MuonSubdetId::GEM, TrackingRecHit::geographicalId(), getHitPtr(), DTRecSegment4D::hasPhi(), DTRecSegment4D::hasZed(), diffTreeTool::index, TrackingRecHit::isValid(), DetId::Muon, DTRecSegment4D::phiSegment(), TrackerTopology::print(), DetId::rawId(), CSCSegment::recHits(), GEMSegment::recHits(), DTRecSegment2D::recHits(), MuonSubdetId::RPC, DetId::subdetId(), DetId::Tracker, UseMuon, UseTracker, DTRecHit1D::wireId(), write_matched_simtracks(), and DTRecSegment4D::zSegment().
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 1242 of file MuonAssociatorByHitsHelper.cc.
References runEdmFileComparison::found.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
|
private |
Definition at line 1279 of file MuonAssociatorByHitsHelper.cc.
References plotBeamSpotDB::first, and edm::second().
Referenced by getHitPtr(), and getMatchedIds().
|
private |
Definition at line 88 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 84 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 81 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 96 of file MuonAssociatorByHitsHelper.h.
Referenced by getMatchedIds().
|
private |
Definition at line 90 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 86 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices().
|
private |
Definition at line 80 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 89 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 85 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 91 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 87 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 95 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 93 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 83 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices(), getMatchedIds(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 92 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 94 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 82 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices(), getMatchedIds(), and MuonAssociatorByHitsHelper().