CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
reco::TrackToGenParticleAssociator Class Reference

#include <TrackToGenParticleAssociator.h>

Public Member Functions

reco::GenToRecoCollection associateGenToReco (const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const
 Association Sim To Reco with Collections (Gen Particle version) More...
 
reco::GenToRecoCollection associateGenToReco (const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< reco::GenParticleCollection > &tPCH) const
 compare reco to sim the handle of reco::Track and GenParticle collections More...
 
reco::RecoToGenCollection associateRecoToGen (const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const
 Association Sim To Reco with Collections (Gen Particle version) More...
 
reco::RecoToGenCollection associateRecoToGen (const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< reco::GenParticleCollection > &tPCH) const
 compare reco to sim the handle of reco::Track and GenParticle collections More...
 
void swap (TrackToGenParticleAssociator &iOther)
 
 TrackToGenParticleAssociator ()
 Constructor. More...
 
 TrackToGenParticleAssociator (std::unique_ptr< reco::TrackToGenParticleAssociatorBaseImpl >)
 
 ~TrackToGenParticleAssociator ()
 

Private Member Functions

const TrackToGenParticleAssociatoroperator= (const TrackToGenParticleAssociator &)
 
 TrackToGenParticleAssociator (const TrackToGenParticleAssociator &)
 

Private Attributes

TrackToGenParticleAssociatorBaseImplm_impl
 

Detailed Description

Definition at line 34 of file TrackToGenParticleAssociator.h.

Constructor & Destructor Documentation

TrackToGenParticleAssociator::TrackToGenParticleAssociator ( )

Constructor.

Definition at line 30 of file TrackToGenParticleAssociator.cc.

Referenced by swap().

31 {
32 }
TrackToGenParticleAssociator::TrackToGenParticleAssociator ( std::unique_ptr< reco::TrackToGenParticleAssociatorBaseImpl impl)

Definition at line 34 of file TrackToGenParticleAssociator.cc.

34  : m_impl(impl.release())
35 {
36 }
TrackToGenParticleAssociatorBaseImpl * m_impl
TrackToGenParticleAssociator::~TrackToGenParticleAssociator ( )

Definition at line 38 of file TrackToGenParticleAssociator.cc.

References m_impl.

39 {
40  delete m_impl;
41 }
TrackToGenParticleAssociatorBaseImpl * m_impl
reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( const TrackToGenParticleAssociator )
private

Member Function Documentation

reco::GenToRecoCollection reco::TrackToGenParticleAssociator::associateGenToReco ( const edm::RefToBaseVector< reco::Track > &  tracks,
const edm::RefVector< reco::GenParticleCollection > &  gens 
) const
inline

Association Sim To Reco with Collections (Gen Particle version)

Definition at line 50 of file TrackToGenParticleAssociator.h.

References reco::TrackToGenParticleAssociatorBaseImpl::associateGenToReco(), and m_impl.

Referenced by MultiTrackValidatorGenPs::analyze().

51  {
52  return m_impl->associateGenToReco(tracks,gens);
53  }
TrackToGenParticleAssociatorBaseImpl * m_impl
virtual reco::GenToRecoCollection associateGenToReco(const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const =0
Association Sim To Reco with Collections (Gen Particle version)
reco::GenToRecoCollection reco::TrackToGenParticleAssociator::associateGenToReco ( const edm::Handle< edm::View< reco::Track > > &  tCH,
const edm::Handle< reco::GenParticleCollection > &  tPCH 
) const
inline

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

Definition at line 62 of file TrackToGenParticleAssociator.h.

References reco::TrackToGenParticleAssociatorBaseImpl::associateGenToReco(), and m_impl.

63  {
64  return m_impl->associateGenToReco(tCH,tPCH);
65  }
TrackToGenParticleAssociatorBaseImpl * m_impl
virtual reco::GenToRecoCollection associateGenToReco(const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const =0
Association Sim To Reco with Collections (Gen Particle version)
reco::RecoToGenCollection reco::TrackToGenParticleAssociator::associateRecoToGen ( const edm::RefToBaseVector< reco::Track > &  tracks,
const edm::RefVector< reco::GenParticleCollection > &  gens 
) const
inline

Association Sim To Reco with Collections (Gen Particle version)

Definition at line 45 of file TrackToGenParticleAssociator.h.

References reco::TrackToGenParticleAssociatorBaseImpl::associateRecoToGen(), and m_impl.

Referenced by MultiTrackValidatorGenPs::analyze().

46  {
47  return m_impl->associateRecoToGen(tracks ,gens);
48  }
virtual reco::RecoToGenCollection associateRecoToGen(const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const =0
Association Sim To Reco with Collections (Gen Particle version)
TrackToGenParticleAssociatorBaseImpl * m_impl
reco::RecoToGenCollection reco::TrackToGenParticleAssociator::associateRecoToGen ( const edm::Handle< edm::View< reco::Track > > &  tCH,
const edm::Handle< reco::GenParticleCollection > &  tPCH 
) const
inline

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

Definition at line 56 of file TrackToGenParticleAssociator.h.

References reco::TrackToGenParticleAssociatorBaseImpl::associateRecoToGen(), and m_impl.

57  {
58  return m_impl->associateRecoToGen(tCH, tPCH);
59  }
virtual reco::RecoToGenCollection associateRecoToGen(const edm::RefToBaseVector< reco::Track > &tracks, const edm::RefVector< reco::GenParticleCollection > &gens) const =0
Association Sim To Reco with Collections (Gen Particle version)
TrackToGenParticleAssociatorBaseImpl * m_impl
const TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( const TrackToGenParticleAssociator )
private

Referenced by swap().

void reco::TrackToGenParticleAssociator::swap ( TrackToGenParticleAssociator iOther)
inline

Definition at line 67 of file TrackToGenParticleAssociator.h.

References m_impl, operator=(), std::swap(), and TrackToGenParticleAssociator().

67  {
68  std::swap(m_impl, iOther.m_impl);
69  }
TrackToGenParticleAssociatorBaseImpl * m_impl
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)

Member Data Documentation

TrackToGenParticleAssociatorBaseImpl* reco::TrackToGenParticleAssociator::m_impl
private