CMS 3D CMS Logo

TrackAssociatorBase Class Reference

Base class for TrackAssociators. More...

#include <SimTracker/TrackAssociation/interface/TrackAssociatorBase.h>

Inheritance diagram for TrackAssociatorBase:

TrackAssociatorByChi2 TrackAssociatorByHits TrackAssociatorByPosition

List of all members.

Public Member Functions

virtual
reco::RecoToSimCollectionTCandidate 
associateRecoToSim (edm::Handle< TrackCandidateCollection > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0) const
virtual
reco::RecoToSimCollectionSeed 
associateRecoToSim (edm::Handle< edm::View< TrajectorySeed > > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0) const
virtual reco::RecoToSimCollection associateRecoToSim (edm::RefToBaseVector< reco::Track > &tc, edm::RefVector< TrackingParticleCollection > &tpc, const edm::Event *event=0) const =0
 Association Reco To Sim with Collections.
virtual reco::RecoToSimCollection associateRecoToSim (edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event=0) const
 compare reco to sim the handle of reco::Track and TrackingParticle collections
virtual
reco::SimToRecoCollectionTCandidate 
associateSimToReco (edm::Handle< TrackCandidateCollection > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0) const
virtual
reco::SimToRecoCollectionSeed 
associateSimToReco (edm::Handle< edm::View< TrajectorySeed > > &, edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0) const
virtual reco::SimToRecoCollection associateSimToReco (edm::RefToBaseVector< reco::Track > &tc, edm::RefVector< TrackingParticleCollection > &tpc, const edm::Event *event=0) const =0
 Association Sim To Reco with Collections.
virtual reco::SimToRecoCollection associateSimToReco (edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event=0) const
 compare reco to sim the handle of reco::Track and TrackingParticle collections
 TrackAssociatorBase ()
 Constructor.
virtual ~TrackAssociatorBase ()
 Destructor.


Detailed Description

Base class for TrackAssociators.

Methods take as input the handle of Track and TrackingPArticle collections and return an AssociationMap (oneToManyWithQuality)

Date
2008/03/03 16:50:46
Revision
1.15
Author:
magni, cerati

Definition at line 35 of file TrackAssociatorBase.h.


Constructor & Destructor Documentation

TrackAssociatorBase::TrackAssociatorBase (  )  [inline]

Constructor.

Definition at line 38 of file TrackAssociatorBase.h.

00038 {;} 

virtual TrackAssociatorBase::~TrackAssociatorBase (  )  [inline, virtual]

Destructor.

Definition at line 40 of file TrackAssociatorBase.h.

00040 {;}


Member Function Documentation

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   }  


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:33:57 2009 for CMSSW by  doxygen 1.5.4