#include <TrackAssociatorBase.h>
Base class for TrackAssociators. 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::RecoToSimCollection TrackAssociatorBase::associateRecoToSim | ( | edm::Handle< edm::View< reco::Track > > & | tCH, |
edm::Handle< TrackingParticleCollection > & | tPCH, | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const [inline, virtual] |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented in QuickTrackAssociatorByHits, TrackAssociatorByChi2, and TrackAssociatorByHits.
Definition at line 44 of file TrackAssociatorBase.h.
References event(), edm::HandleBase::id(), j, edm::RefVector< C, T, F >::push_back(), edm::RefToBaseVector< T >::push_back(), and HcalObjRepresent::setup().
Referenced by PrimaryVertexAnalyzer4PU::analyze(), GlobalMuonMatchAnalyzer::analyze(), TestOutliers::analyze(), and MCTrackMatcher::produce().
{ edm::RefToBaseVector<reco::Track> tc(tCH); for (unsigned int j=0; j<tCH->size();j++) tc.push_back(edm::RefToBase<reco::Track>(tCH,j)); edm::RefVector<TrackingParticleCollection> tpc(tPCH.id()); for (unsigned int j=0; j<tPCH->size();j++) tpc.push_back(edm::Ref<TrackingParticleCollection>(tPCH,j)); return associateRecoToSim(tc,tpc,event,setup); }
virtual reco::RecoToSimCollectionSeed TrackAssociatorBase::associateRecoToSim | ( | const edm::Handle< edm::View< TrajectorySeed > > & | , |
const edm::Handle< TrackingParticleCollection > & | , | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const [inline, virtual] |
Definition at line 87 of file TrackAssociatorBase.h.
References relativeConstraints::empty.
{ reco::RecoToSimCollectionSeed empty; return empty; }
virtual reco::RecoToSimCollectionTCandidate TrackAssociatorBase::associateRecoToSim | ( | const edm::Handle< TrackCandidateCollection > & | , |
const edm::Handle< TrackingParticleCollection > & | , | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const [inline, virtual] |
Definition at line 104 of file TrackAssociatorBase.h.
References relativeConstraints::empty.
{ reco::RecoToSimCollectionTCandidate empty; return empty; }
virtual reco::RecoToSimCollection TrackAssociatorBase::associateRecoToSim | ( | const edm::RefToBaseVector< reco::Track > & | tc, |
const edm::RefVector< TrackingParticleCollection > & | tpc, | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const [pure virtual] |
Association Reco To Sim with Collections.
Implemented in MuonAssociatorByHits, QuickTrackAssociatorByHits, 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 edm::EventSetup * | setup = 0 |
||
) | const [inline, virtual] |
compare reco to sim the handle of reco::Track and TrackingParticle collections
Reimplemented in QuickTrackAssociatorByHits, TrackAssociatorByChi2, and TrackAssociatorByHits.
Definition at line 60 of file TrackAssociatorBase.h.
References event(), edm::HandleBase::id(), j, edm::RefVector< C, T, F >::push_back(), edm::RefToBaseVector< T >::push_back(), and HcalObjRepresent::setup().
Referenced by GlobalMuonMatchAnalyzer::analyze().
{ edm::RefToBaseVector<reco::Track> tc(tCH); for (unsigned int j=0; j<tCH->size();j++) tc.push_back(edm::RefToBase<reco::Track>(tCH,j)); edm::RefVector<TrackingParticleCollection> tpc(tPCH.id()); for (unsigned int j=0; j<tPCH->size();j++) tpc.push_back(edm::Ref<TrackingParticleCollection>(tPCH,j)); return associateSimToReco(tc,tpc,event,setup); }
virtual reco::SimToRecoCollection TrackAssociatorBase::associateSimToReco | ( | const edm::RefToBaseVector< reco::Track > & | tc, |
const edm::RefVector< TrackingParticleCollection > & | tpc, | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const [pure virtual] |
Association Sim To Reco with Collections.
Implemented in MuonAssociatorByHits, QuickTrackAssociatorByHits, TrackAssociatorByChi2, TrackAssociatorByHits, and TrackAssociatorByPosition.
virtual reco::SimToRecoCollectionSeed TrackAssociatorBase::associateSimToReco | ( | const edm::Handle< edm::View< TrajectorySeed > > & | , |
const edm::Handle< TrackingParticleCollection > & | , | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const [inline, virtual] |
Definition at line 95 of file TrackAssociatorBase.h.
References relativeConstraints::empty.
{ reco::SimToRecoCollectionSeed empty; return empty; }
virtual reco::SimToRecoCollectionTCandidate TrackAssociatorBase::associateSimToReco | ( | const edm::Handle< TrackCandidateCollection > & | , |
const edm::Handle< TrackingParticleCollection > & | , | ||
const edm::Event * | event = 0 , |
||
const edm::EventSetup * | setup = 0 |
||
) | const [inline, virtual] |
Definition at line 112 of file TrackAssociatorBase.h.
References relativeConstraints::empty.
{ reco::SimToRecoCollectionTCandidate empty; return empty; }