CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public 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...
 
TrackToGenParticleAssociatoroperator= (TrackToGenParticleAssociator &&)=default
 
const
TrackToGenParticleAssociator
operator= (const TrackToGenParticleAssociator &)=delete
 
 TrackToGenParticleAssociator ()=default
 Constructor. More...
 
 TrackToGenParticleAssociator (std::unique_ptr< reco::TrackToGenParticleAssociatorBaseImpl >)
 
 TrackToGenParticleAssociator (TrackToGenParticleAssociator &&)=default
 
 TrackToGenParticleAssociator (const TrackToGenParticleAssociator &)=delete
 
 ~TrackToGenParticleAssociator ()=default
 

Private Attributes

std::unique_ptr
< TrackToGenParticleAssociatorBaseImpl
m_impl
 

Detailed Description

Definition at line 34 of file TrackToGenParticleAssociator.h.

Constructor & Destructor Documentation

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( )
default

Constructor.

TrackToGenParticleAssociator::TrackToGenParticleAssociator ( std::unique_ptr< reco::TrackToGenParticleAssociatorBaseImpl impl)

Definition at line 29 of file TrackToGenParticleAssociator.cc.

31  : m_impl(std::move(impl)) {}
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl
def move
Definition: eostools.py:511
reco::TrackToGenParticleAssociator::~TrackToGenParticleAssociator ( )
default
reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( TrackToGenParticleAssociator &&  )
default
reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( const TrackToGenParticleAssociator )
delete

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 53 of file TrackToGenParticleAssociator.h.

References m_impl.

54  {
55  return m_impl->associateGenToReco(tracks, gens);
56  }
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl
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 65 of file TrackToGenParticleAssociator.h.

References m_impl.

66  {
67  return m_impl->associateGenToReco(tCH, tPCH);
68  }
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl
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 48 of file TrackToGenParticleAssociator.h.

References m_impl.

49  {
50  return m_impl->associateRecoToGen(tracks, gens);
51  }
std::unique_ptr< 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 59 of file TrackToGenParticleAssociator.h.

References m_impl.

60  {
61  return m_impl->associateRecoToGen(tCH, tPCH);
62  }
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl
TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( TrackToGenParticleAssociator &&  )
default
const TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( const TrackToGenParticleAssociator )
delete

Member Data Documentation

std::unique_ptr<TrackToGenParticleAssociatorBaseImpl> reco::TrackToGenParticleAssociator::m_impl
private

Definition at line 71 of file TrackToGenParticleAssociator.h.

Referenced by associateGenToReco(), and associateRecoToGen().