test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DuplicatedPhotonRemover.cc
Go to the documentation of this file.
2 
3 #include <algorithm>
4 
5 std::auto_ptr< std::vector<size_t> >
7  return duplicatesBySeed<reco::PhotonCollection>(photons);
8 }
9 
10 std::auto_ptr< std::vector<size_t> >
12  return duplicatesBySeed< edm::View<reco::Photon> >(photons);
13 }
14 
15 std::auto_ptr< std::vector<size_t> >
17  return duplicatesBySuperCluster<reco::PhotonCollection>(photons);
18 }
19 
20 std::auto_ptr< std::vector<size_t> >
22  return duplicatesBySuperCluster< edm::View<reco::Photon> >(photons);
23 }
24 
25 // ================ ELECTRONS =============================
26 // ---------------- against EleCollection -----------------------------
27 std::auto_ptr< pat::OverlapList >
30  return electronsBySeed<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
31 }
32 
33 std::auto_ptr< pat::OverlapList >
36  return electronsBySeed<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
37 }
38 
39 std::auto_ptr< pat::OverlapList >
42  return electronsBySuperCluster<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
43 }
44 
45 std::auto_ptr< pat::OverlapList >
48  return electronsBySuperCluster<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
49 }
50 
51 // ---------------- against EleView -----------------------------
52 std::auto_ptr< pat::OverlapList >
55  return electronsBySeed<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
56 }
57 
58 std::auto_ptr< pat::OverlapList >
61  return electronsBySeed<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
62 }
63 
64 std::auto_ptr< pat::OverlapList >
67  return electronsBySuperCluster<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
68 }
69 
70 std::auto_ptr< pat::OverlapList >
73  return electronsBySuperCluster<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
74 }
75 
std::auto_ptr< pat::OverlapList > electronsBySeed(const PhotonCollection &photons, const ElectronCollection &electrons) const
Indices of photons which happen to be also electrons (that is, they share the same SC seed) ...
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
std::auto_ptr< std::vector< size_t > > duplicatesBySuperCluster(const PhotonCollection &photons) const
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
std::auto_ptr< std::vector< size_t > > duplicatesBySeed(const PhotonCollection &photons) const
std::auto_ptr< pat::OverlapList > electronsBySuperCluster(const PhotonCollection &photons, const ElectronCollection &electrons) const
Indices of photons which happen to be also electrons (that is, they share the same SC) ...