File indexing completed on 2024-05-29 23:13:10
0001 #ifndef SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
0002 #define SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
0003
0004
0005
0006 #include <memory>
0007
0008
0009
0010 #include "SimDataFormats/Associations/interface/LayerClusterToCaloParticleAssociatorBaseImpl.h"
0011
0012
0013
0014 namespace ticl {
0015
0016 class LayerClusterToCaloParticleAssociator {
0017 public:
0018 LayerClusterToCaloParticleAssociator(std::unique_ptr<ticl::LayerClusterToCaloParticleAssociatorBaseImpl>);
0019 LayerClusterToCaloParticleAssociator() = default;
0020 LayerClusterToCaloParticleAssociator(LayerClusterToCaloParticleAssociator &&) = default;
0021 LayerClusterToCaloParticleAssociator &operator=(LayerClusterToCaloParticleAssociator &&) = default;
0022 LayerClusterToCaloParticleAssociator(const LayerClusterToCaloParticleAssociator &) = delete;
0023 const LayerClusterToCaloParticleAssociator &operator=(const LayerClusterToCaloParticleAssociator &) =
0024 delete;
0025
0026 ~LayerClusterToCaloParticleAssociator() = default;
0027
0028
0029
0030 ticl::RecoToSimCollection associateRecoToSim(const edm::Handle<reco::CaloClusterCollection> &cCCH,
0031 const edm::Handle<CaloParticleCollection> &cPCH) const {
0032 return m_impl->associateRecoToSim(cCCH, cPCH);
0033 };
0034
0035
0036 ticl::SimToRecoCollection associateSimToReco(const edm::Handle<reco::CaloClusterCollection> &cCCH,
0037 const edm::Handle<CaloParticleCollection> &cPCH) const {
0038 return m_impl->associateSimToReco(cCCH, cPCH);
0039 }
0040
0041 private:
0042
0043 std::unique_ptr<LayerClusterToCaloParticleAssociatorBaseImpl> m_impl;
0044 };
0045 }
0046
0047 #endif