Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef RecoParticleFlow_PFClusterTools_LinkByRecHit_h
0002 #define RecoParticleFlow_PFClusterTools_LinkByRecHit_h
0003 
0004 #include "DataFormats/ParticleFlowReco/interface/PFCluster.h"
0005 #include "DataFormats/ParticleFlowReco/interface/PFRecTrack.h"
0006 
0007 class LinkByRecHit {
0008 public:
0009   LinkByRecHit(){};
0010   ~LinkByRecHit(){};
0011 
0012   /// computes a chisquare
0013   static double computeDist(double eta1, double phi1, double eta2, double phi2, bool etaPhi = true);
0014 
0015   //tests association between a track and a cluster by rechit
0016   static double testTrackAndClusterByRecHit(const reco::PFRecTrack& track,
0017                                             const reco::PFCluster& cluster,
0018                                             bool isBrem = false,
0019                                             bool debug = false);
0020 
0021   //tests association between ECAL and PS clusters by rechit
0022   static double testECALAndPSByRecHit(const reco::PFCluster& clusterECAL,
0023                                       const reco::PFCluster& clusterPS,
0024                                       bool debug = false);
0025 
0026   /// test association between HFEM and HFHAD, by rechit
0027   static double testHFEMAndHFHADByRecHit(const reco::PFCluster& clusterHFEM,
0028                                          const reco::PFCluster& clusterHFHAD,
0029                                          bool debug = false);
0030 };
0031 
0032 #endif