CMS 3D CMS Logo

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 }
pat::DuplicatedPhotonRemover::electronsBySuperCluster
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)
Definition: DuplicatedPhotonRemover.h:100
reco::GsfElectronCollection
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
Definition: GsfElectronFwd.h:14
pat::DuplicatedPhotonRemover::electronsBySeed
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)
Definition: DuplicatedPhotonRemover.h:108
edm::View
Definition: CaloClusterFwd.h:14
pat::DuplicatedPhotonRemover::duplicatesBySuperCluster
std::unique_ptr< std::vector< size_t > > duplicatesBySuperCluster(const PhotonCollection &photons) const
Definition: DuplicatedPhotonRemover.h:83
pat::DuplicatedPhotonRemover::duplicatesBySeed
std::unique_ptr< std::vector< size_t > > duplicatesBySeed(const PhotonCollection &photons) const
Definition: DuplicatedPhotonRemover.h:91
BPHMonitor_cfi.photons
photons
Definition: BPHMonitor_cfi.py:91
pwdgSkimBPark_cfi.electrons
electrons
Definition: pwdgSkimBPark_cfi.py:6
reco::PhotonCollection
std::vector< Photon > PhotonCollection
collectin of Photon objects
Definition: PhotonFwd.h:9
DuplicatedPhotonRemover.h