#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_tracker_matched_valid, int &n_dt_matched_valid, int &n_csc_matched_valid, int &n_rpc_matched_valid, int &n_tracker_INVALID, int &n_dt_INVALID, int &n_csc_INVALID, int &n_rpc_INVALID, int &n_tracker_matched_INVALID, int &n_dt_matched_INVALID, int &n_csc_matched_INVALID, int &n_rpc_matched_INVALID, trackingRecHit_iterator begin, trackingRecHit_iterator end, const TrackerHitAssociator *trackertruth, const DTHitAssociator &dttruth, const CSCHitAssociator &csctruth, const RPCHitAssociator &rpctruth, 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 26 of file MuonAssociatorByHitsHelper.h.
typedef std::map<size_t, std::vector<IndexMatch> > MuonAssociatorByHitsHelper::IndexAssociation |
Definition at line 52 of file MuonAssociatorByHitsHelper.h.
typedef boost::ptr_vector<uint_SimHitIdpr_pair> MuonAssociatorByHitsHelper::MapOfMatchedIds |
Definition at line 32 of file MuonAssociatorByHitsHelper.h.
typedef std::pair<uint32_t, EncodedEventId> MuonAssociatorByHitsHelper::SimHitIdpr |
Definition at line 29 of file MuonAssociatorByHitsHelper.h.
typedef std::vector<std::pair<trackingRecHit_iterator, trackingRecHit_iterator> > MuonAssociatorByHitsHelper::TrackHitsCollection |
Definition at line 33 of file MuonAssociatorByHitsHelper.h.
typedef std::pair<unsigned int,std::vector<SimHitIdpr> > MuonAssociatorByHitsHelper::uint_SimHitIdpr_pair |
Definition at line 31 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 59 of file MuonAssociatorByHitsHelper.cc.
References AbsoluteNumberOfHits_muon, AbsoluteNumberOfHits_track, acceptOneStubMatchings, MuonAssociatorByHitsHelper::Resources::cscHitAssoc_, MuonAssociatorByHitsHelper::Resources::diagnostics_, MuonAssociatorByHitsHelper::Resources::dtHitAssoc_, getMatchedIds(), getShared(), includeZeroHitMuons, NHitCut_muon, NHitCut_track, PurityCut_muon, PurityCut_track, MuonAssociatorByHitsHelper::Resources::rpcHitAssoc_, edm::RefVector< C, T, F >::size(), python.multivaluedict::sort(), AlCaHLTBitMon_QueryRunRegistry::string, ThreeHitTracksAreSpecial, MuonAssociatorByHitsHelper::Resources::trackerHitAssoc_, and MuonAssociatorByHitsHelper::Resources::tTopo_.
Referenced by MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonAssociatorByHits::associateRecoToSim().
MuonAssociatorByHitsHelper::IndexAssociation MuonAssociatorByHitsHelper::associateSimToRecoIndices | ( | const TrackHitsCollection & | tC, |
const edm::RefVector< TrackingParticleCollection > & | TPCollectionH, | ||
Resources const & | resources | ||
) | const |
Definition at line 330 of file MuonAssociatorByHitsHelper.cc.
References AbsoluteNumberOfHits_muon, AbsoluteNumberOfHits_track, acceptOneStubMatchings, MuonAssociatorByHitsHelper::Resources::cscHitAssoc_, MuonAssociatorByHitsHelper::Resources::dtHitAssoc_, EfficiencyCut_muon, EfficiencyCut_track, getMatchedIds(), getShared(), includeZeroHitMuons, NHitCut_muon, NHitCut_track, PurityCut_muon, PurityCut_track, MuonAssociatorByHitsHelper::Resources::rpcHitAssoc_, edm::RefVector< C, T, F >::size(), python.multivaluedict::sort(), AlCaHLTBitMon_QueryRunRegistry::string, ThreeHitTracksAreSpecial, MuonAssociatorByHitsHelper::Resources::trackerHitAssoc_, MuonAssociatorByHitsHelper::Resources::tTopo_, UseMuon, and UseTracker.
Referenced by MuonToSimAssociatorByHits::associateMuons(), MuonToTrackingParticleAssociatorByHitsImpl::associateMuons(), and MuonAssociatorByHits::associateSimToReco().
|
inlineprivate |
Definition at line 97 of file MuonAssociatorByHitsHelper.h.
|
inlineprivate |
Definition at line 98 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 744 of file MuonAssociatorByHitsHelper.cc.
References CSCHitAssociator::associateCSCHitId(), DTHitAssociator::associateDTHitId(), DTHitAssociator::associateHit(), TrackerHitAssociator::associateHitId(), RPCHitAssociator::associateRecHit(), MuonSubdetId::CSC, CSCDetId, DetId::det(), cond::rpcobgas::detid, MuonSubdetId::DT, end, TrackingRecHit::geographicalId(), DTRecSegment4D::hasPhi(), DTRecSegment4D::hasZed(), cmsHarvester::index, TrackingRecHit::isValid(), j, DetId::Muon, DTRecSegment4D::phiSegment(), TrackerTopology::print(), DetId::rawId(), CSCSegment::recHits(), DTRecSegment2D::recHits(), MuonSubdetId::RPC, RPCDetId, DetId::subdetId(), DetId::Tracker, DTRecHit1D::wireId(), and DTRecSegment4D::zSegment().
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 1117 of file MuonAssociatorByHitsHelper.cc.
References newFWLiteAna::found.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
|
private |
Definition at line 1151 of file MuonAssociatorByHitsHelper.cc.
References plotBeamSpotDB::first, j, and edm::second().
|
private |
Definition at line 86 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 82 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 79 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 94 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 88 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 84 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices().
|
private |
Definition at line 78 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 87 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 83 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
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 93 of file MuonAssociatorByHitsHelper.h.
Referenced by associateRecoToSimIndices(), and associateSimToRecoIndices().
|
private |
Definition at line 91 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 81 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().
|
private |
Definition at line 90 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 92 of file MuonAssociatorByHitsHelper.h.
|
private |
Definition at line 80 of file MuonAssociatorByHitsHelper.h.
Referenced by associateSimToRecoIndices(), and MuonAssociatorByHitsHelper().