#include <PhysicsTools/PatUtils/interface/DuplicatedPhotonRemover.h>
Public Member Functions | |
std::auto_ptr< std::vector < size_t > > | duplicatesBySeed (const edm::View< reco::Photon > &photons) const |
std::auto_ptr< std::vector < size_t > > | duplicatesBySeed (const reco::PhotonCollection &photons) const |
template<typename PhotonCollection> | |
std::auto_ptr< std::vector < size_t > > | duplicatesBySeed (const PhotonCollection &photons) const |
Indices of duplicated photons (same supercluster) to remove. | |
std::auto_ptr< std::vector < size_t > > | duplicatesBySuperCluster (const reco::PhotonCollection &photons) const |
std::auto_ptr< std::vector < size_t > > | duplicatesBySuperCluster (const edm::View< reco::Photon > &photons) const |
template<typename PhotonCollection> | |
std::auto_ptr< std::vector < size_t > > | duplicatesBySuperCluster (const PhotonCollection &photons) const |
Indices of duplicated photons (same supercluster) to remove. | |
std::auto_ptr< pat::OverlapList > | electronsBySeed (const edm::View< reco::Photon > &photons, const edm::View< reco::GsfElectron > electrons) const |
std::auto_ptr< pat::OverlapList > | electronsBySeed (const reco::PhotonCollection &photons, const edm::View< reco::GsfElectron > electrons) const |
std::auto_ptr< pat::OverlapList > | electronsBySeed (const edm::View< reco::Photon > &photons, const reco::GsfElectronCollection electrons) const |
std::auto_ptr< pat::OverlapList > | electronsBySeed (const reco::PhotonCollection &photons, const reco::GsfElectronCollection electrons) const |
template<typename PhotonCollection, typename ElectronCollection> | |
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::auto_ptr< pat::OverlapList > | electronsBySuperCluster (const reco::PhotonCollection &photons, const edm::View< reco::GsfElectron > electrons) const |
std::auto_ptr< pat::OverlapList > | electronsBySuperCluster (const edm::View< reco::Photon > &photons, const edm::View< reco::GsfElectron > electrons) const |
std::auto_ptr< pat::OverlapList > | electronsBySuperCluster (const reco::PhotonCollection &photons, const reco::GsfElectronCollection electrons) const |
std::auto_ptr< pat::OverlapList > | electronsBySuperCluster (const edm::View< reco::Photon > &photons, const reco::GsfElectronCollection electrons) const |
template<typename PhotonCollection, typename ElectronCollection> | |
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). | |
Classes | |
struct | EqualBySuperCluster |
struct | EqualBySuperClusterSeed |
Definition at line 18 of file DuplicatedPhotonRemover.h.
std::auto_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySeed | ( | const edm::View< reco::Photon > & | photons | ) | const |
std::auto_ptr< std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySeed | ( | const reco::PhotonCollection & | photons | ) | const |
std::auto_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySeed | ( | const PhotonCollection & | photons | ) | const [inline] |
Indices of duplicated photons (same supercluster) to remove.
It keeps the photons with highest energy. PhotonCollection can be anything that has a "begin()" and "end()", and that hold things which have a "superCluster()" method notable examples are std::vector<Photon> and edm::View<Photon> (but GsfElectrons work too)
Definition at line 93 of file DuplicatedPhotonRemover.h.
References pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates().
00093 { 00094 typedef typename PhotonCollection::value_type PhotonType; 00095 pat::GenericDuplicateRemover<EqualBySuperClusterSeed, GreaterByEt<PhotonType> > dups; 00096 return dups.duplicates(photons); 00097 }
std::auto_ptr< std::vector<size_t> > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster | ( | const reco::PhotonCollection & | photons | ) | const |
std::auto_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster | ( | const edm::View< reco::Photon > & | photons | ) | const |
std::auto_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster | ( | const PhotonCollection & | photons | ) | const [inline] |
Indices of duplicated photons (same supercluster) to remove.
It keeps the photons with highest energy. PhotonCollection can be anything that has a "begin()" and "end()", and that hold things which have a "superCluster()" method notable examples are std::vector<Photon> and edm::View<Photon> (but GsfElectrons work too)
Definition at line 85 of file DuplicatedPhotonRemover.h.
References pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates().
00085 { 00086 typedef typename PhotonCollection::value_type PhotonType; 00087 pat::GenericDuplicateRemover<EqualBySuperCluster, GreaterByEt<PhotonType> > dups; 00088 return dups.duplicates(photons); 00089 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed | ( | const edm::View< reco::Photon > & | photons, | |
const edm::View< reco::GsfElectron > | electrons | |||
) | const |
Definition at line 59 of file DuplicatedPhotonRemover.cc.
00060 { 00061 return electronsBySeed<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons); 00062 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed | ( | const reco::PhotonCollection & | photons, | |
const edm::View< reco::GsfElectron > | electrons | |||
) | const |
Definition at line 53 of file DuplicatedPhotonRemover.cc.
00054 { 00055 return electronsBySeed<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons); 00056 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed | ( | const edm::View< reco::Photon > & | photons, | |
const reco::GsfElectronCollection | electrons | |||
) | const |
Definition at line 34 of file DuplicatedPhotonRemover.cc.
00035 { 00036 return electronsBySeed<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons); 00037 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed | ( | const reco::PhotonCollection & | photons, | |
const reco::GsfElectronCollection | electrons | |||
) | const |
Definition at line 28 of file DuplicatedPhotonRemover.cc.
00029 { 00030 return electronsBySeed<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons); 00031 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed | ( | const PhotonCollection & | photons, | |
const ElectronCollection & | electrons | |||
) | const [inline] |
Indices of photons which happen to be also electrons (that is, they share the same SC seed).
Indices of photons which happen to be also electrons (that is, they share the same SC).
Definition at line 110 of file DuplicatedPhotonRemover.h.
References pat::GenericOverlapFinder< Distance >::find().
00110 { 00111 pat::GenericOverlapFinder< pat::OverlapDistance<EqualBySuperClusterSeed> > ovl; 00112 return ovl.find(photons, electrons); 00113 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster | ( | const reco::PhotonCollection & | photons, | |
const edm::View< reco::GsfElectron > | electrons | |||
) | const |
Definition at line 71 of file DuplicatedPhotonRemover.cc.
00072 { 00073 return electronsBySuperCluster<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons); 00074 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster | ( | const edm::View< reco::Photon > & | photons, | |
const edm::View< reco::GsfElectron > | electrons | |||
) | const |
Definition at line 65 of file DuplicatedPhotonRemover.cc.
00066 { 00067 return electronsBySuperCluster<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons); 00068 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster | ( | const reco::PhotonCollection & | photons, | |
const reco::GsfElectronCollection | electrons | |||
) | const |
Definition at line 46 of file DuplicatedPhotonRemover.cc.
00047 { 00048 return electronsBySuperCluster<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons); 00049 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster | ( | const edm::View< reco::Photon > & | photons, | |
const reco::GsfElectronCollection | electrons | |||
) | const |
Definition at line 40 of file DuplicatedPhotonRemover.cc.
00041 { 00042 return electronsBySuperCluster<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons); 00043 }
std::auto_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster | ( | const PhotonCollection & | photons, | |
const ElectronCollection & | electrons | |||
) | const [inline] |
Indices of photons which happen to be also electrons (that is, they share the same SC).
Definition at line 102 of file DuplicatedPhotonRemover.h.
References pat::GenericOverlapFinder< Distance >::find().
00102 { 00103 pat::GenericOverlapFinder< pat::OverlapDistance<EqualBySuperCluster> > ovl; 00104 return ovl.find(photons, electrons); 00105 }