CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
hgcal::LayerClusterToCaloParticleAssociator Class Reference

#include <LayerClusterToCaloParticleAssociator.h>

Public Member Functions

hgcal::RecoToSimCollection associateRecoToSim (const edm::Handle< reco::CaloClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
 Associate a LayerCluster to CaloParticles. More...
 
hgcal::SimToRecoCollection associateSimToReco (const edm::Handle< reco::CaloClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
 Associate a CaloParticle to LayerClusters. More...
 
 LayerClusterToCaloParticleAssociator (std::unique_ptr< hgcal::LayerClusterToCaloParticleAssociatorBaseImpl >)
 
 LayerClusterToCaloParticleAssociator ()=default
 
 LayerClusterToCaloParticleAssociator (LayerClusterToCaloParticleAssociator &&)=default
 
 LayerClusterToCaloParticleAssociator (const LayerClusterToCaloParticleAssociator &)=delete
 
LayerClusterToCaloParticleAssociatoroperator= (LayerClusterToCaloParticleAssociator &&)=default
 
const LayerClusterToCaloParticleAssociatoroperator= (const LayerClusterToCaloParticleAssociator &)=delete
 
 ~LayerClusterToCaloParticleAssociator ()=default
 

Private Attributes

std::unique_ptr< LayerClusterToCaloParticleAssociatorBaseImplm_impl
 

Detailed Description

Definition at line 16 of file LayerClusterToCaloParticleAssociator.h.

Constructor & Destructor Documentation

◆ LayerClusterToCaloParticleAssociator() [1/4]

hgcal::LayerClusterToCaloParticleAssociator::LayerClusterToCaloParticleAssociator ( std::unique_ptr< hgcal::LayerClusterToCaloParticleAssociatorBaseImpl ptr)

Definition at line 5 of file LayerClusterToCaloParticleAssociator.cc.

7  : m_impl(std::move(ptr)) {}
std::unique_ptr< LayerClusterToCaloParticleAssociatorBaseImpl > m_impl
def move(src, dest)
Definition: eostools.py:511

◆ LayerClusterToCaloParticleAssociator() [2/4]

hgcal::LayerClusterToCaloParticleAssociator::LayerClusterToCaloParticleAssociator ( )
default

◆ LayerClusterToCaloParticleAssociator() [3/4]

hgcal::LayerClusterToCaloParticleAssociator::LayerClusterToCaloParticleAssociator ( LayerClusterToCaloParticleAssociator &&  )
default

◆ LayerClusterToCaloParticleAssociator() [4/4]

hgcal::LayerClusterToCaloParticleAssociator::LayerClusterToCaloParticleAssociator ( const LayerClusterToCaloParticleAssociator )
delete

◆ ~LayerClusterToCaloParticleAssociator()

hgcal::LayerClusterToCaloParticleAssociator::~LayerClusterToCaloParticleAssociator ( )
default

Member Function Documentation

◆ associateRecoToSim()

hgcal::RecoToSimCollection hgcal::LayerClusterToCaloParticleAssociator::associateRecoToSim ( const edm::Handle< reco::CaloClusterCollection > &  cCCH,
const edm::Handle< CaloParticleCollection > &  cPCH 
) const
inline

Associate a LayerCluster to CaloParticles.

Definition at line 30 of file LayerClusterToCaloParticleAssociator.h.

References m_impl.

Referenced by LCToCPAssociatorEDProducer::produce().

31  {
32  return m_impl->associateRecoToSim(cCCH, cPCH);
33  };
std::unique_ptr< LayerClusterToCaloParticleAssociatorBaseImpl > m_impl

◆ associateSimToReco()

hgcal::SimToRecoCollection hgcal::LayerClusterToCaloParticleAssociator::associateSimToReco ( const edm::Handle< reco::CaloClusterCollection > &  cCCH,
const edm::Handle< CaloParticleCollection > &  cPCH 
) const
inline

Associate a CaloParticle to LayerClusters.

Definition at line 36 of file LayerClusterToCaloParticleAssociator.h.

References m_impl.

Referenced by LCToCPAssociatorEDProducer::produce().

37  {
38  return m_impl->associateSimToReco(cCCH, cPCH);
39  }
std::unique_ptr< LayerClusterToCaloParticleAssociatorBaseImpl > m_impl

◆ operator=() [1/2]

LayerClusterToCaloParticleAssociator& hgcal::LayerClusterToCaloParticleAssociator::operator= ( LayerClusterToCaloParticleAssociator &&  )
default

◆ operator=() [2/2]

const LayerClusterToCaloParticleAssociator& hgcal::LayerClusterToCaloParticleAssociator::operator= ( const LayerClusterToCaloParticleAssociator )
delete

Member Data Documentation

◆ m_impl

std::unique_ptr<LayerClusterToCaloParticleAssociatorBaseImpl> hgcal::LayerClusterToCaloParticleAssociator::m_impl
private