Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:13

0001 #include "PhysicsTools/PatUtils/interface/DuplicatedPhotonRemover.h"
0002 
0003 #include <algorithm>
0004 
0005 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySeed(
0006     const reco::PhotonCollection &photons) const {
0007   return duplicatesBySeed<reco::PhotonCollection>(photons);
0008 }
0009 
0010 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySeed(
0011     const edm::View<reco::Photon> &photons) const {
0012   return duplicatesBySeed<edm::View<reco::Photon> >(photons);
0013 }
0014 
0015 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(
0016     const reco::PhotonCollection &photons) const {
0017   return duplicatesBySuperCluster<reco::PhotonCollection>(photons);
0018 }
0019 
0020 std::unique_ptr<std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(
0021     const edm::View<reco::Photon> &photons) const {
0022   return duplicatesBySuperCluster<edm::View<reco::Photon> >(photons);
0023 }
0024 
0025 // ================ ELECTRONS  =============================
0026 // ---------------- against EleCollection  -----------------------------
0027 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
0028     const reco::PhotonCollection &photons, const reco::GsfElectronCollection &electrons) const {
0029   return electronsBySeed<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
0030 }
0031 
0032 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
0033     const edm::View<reco::Photon> &photons, const reco::GsfElectronCollection &electrons) const {
0034   return electronsBySeed<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
0035 }
0036 
0037 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySuperCluster(
0038     const edm::View<reco::Photon> &photons, const reco::GsfElectronCollection &electrons) const {
0039   return electronsBySuperCluster<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
0040 }
0041 
0042 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySuperCluster(
0043     const reco::PhotonCollection &photons, const reco::GsfElectronCollection &electrons) const {
0044   return electronsBySuperCluster<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
0045 }
0046 
0047 // ---------------- against EleView  -----------------------------
0048 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
0049     const reco::PhotonCollection &photons, const edm::View<reco::GsfElectron> &electrons) const {
0050   return electronsBySeed<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
0051 }
0052 
0053 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySeed(
0054     const edm::View<reco::Photon> &photons, const edm::View<reco::GsfElectron> &electrons) const {
0055   return electronsBySeed<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
0056 }
0057 
0058 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySuperCluster(
0059     const edm::View<reco::Photon> &photons, const edm::View<reco::GsfElectron> &electrons) const {
0060   return electronsBySuperCluster<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
0061 }
0062 
0063 std::unique_ptr<pat::OverlapList> pat::DuplicatedPhotonRemover::electronsBySuperCluster(
0064     const reco::PhotonCollection &photons, const edm::View<reco::GsfElectron> &electrons) const {
0065   return electronsBySuperCluster<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
0066 }