Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:16

0001 #ifndef RecoCandidate_RecoPFClusterRefCandidate_h
0002 #define RecoCandidate_RecoPFClusterRefCandidate_h
0003 
0004 #include "DataFormats/Candidate/interface/LeafRefCandidateT.h"
0005 #include "DataFormats/ParticleFlowReco/interface/PFClusterFwd.h"
0006 #include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
0007 
0008 namespace reco {
0009 
0010   typedef LeafRefCandidateT RecoPFClusterRefCandidateBase;
0011 
0012   class RecoPFClusterRefCandidate : public LeafRefCandidateT {
0013   public:
0014     RecoPFClusterRefCandidate() : LeafRefCandidateT() {}
0015     RecoPFClusterRefCandidate(PFClusterRef ref, float m) : LeafRefCandidateT(ref, m) {}
0016 
0017     ~RecoPFClusterRefCandidate() override {}
0018 
0019     RecoPFClusterRefCandidate* clone() const override { return new RecoPFClusterRefCandidate(*this); }
0020 
0021     reco::PFClusterRef pfCluster() const { return getRef<reco::PFClusterRef>(); }
0022   };
0023 }  // namespace reco
0024 
0025 #endif