CMS 3D CMS Logo

Public Member Functions

TrackAssociatorBase Class Reference

#include <TrackAssociatorBase.h>

Inheritance diagram for TrackAssociatorBase:
MuonAssociatorByHits QuickTrackAssociatorByHits TrackAssociatorByChi2 TrackAssociatorByHits TrackAssociatorByPosition

List of all members.

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
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.
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::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::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
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
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.
 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:
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.

{;} 
virtual TrackAssociatorBase::~TrackAssociatorBase ( ) [inline, virtual]

Destructor.

Definition at line 40 of file TrackAssociatorBase.h.

{;}

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 [inline, 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 [inline, virtual]

Reimplemented in TrackAssociatorByHits.

Definition at line 87 of file TrackAssociatorBase.h.

References relativeConstraints::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]
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::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]
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]

Reimplemented in TrackAssociatorByHits.

Definition at line 95 of file TrackAssociatorBase.h.

References relativeConstraints::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]