CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
TrackToGenParticleAssociator
operator= (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.

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.

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.

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.

46  {
47  return m_impl->associateRecoToGen(tracks ,gens);
48  }
TrackToGenParticleAssociatorBaseImpl * m_impl
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)
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  }
TrackToGenParticleAssociatorBaseImpl * m_impl
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)
const TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( const TrackToGenParticleAssociator )
private
void reco::TrackToGenParticleAssociator::swap ( TrackToGenParticleAssociator iOther)
inline

Definition at line 67 of file TrackToGenParticleAssociator.h.

References m_impl, and std::swap().

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

Definition at line 77 of file TrackToGenParticleAssociator.h.

Referenced by associateGenToReco(), associateRecoToGen(), and swap().