CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
TrackAssociatorBase Class Referenceabstract

#include <TrackAssociatorBase.h>

Inheritance diagram for TrackAssociatorBase:
MuonAssociatorByHits QuickTrackAssociatorByHits TrackAssociatorByChi2 TrackAssociatorByHits TrackAssociatorByPosition

Public Member Functions

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

Detailed Description

Base class for TrackAssociators. Methods take as input the handle of Track and TrackingPArticle collections and return an AssociationMap (oneToManyWithQuality)

Author
magni, cerati

Definition at line 33 of file TrackAssociatorBase.h.

Constructor & Destructor Documentation

TrackAssociatorBase::TrackAssociatorBase ( )
inline

Constructor.

Definition at line 36 of file TrackAssociatorBase.h.

36 {;}
virtual TrackAssociatorBase::~TrackAssociatorBase ( )
inlinevirtual

Destructor.

Definition at line 38 of file TrackAssociatorBase.h.

38 {;}

Member Function Documentation

virtual reco::RecoToSimCollection TrackAssociatorBase::associateRecoToSim ( edm::Handle< edm::View< reco::Track > > &  tCH,
edm::Handle< TrackingParticleCollection > &  tPCH,
const edm::Event event,
const edm::EventSetup setup 
) const
inlinevirtual

compare reco to sim the handle of reco::Track and TrackingParticle collections

Reimplemented in TrackAssociatorByChi2, QuickTrackAssociatorByHits, and TrackAssociatorByHits.

Definition at line 42 of file TrackAssociatorBase.h.

References edm::HandleBase::id(), j, edm::RefToBaseVector< T >::push_back(), and edm::RefVector< C, T, F >::push_back().

Referenced by GlobalMuonMatchAnalyzer::analyze(), TestOutliers::analyze(), PrimaryVertexAnalyzer4PU::analyze(), TrackAssociatorByHits::associateRecoToSim(), TrackAssociatorByChi2::associateRecoToSim(), and MCTrackMatcher::produce().

45  {
47  for (unsigned int j=0; j<tCH->size();j++)
48  tc.push_back(edm::RefToBase<reco::Track>(tCH,j));
49 
51  for (unsigned int j=0; j<tPCH->size();j++)
53 
54  return associateRecoToSim(tc,tpc,event,setup);
55  }
ProductID id() const
Definition: HandleBase.cc:15
int j
Definition: DBlmapReader.cc:9
virtual reco::RecoToSimCollection associateRecoToSim(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
virtual reco::RecoToSimCollection TrackAssociatorBase::associateRecoToSim ( const edm::RefToBaseVector< reco::Track > &  tc,
const edm::RefVector< TrackingParticleCollection > &  tpc,
const edm::Event event,
const edm::EventSetup setup 
) const
pure virtual
virtual reco::RecoToSimCollectionSeed TrackAssociatorBase::associateRecoToSim ( edm::Handle< edm::View< TrajectorySeed > > &  ,
edm::Handle< TrackingParticleCollection > &  ,
const edm::Event event,
const edm::EventSetup setup 
) const
inlinevirtual
virtual reco::RecoToSimCollectionTCandidate TrackAssociatorBase::associateRecoToSim ( edm::Handle< TrackCandidateCollection > &  ,
edm::Handle< TrackingParticleCollection > &  ,
const edm::Event event,
const edm::EventSetup setup 
) const
inlinevirtual
virtual reco::SimToRecoCollection TrackAssociatorBase::associateSimToReco ( edm::Handle< edm::View< reco::Track > > &  tCH,
edm::Handle< TrackingParticleCollection > &  tPCH,
const edm::Event event,
const edm::EventSetup setup 
) const
inlinevirtual

compare reco to sim the handle of reco::Track and TrackingParticle collections

Reimplemented in TrackAssociatorByChi2, QuickTrackAssociatorByHits, and TrackAssociatorByHits.

Definition at line 58 of file TrackAssociatorBase.h.

References edm::HandleBase::id(), j, edm::RefToBaseVector< T >::push_back(), and edm::RefVector< C, T, F >::push_back().

Referenced by GlobalMuonMatchAnalyzer::analyze(), TrackAssociatorByHits::associateSimToReco(), and TrackAssociatorByChi2::associateSimToReco().

61  {
63  for (unsigned int j=0; j<tCH->size();j++)
64  tc.push_back(edm::RefToBase<reco::Track>(tCH,j));
65 
67  for (unsigned int j=0; j<tPCH->size();j++)
69 
70  return associateSimToReco(tc,tpc,event,setup);
71  }
ProductID id() const
Definition: HandleBase.cc:15
int j
Definition: DBlmapReader.cc:9
virtual reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event, const edm::EventSetup *setup) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:64
virtual reco::SimToRecoCollection TrackAssociatorBase::associateSimToReco ( const edm::RefToBaseVector< reco::Track > &  tc,
const edm::RefVector< TrackingParticleCollection > &  tpc,
const edm::Event event,
const edm::EventSetup setup 
) const
pure virtual
virtual reco::SimToRecoCollectionSeed TrackAssociatorBase::associateSimToReco ( edm::Handle< edm::View< TrajectorySeed > > &  ,
edm::Handle< TrackingParticleCollection > &  ,
const edm::Event event,
const edm::EventSetup setup 
) const
inlinevirtual
virtual reco::SimToRecoCollectionTCandidate TrackAssociatorBase::associateSimToReco ( edm::Handle< TrackCandidateCollection > &  ,
edm::Handle< TrackingParticleCollection > &  ,
const edm::Event event,
const edm::EventSetup setup 
) const
inlinevirtual