File indexing completed on 2024-04-06 12:24:46
0001 #ifndef EgAmbiguityTools_H
0002 #define EgAmbiguityTools_H
0003
0004 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0005 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
0006 #include "DataFormats/CaloRecHit/interface/CaloClusterFwd.h"
0007 #include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
0008 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0009
0010 namespace egamma {
0011
0012 float sharedEnergy(reco::CaloCluster const& clu1,
0013 reco::CaloCluster const& clu2,
0014 EcalRecHitCollection const& barrelRecHits,
0015 EcalRecHitCollection const& endcapRecHits);
0016 float sharedEnergy(reco::SuperClusterRef const& sc1,
0017 reco::SuperClusterRef const& sc2,
0018 EcalRecHitCollection const& barrelRecHits,
0019 EcalRecHitCollection const& endcapRecHits);
0020
0021
0022 int sharedHits(reco::GsfTrackRef const&, reco::GsfTrackRef const&);
0023 int sharedDets(reco::GsfTrackRef const&, reco::GsfTrackRef const&);
0024
0025
0026 bool isBetterElectron(reco::GsfElectron const&, reco::GsfElectron const&);
0027 bool isInnermostElectron(reco::GsfElectron const&, reco::GsfElectron const&);
0028
0029 }
0030
0031 #endif