1 #ifndef PhysicsTools_PatUtils_DuplicatedPhotonRemover_h 2 #define PhysicsTools_PatUtils_DuplicatedPhotonRemover_h 23 template<
typename T1,
typename T2>
25 return (t1.superCluster()->seed() == t2.superCluster()->seed());
31 template<
typename T1,
typename T2>
33 return (t1.superCluster() == t2.superCluster());
40 template <
typename PhotonCollection>
46 template <
typename PhotonCollection>
50 template <
typename PhotonCollection,
typename ElectronCollection>
51 std::unique_ptr< pat::OverlapList >
55 template <
typename PhotonCollection,
typename ElectronCollection>
56 std::unique_ptr< pat::OverlapList >
83 template<
typename PhotonCollection>
84 std::unique_ptr< std::vector<size_t> >
91 template<
typename PhotonCollection>
92 std::unique_ptr< std::vector<size_t> >
100 template <
typename PhotonCollection,
typename ElectronCollection>
101 std::unique_ptr< pat::OverlapList >
104 return ovl.
find(photons, electrons);
108 template <
typename PhotonCollection,
typename ElectronCollection>
109 std::unique_ptr< pat::OverlapList >
112 return ovl.
find(photons, electrons);
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) ...
Container::value_type value_type
std::vector< Electron > ElectronCollection
bool operator()(const T1 &t1, const T2 &t2) const
std::unique_ptr< std::vector< size_t > > duplicatesBySuperCluster(const PhotonCollection &photons) const
bool operator()(const T1 &t1, const T2 &t2) const
std::unique_ptr< OverlapList > find(const Collection &items, const OtherCollection &other) const
std::vector< Photon > PhotonCollection
collectin of Photon objects
std::unique_ptr< std::vector< size_t > > duplicates(const Collection &items) const
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) ...
std::vector< Photon > PhotonCollection