Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:26

0001 #ifndef CLUSTERCLUSTERMAPPING_H
0002 #define CLUSTERCLUSTERMAPPING_H
0003 
0004 #include "DataFormats/CaloRecHit/interface/CaloCluster.h"
0005 #include "DataFormats/CaloRecHit/interface/CaloClusterFwd.h"
0006 #include "DataFormats/EgammaReco/interface/SuperCluster.h"
0007 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
0008 #include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
0009 #include "DataFormats/ParticleFlowReco/interface/PFClusterFwd.h"
0010 #include "DataFormats/Common/interface/ValueMap.h"
0011 
0012 class ClusterClusterMapping {
0013 public:
0014   ClusterClusterMapping() { ; }
0015   ~ClusterClusterMapping() { ; }
0016 
0017   // check the overlap of two CaloClusters (by detid)
0018   static bool overlap(const reco::CaloCluster &sc1,
0019                       const reco::CaloCluster &sc,
0020                       float minfrac = 0.01,
0021                       bool debug = false);
0022 
0023   static bool overlap(const reco::PFClusterRef &pfclustest,
0024                       const reco::SuperCluster &sc,
0025                       const edm::ValueMap<reco::CaloClusterPtr> &pfclusassoc);
0026 
0027   static int checkOverlap(const reco::PFCluster &pfc,
0028                           const std::vector<const reco::SuperCluster *> &sc,
0029                           float minfrac = 0.01,
0030                           bool debug = false);
0031 
0032   static int checkOverlap(const reco::PFCluster &pfc,
0033                           const std::vector<reco::SuperClusterRef> &sc,
0034                           float minfrac = 0.01,
0035                           bool debug = false);
0036   static int checkOverlap(const reco::PFClusterRef &pfc,
0037                           const std::vector<reco::SuperClusterRef> &sc,
0038                           const edm::ValueMap<reco::CaloClusterPtr> &pfclusassoc);
0039 };
0040 
0041 #endif