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 30 of file TrackToGenParticleAssociator.cc.

31 {
32 }
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 52 of file TrackToGenParticleAssociator.h.

References m_impl.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

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

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

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

References m_impl.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

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

References m_impl.

59  {
60  return m_impl->associateRecoToGen(tCH, tPCH);
61  }
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 75 of file TrackToGenParticleAssociator.h.

Referenced by associateGenToReco(), and associateRecoToGen().