CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DuplicatedPhotonRemover.cc
Go to the documentation of this file.
2 
3 #include <algorithm>
4 
5 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySeed(
6  const reco::PhotonCollection &photons) const {
7  return duplicatesBySeed<reco::PhotonCollection>(photons);
8 }
9 
10 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySeed(
11  const edm::View<reco::Photon> &photons) const {
12  return duplicatesBySeed<edm::View<reco::Photon> >(photons);
13 }
14 
15 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(
16  const reco::PhotonCollection &photons) const {
17  return duplicatesBySuperCluster<reco::PhotonCollection>(photons);
18 }
19 
20 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(
21  const edm::View<reco::Photon> &photons) const {
22  return duplicatesBySuperCluster<edm::View<reco::Photon> >(photons);
23 }
24 
25 // ================ ELECTRONS =============================
26 // ---------------- against EleCollection -----------------------------
27 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
29  return electronsBySeed<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
30 }
31 
32 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
34  return electronsBySeed<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
35 }
36 
39  return electronsBySuperCluster<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
40 }
41 
44  return electronsBySuperCluster<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
45 }
46 
47 // ---------------- against EleView -----------------------------
48 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
50  return electronsBySeed<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
51 }
52 
53 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
55  return electronsBySeed<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
56 }
57 
60  return electronsBySuperCluster<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
61 }
62 
65  return electronsBySuperCluster<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
66 }
std::unique_ptr< std::vector< size_t > > duplicatesBySeed(const PhotonCollection &photons) const
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
std::unique_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::unique_ptr< std::vector< size_t > > duplicatesBySuperCluster(const PhotonCollection &photons) const
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
std::unique_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) ...