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...
 
TrackToGenParticleAssociatoroperator= (TrackToGenParticleAssociator &&)=default
 
 TrackToGenParticleAssociator ()=default
 Constructor. More...
 
 TrackToGenParticleAssociator (std::unique_ptr< reco::TrackToGenParticleAssociatorBaseImpl >)
 
 TrackToGenParticleAssociator (TrackToGenParticleAssociator &&)=default
 
 ~TrackToGenParticleAssociator ()=default
 

Private Member Functions

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

Private Attributes

std::unique_ptr< TrackToGenParticleAssociatorBaseImplm_impl
 

Detailed Description

Definition at line 34 of file TrackToGenParticleAssociator.h.

Constructor & Destructor Documentation

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( )
default

Constructor.

Referenced by associateGenToReco().

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(src, dest)
Definition: eostools.py:511
reco::TrackToGenParticleAssociator::~TrackToGenParticleAssociator ( )
default
reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( TrackToGenParticleAssociator &&  )
default
reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( const TrackToGenParticleAssociator )
privatedelete

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

References m_impl.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

52  {
53  return m_impl->associateGenToReco(tracks, gens);
54  }
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 63 of file TrackToGenParticleAssociator.h.

References m_impl, operator=(), and TrackToGenParticleAssociator().

64  {
65  return m_impl->associateGenToReco(tCH, tPCH);
66  }
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 46 of file TrackToGenParticleAssociator.h.

References m_impl.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

47  {
48  return m_impl->associateRecoToGen(tracks, gens);
49  }
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 57 of file TrackToGenParticleAssociator.h.

References m_impl.

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

Referenced by associateGenToReco().

const TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( const TrackToGenParticleAssociator )
privatedelete

Member Data Documentation

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

Definition at line 73 of file TrackToGenParticleAssociator.h.

Referenced by associateGenToReco(), and associateRecoToGen().