1 #ifndef PhysicsTools_PatUtils_DuplicatedPhotonRemover_h 2 #define PhysicsTools_PatUtils_DuplicatedPhotonRemover_h 22 template <
typename T1,
typename T2>
24 return (
t1.superCluster()->seed() ==
t2.superCluster()->seed());
30 template <
typename T1,
typename T2>
32 return (
t1.superCluster() ==
t2.superCluster());
39 template <
typename PhotonCollection>
45 template <
typename PhotonCollection>
49 template <
typename PhotonCollection,
typename ElectronCollection>
54 template <
typename PhotonCollection,
typename ElectronCollection>
82 template <
typename PhotonCollection>
90 template <
typename PhotonCollection>
99 template <
typename PhotonCollection,
typename ElectronCollection>
107 template <
typename PhotonCollection,
typename ElectronCollection>
std::unique_ptr< std::vector< size_t > > duplicatesBySeed(const PhotonCollection &photons) 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< 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) ...
std::unique_ptr< std::vector< size_t > > duplicatesBySuperCluster(const PhotonCollection &photons) const
std::unique_ptr< OverlapList > find(const Collection &items, const OtherCollection &other) const
Container::value_type value_type
std::vector< Electron > ElectronCollection
bool operator()(const T1 &t1, const T2 &t2) const
bool operator()(const T1 &t1, const T2 &t2) const
std::vector< Photon > PhotonCollection
collectin of Photon objects
std::vector< Photon > PhotonCollection