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::auto_ptr< pat::OverlapList >
55 template <
typename PhotonCollection,
typename ElectronCollection>
56 std::auto_ptr< pat::OverlapList >
83 template<
typename PhotonCollection>
84 std::auto_ptr< std::vector<size_t> >
91 template<
typename PhotonCollection>
92 std::auto_ptr< std::vector<size_t> >
100 template <
typename PhotonCollection,
typename ElectronCollection>
101 std::auto_ptr< pat::OverlapList >
104 return ovl.
find(photons, electrons);
108 template <
typename PhotonCollection,
typename ElectronCollection>
109 std::auto_ptr< pat::OverlapList >
112 return ovl.
find(photons, electrons);
std::auto_ptr< std::vector< size_t > > duplicates(const Collection &items) const
std::auto_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::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
std::vector< Electron > ElectronCollection
bool operator()(const T1 &t1, const T2 &t2) const
auto const T2 &decltype(t1.eta()) t2
Container::value_type value_type
bool operator()(const T1 &t1, const T2 &t2) const
std::auto_ptr< std::vector< size_t > > duplicatesBySuperCluster(const PhotonCollection &photons) const
std::auto_ptr< std::vector< size_t > > duplicatesBySeed(const PhotonCollection &photons) const
std::vector< Photon > PhotonCollection
collectin of Photon objects
std::auto_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::auto_ptr< OverlapList > find(const Collection &items, const OtherCollection &other) const
std::vector< Photon > PhotonCollection