CMS 3D CMS Logo

LayerClusterToCaloParticleAssociator.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
2 #define SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
3 // Original Author: Marco Rovere
4 
5 // system include files
6 #include <memory>
7 
8 // user include files
9 
11 
12 // forward declarations
13 
14 namespace ticl {
15 
17  public:
18  LayerClusterToCaloParticleAssociator(std::unique_ptr<ticl::LayerClusterToCaloParticleAssociatorBaseImpl>);
24  delete; // stop default
25 
27 
28  // ---------- const member functions ---------------------
31  const edm::Handle<CaloParticleCollection> &cPCH) const {
32  return m_impl->associateRecoToSim(cCCH, cPCH);
33  };
34 
37  const edm::Handle<CaloParticleCollection> &cPCH) const {
38  return m_impl->associateSimToReco(cCCH, cPCH);
39  }
40 
41  private:
42  // ---------- member data --------------------------------
43  std::unique_ptr<LayerClusterToCaloParticleAssociatorBaseImpl> m_impl;
44  };
45 } // namespace ticl
46 
47 #endif
LayerClusterToCaloParticleAssociator & operator=(LayerClusterToCaloParticleAssociator &&)=default
ticl::SimToRecoCollection associateSimToReco(const edm::Handle< reco::CaloClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
Associate a CaloParticle to LayerClusters.
ticl::RecoToSimCollection associateRecoToSim(const edm::Handle< reco::CaloClusterCollection > &cCCH, const edm::Handle< CaloParticleCollection > &cPCH) const
Associate a LayerCluster to CaloParticles.
std::unique_ptr< LayerClusterToCaloParticleAssociatorBaseImpl > m_impl
Definition: Common.h:10