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 >
29  const reco::GsfElectronCollection& electrons) const {
30  return electronsBySeed<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
31 }
32 
33 std::auto_ptr< pat::OverlapList >
35  const reco::GsfElectronCollection& electrons) const {
36  return electronsBySeed<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
37 }
38 
39 std::auto_ptr< pat::OverlapList >
41  const reco::GsfElectronCollection& electrons) const {
42  return electronsBySuperCluster<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
43 }
44 
45 std::auto_ptr< pat::OverlapList >
47  const reco::GsfElectronCollection& electrons) const {
48  return electronsBySuperCluster<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
49 }
50 
51 // ---------------- against EleView -----------------------------
52 std::auto_ptr< pat::OverlapList >
54  const edm::View<reco::GsfElectron>& electrons) const {
55  return electronsBySeed<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
56 }
57 
58 std::auto_ptr< pat::OverlapList >
60  const edm::View<reco::GsfElectron>& electrons) const {
61  return electronsBySeed<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
62 }
63 
64 std::auto_ptr< pat::OverlapList >
66  const edm::View<reco::GsfElectron>& electrons) const {
67  return electronsBySuperCluster<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
68 }
69 
70 std::auto_ptr< pat::OverlapList >
72  const edm::View<reco::GsfElectron>& electrons) const {
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) ...