#include <SimTracker/TrackAssociation/interface/TrackAssociatorBase.h>
Methods take as input the handle of Track and TrackingPArticle collections and return an AssociationMap (oneToManyWithQuality)
Definition at line 35 of file TrackAssociatorBase.h.
TrackAssociatorBase::TrackAssociatorBase | ( | ) | [inline] |
virtual TrackAssociatorBase::~TrackAssociatorBase | ( | ) | [inline, virtual] |
virtual reco::RecoToSimCollectionTCandidate TrackAssociatorBase::associateRecoToSim | ( | edm::Handle< TrackCandidateCollection > & | , | |
edm::Handle< TrackingParticleCollection > & | , | |||
const edm::Event * | event = 0 | |||
) | const [inline, virtual] |
Definition at line 98 of file TrackAssociatorBase.h.
References empty.
00100 { 00101 reco::RecoToSimCollectionTCandidate empty; 00102 return empty; 00103 }
virtual reco::RecoToSimCollectionSeed TrackAssociatorBase::associateRecoToSim | ( | edm::Handle< edm::View< TrajectorySeed > > & | , | |
edm::Handle< TrackingParticleCollection > & | , | |||
const edm::Event * | event = 0 | |||
) | const [inline, virtual] |
Reimplemented in TrackAssociatorByHits.
Definition at line 83 of file TrackAssociatorBase.h.
References empty.
00085 { 00086 reco::RecoToSimCollectionSeed empty; 00087 return empty; 00088 }
virtual reco::RecoToSimCollection TrackAssociatorBase::associateRecoToSim | ( | edm::RefToBaseVector< reco::Track > & | tc, | |
edm::RefVector< TrackingParticleCollection > & | tpc, | |||
const edm::Event * | event = 0 | |||
) | const [pure virtual] |
Association Reco To Sim with Collections.
Implemented in TrackAssociatorByChi2, TrackAssociatorByHits, and TrackAssociatorByPosition.
virtual reco::RecoToSimCollection TrackAssociatorBase::associateRecoToSim | ( | edm::Handle< edm::View< reco::Track > > & | tCH, | |
edm::Handle< TrackingParticleCollection > & | tPCH, | |||
const edm::Event * | event = 0 | |||
) | const [inline, virtual] |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented in TrackAssociatorByChi2, and TrackAssociatorByHits.
Definition at line 44 of file TrackAssociatorBase.h.
References event(), edm::Handle< T >::id(), j, edm::RefToBaseVector< T >::push_back(), and tc.
Referenced by PhotonValidator::analyze(), GlobalMuonMatchAnalyzer::analyze(), TestOutliers::analyze(), RecoMuonValidator::analyze(), TrackAssociatorByHits::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), and MCTrackMatcher::produce().
00046 { 00047 edm::RefToBaseVector<reco::Track> tc(tCH); 00048 for (unsigned int j=0; j<tCH->size();j++) 00049 tc.push_back(edm::RefToBase<reco::Track>(tCH,j)); 00050 00051 edm::RefVector<TrackingParticleCollection> tpc(tPCH.id()); 00052 for (unsigned int j=0; j<tPCH->size();j++) 00053 tpc.push_back(edm::Ref<TrackingParticleCollection>(tPCH,j)); 00054 00055 return associateRecoToSim(tc,tpc,event); 00056 }
virtual reco::SimToRecoCollectionTCandidate TrackAssociatorBase::associateSimToReco | ( | edm::Handle< TrackCandidateCollection > & | , | |
edm::Handle< TrackingParticleCollection > & | , | |||
const edm::Event * | event = 0 | |||
) | const [inline, virtual] |
Definition at line 105 of file TrackAssociatorBase.h.
References empty.
00107 { 00108 reco::SimToRecoCollectionTCandidate empty; 00109 return empty; 00110 }
virtual reco::SimToRecoCollectionSeed TrackAssociatorBase::associateSimToReco | ( | edm::Handle< edm::View< TrajectorySeed > > & | , | |
edm::Handle< TrackingParticleCollection > & | , | |||
const edm::Event * | event = 0 | |||
) | const [inline, virtual] |
Reimplemented in TrackAssociatorByHits.
Definition at line 90 of file TrackAssociatorBase.h.
References empty.
00092 { 00093 reco::SimToRecoCollectionSeed empty; 00094 return empty; 00095 }
virtual reco::SimToRecoCollection TrackAssociatorBase::associateSimToReco | ( | edm::RefToBaseVector< reco::Track > & | tc, | |
edm::RefVector< TrackingParticleCollection > & | tpc, | |||
const edm::Event * | event = 0 | |||
) | const [pure virtual] |
Association Sim To Reco with Collections.
Implemented in TrackAssociatorByChi2, TrackAssociatorByHits, and TrackAssociatorByPosition.
virtual reco::SimToRecoCollection TrackAssociatorBase::associateSimToReco | ( | edm::Handle< edm::View< reco::Track > > & | tCH, | |
edm::Handle< TrackingParticleCollection > & | tPCH, | |||
const edm::Event * | event = 0 | |||
) | const [inline, virtual] |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented in TrackAssociatorByChi2, and TrackAssociatorByHits.
Definition at line 59 of file TrackAssociatorBase.h.
References event(), edm::Handle< T >::id(), j, edm::RefToBaseVector< T >::push_back(), and tc.
Referenced by PhotonValidator::analyze(), GlobalMuonMatchAnalyzer::analyze(), RecoMuonValidator::analyze(), TrackAssociatorByChi2::associateSimToReco(), and TrackAssociatorByHits::associateSimToReco().
00061 { 00062 edm::RefToBaseVector<reco::Track> tc(tCH); 00063 for (unsigned int j=0; j<tCH->size();j++) 00064 tc.push_back(edm::RefToBase<reco::Track>(tCH,j)); 00065 00066 edm::RefVector<TrackingParticleCollection> tpc(tPCH.id()); 00067 for (unsigned int j=0; j<tPCH->size();j++) 00068 tpc.push_back(edm::Ref<TrackingParticleCollection>(tPCH,j)); 00069 00070 return associateSimToReco(tc,tpc,event); 00071 }