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=0, const edm::EventSetup *setup=0) 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=0, const edm::EventSetup *setup=0) const =0
 Association Reco To Sim with Collections. More...
 
virtual
reco::RecoToSimCollectionSeed 
associateRecoToSim (const edm::Handle< edm::View< TrajectorySeed > > &, const edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) const
 
virtual
reco::RecoToSimCollectionTCandidate 
associateRecoToSim (const edm::Handle< TrackCandidateCollection > &, const edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) const
 
virtual reco::SimToRecoCollection associateSimToReco (edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event=0, const edm::EventSetup *setup=0) 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=0, const edm::EventSetup *setup=0) const =0
 Association Sim To Reco with Collections. More...
 
virtual
reco::SimToRecoCollectionSeed 
associateSimToReco (const edm::Handle< edm::View< TrajectorySeed > > &, const edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) const
 
virtual
reco::SimToRecoCollectionTCandidate 
associateSimToReco (const edm::Handle< TrackCandidateCollection > &, const edm::Handle< TrackingParticleCollection > &, const edm::Event *event=0, const edm::EventSetup *setup=0) 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)

Date:
2010/05/18 15:40:39
Revision:
1.17
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.

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

Destructor.

Definition at line 40 of file TrackAssociatorBase.h.

40 {;}

Member Function Documentation

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
inlinevirtual

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

Reimplemented in TrackAssociatorByChi2, QuickTrackAssociatorByHits, and TrackAssociatorByHits.

Definition at line 44 of file TrackAssociatorBase.h.

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

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

47  {
49  for (unsigned int j=0; j<tCH->size();j++)
50  tc.push_back(edm::RefToBase<reco::Track>(tCH,j));
51 
53  for (unsigned int j=0; j<tPCH->size();j++)
55 
56  return associateRecoToSim(tc,tpc,event,setup);
57  }
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=0, const edm::EventSetup *setup=0) 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 = 0,
const edm::EventSetup setup = 0 
) const
pure virtual
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
inlinevirtual
virtual reco::RecoToSimCollectionTCandidate TrackAssociatorBase::associateRecoToSim ( const edm::Handle< TrackCandidateCollection > &  ,
const edm::Handle< TrackingParticleCollection > &  ,
const edm::Event event = 0,
const edm::EventSetup setup = 0 
) const
inlinevirtual
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
inlinevirtual

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

Reimplemented in TrackAssociatorByChi2, QuickTrackAssociatorByHits, and TrackAssociatorByHits.

Definition at line 60 of file TrackAssociatorBase.h.

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

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

63  {
65  for (unsigned int j=0; j<tCH->size();j++)
66  tc.push_back(edm::RefToBase<reco::Track>(tCH,j));
67 
69  for (unsigned int j=0; j<tPCH->size();j++)
71 
72  return associateSimToReco(tc,tpc,event,setup);
73  }
ProductID id() const
Definition: HandleBase.cc:15
virtual reco::SimToRecoCollection associateSimToReco(edm::Handle< edm::View< reco::Track > > &tCH, edm::Handle< TrackingParticleCollection > &tPCH, const edm::Event *event=0, const edm::EventSetup *setup=0) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
int j
Definition: DBlmapReader.cc:9
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 = 0,
const edm::EventSetup setup = 0 
) const
pure virtual
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
inlinevirtual
virtual reco::SimToRecoCollectionTCandidate TrackAssociatorBase::associateSimToReco ( const edm::Handle< TrackCandidateCollection > &  ,
const edm::Handle< TrackingParticleCollection > &  ,
const edm::Event event = 0,
const edm::EventSetup setup = 0 
) const
inlinevirtual