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::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::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::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...
 
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...
 
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

◆ TrackToGenParticleAssociator() [1/4]

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( )
default

Constructor.

◆ TrackToGenParticleAssociator() [2/4]

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

Definition at line 29 of file TrackToGenParticleAssociator.cc.

31  : m_impl(std::move(impl)) {}

◆ ~TrackToGenParticleAssociator()

reco::TrackToGenParticleAssociator::~TrackToGenParticleAssociator ( )
default

◆ TrackToGenParticleAssociator() [3/4]

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( TrackToGenParticleAssociator &&  )
default

◆ TrackToGenParticleAssociator() [4/4]

reco::TrackToGenParticleAssociator::TrackToGenParticleAssociator ( const TrackToGenParticleAssociator )
privatedelete

Member Function Documentation

◆ associateGenToReco() [1/2]

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.

64  {
65  return m_impl->associateGenToReco(tCH, tPCH);
66  }

References m_impl.

◆ associateGenToReco() [2/2]

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.

52  {
53  return m_impl->associateGenToReco(tracks, gens);
54  }

References m_impl, and PDWG_EXOHSCP_cff::tracks.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

◆ associateRecoToGen() [1/2]

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.

58  {
59  return m_impl->associateRecoToGen(tCH, tPCH);
60  }

References m_impl.

◆ associateRecoToGen() [2/2]

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.

47  {
48  return m_impl->associateRecoToGen(tracks, gens);
49  }

References m_impl, and PDWG_EXOHSCP_cff::tracks.

Referenced by MultiTrackValidatorGenPs::dqmAnalyze().

◆ operator=() [1/2]

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

◆ operator=() [2/2]

TrackToGenParticleAssociator& reco::TrackToGenParticleAssociator::operator= ( TrackToGenParticleAssociator &&  )
default

Member Data Documentation

◆ m_impl

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

Definition at line 73 of file TrackToGenParticleAssociator.h.

Referenced by associateGenToReco(), and associateRecoToGen().

PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
reco::TrackToGenParticleAssociator::m_impl
std::unique_ptr< TrackToGenParticleAssociatorBaseImpl > m_impl
Definition: TrackToGenParticleAssociator.h:73
impl
Definition: trackAlgoPriorityOrder.h:18
eostools.move
def move(src, dest)
Definition: eostools.py:511