1 |
#include "PhysicsTools/PatUtils/interface/DuplicatedPhotonRemover.h"
|
2 |
|
3 |
#include <algorithm>
|
4 |
|
5 |
std::auto_ptr< std::vector<size_t> >
|
6 |
pat::DuplicatedPhotonRemover::duplicatesBySeed(const reco::PhotonCollection &photons) const {
|
7 |
return duplicatesBySeed<reco::PhotonCollection>(photons);
|
8 |
}
|
9 |
|
10 |
std::auto_ptr< std::vector<size_t> >
|
11 |
pat::DuplicatedPhotonRemover::duplicatesBySeed(const edm::View<reco::Photon> &photons) const {
|
12 |
return duplicatesBySeed< edm::View<reco::Photon> >(photons);
|
13 |
}
|
14 |
|
15 |
std::auto_ptr< std::vector<size_t> >
|
16 |
pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(const reco::PhotonCollection &photons) const {
|
17 |
return duplicatesBySuperCluster<reco::PhotonCollection>(photons);
|
18 |
}
|
19 |
|
20 |
std::auto_ptr< std::vector<size_t> >
|
21 |
pat::DuplicatedPhotonRemover::duplicatesBySuperCluster(const edm::View<reco::Photon> &photons) const {
|
22 |
return duplicatesBySuperCluster< edm::View<reco::Photon> >(photons);
|
23 |
}
|
24 |
|
25 |
// ================ ELECTRONS =============================
|
26 |
// ---------------- against EleCollection -----------------------------
|
27 |
std::auto_ptr< pat::OverlapList >
|
28 |
pat::DuplicatedPhotonRemover::electronsBySeed(const reco::PhotonCollection &photons,
|
29 |
const reco::GsfElectronCollection electrons) const {
|
30 |
return electronsBySeed<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
|
31 |
}
|
32 |
|
33 |
std::auto_ptr< pat::OverlapList >
|
34 |
pat::DuplicatedPhotonRemover::electronsBySeed(const edm::View<reco::Photon> &photons,
|
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 >
|
40 |
pat::DuplicatedPhotonRemover::electronsBySuperCluster(const edm::View<reco::Photon> &photons,
|
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 >
|
46 |
pat::DuplicatedPhotonRemover::electronsBySuperCluster(const reco::PhotonCollection &photons,
|
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 >
|
53 |
pat::DuplicatedPhotonRemover::electronsBySeed(const reco::PhotonCollection &photons,
|
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 >
|
59 |
pat::DuplicatedPhotonRemover::electronsBySeed(const edm::View<reco::Photon> &photons,
|
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 >
|
65 |
pat::DuplicatedPhotonRemover::electronsBySuperCluster(const edm::View<reco::Photon> &photons,
|
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 >
|
71 |
pat::DuplicatedPhotonRemover::electronsBySuperCluster(const reco::PhotonCollection &photons,
|
72 |
const edm::View<reco::GsfElectron> electrons) const {
|
73 |
return electronsBySuperCluster<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
|
74 |
}
|
75 |
|