forked from cms-sw/cmssw
/
LayerClusterToCaloParticleAssociator.h
48 lines (36 loc) · 1.96 KB
/
LayerClusterToCaloParticleAssociator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
#define SimDataFormats_Associations_LayerClusterToCaloParticleAssociator_h
// Original Author: Marco Rovere
// system include files
#include <memory>
// user include files
#include "SimDataFormats/Associations/interface/LayerClusterToCaloParticleAssociatorBaseImpl.h"
// forward declarations
namespace hgcal {
class LayerClusterToCaloParticleAssociator {
public:
LayerClusterToCaloParticleAssociator(std::unique_ptr<hgcal::LayerClusterToCaloParticleAssociatorBaseImpl>);
LayerClusterToCaloParticleAssociator() = default;
LayerClusterToCaloParticleAssociator(LayerClusterToCaloParticleAssociator &&) = default;
LayerClusterToCaloParticleAssociator &operator=(LayerClusterToCaloParticleAssociator &&) = default;
~LayerClusterToCaloParticleAssociator() = default;
// ---------- const member functions ---------------------
/// Associate a LayerCluster to CaloParticles
hgcal::RecoToSimCollection associateRecoToSim(const edm::Handle<reco::CaloClusterCollection> &cCCH,
const edm::Handle<CaloParticleCollection> &cPCH) const {
return m_impl->associateRecoToSim(cCCH, cPCH);
};
/// Associate a CaloParticle to LayerClusters
hgcal::SimToRecoCollection associateSimToReco(const edm::Handle<reco::CaloClusterCollection> &cCCH,
const edm::Handle<CaloParticleCollection> &cPCH) const {
return m_impl->associateSimToReco(cCCH, cPCH);
}
private:
LayerClusterToCaloParticleAssociator(const LayerClusterToCaloParticleAssociator &) = delete; // stop default
const LayerClusterToCaloParticleAssociator &operator=(const LayerClusterToCaloParticleAssociator &) =
delete; // stop default
// ---------- member data --------------------------------
std::unique_ptr<LayerClusterToCaloParticleAssociatorBaseImpl> m_impl;
};
} // namespace hgcal
#endif