1 #ifndef PhysicsTools_PatUtils_DuplicatedElectronRemover_h 2 #define PhysicsTools_PatUtils_DuplicatedElectronRemover_h 24 template <
typename T1,
typename T2>
26 return ((
t1.superCluster() ==
t2.superCluster()) || (
t1.gsfTrack() ==
t2.gsfTrack()));
31 template <
typename T1,
typename T2>
33 float diff1 = fabs(
t1.eSuperClusterOverP() - 1);
34 float diff2 = fabs(
t2.eSuperClusterOverP() - 1);
35 return diff1 <= diff2;
48 template <
typename Collection>
56 template <
typename Collection>
bool operator()(const T1 &t1, const T2 &t2) const
std::unique_ptr< std::vector< size_t > > duplicatesToRemove(const std::vector< reco::GsfElectron > &electrons) const
bool operator()(const T1 &t1, const T2 &t2) const