CMS 3D CMS Logo

List of all members | Classes | Public Member Functions
pat::DuplicatedPhotonRemover Class Reference

#include <DuplicatedPhotonRemover.h>

Classes

struct  EqualBySuperCluster
 
struct  EqualBySuperClusterSeed
 

Public Member Functions

std::unique_ptr< std::vector< size_t > > duplicatesBySeed (const edm::View< reco::Photon > &photons) const
 
template<typename PhotonCollection >
std::unique_ptr< std::vector< size_t > > duplicatesBySeed (const PhotonCollection &photons) const
 
std::unique_ptr< std::vector< size_t > > duplicatesBySeed (const reco::PhotonCollection &photons) const
 
std::unique_ptr< std::vector< size_t > > duplicatesBySuperCluster (const edm::View< reco::Photon > &photons) const
 
template<typename PhotonCollection >
std::unique_ptr< std::vector< size_t > > duplicatesBySuperCluster (const PhotonCollection &photons) const
 
std::unique_ptr< std::vector< size_t > > duplicatesBySuperCluster (const reco::PhotonCollection &photons) const
 
std::unique_ptr< pat::OverlapListelectronsBySeed (const edm::View< reco::Photon > &photons, const edm::View< reco::GsfElectron > &electrons) const
 
std::unique_ptr< pat::OverlapListelectronsBySeed (const edm::View< reco::Photon > &photons, const reco::GsfElectronCollection &electrons) const
 
template<typename PhotonCollection , typename ElectronCollection >
std::unique_ptr< pat::OverlapListelectronsBySeed (const PhotonCollection &photons, const ElectronCollection &electrons) const
 Indices of photons which happen to be also electrons (that is, they share the same SC seed) More...
 
std::unique_ptr< pat::OverlapListelectronsBySeed (const reco::PhotonCollection &photons, const edm::View< reco::GsfElectron > &electrons) const
 
std::unique_ptr< pat::OverlapListelectronsBySeed (const reco::PhotonCollection &photons, const reco::GsfElectronCollection &electrons) const
 
std::unique_ptr< pat::OverlapListelectronsBySuperCluster (const edm::View< reco::Photon > &photons, const edm::View< reco::GsfElectron > &electrons) const
 
std::unique_ptr< pat::OverlapListelectronsBySuperCluster (const edm::View< reco::Photon > &photons, const reco::GsfElectronCollection &electrons) const
 
template<typename PhotonCollection , typename ElectronCollection >
std::unique_ptr< pat::OverlapListelectronsBySuperCluster (const PhotonCollection &photons, const ElectronCollection &electrons) const
 Indices of photons which happen to be also electrons (that is, they share the same SC) More...
 
std::unique_ptr< pat::OverlapListelectronsBySuperCluster (const reco::PhotonCollection &photons, const edm::View< reco::GsfElectron > &electrons) const
 
std::unique_ptr< pat::OverlapListelectronsBySuperCluster (const reco::PhotonCollection &photons, const reco::GsfElectronCollection &electrons) const
 

Detailed Description

Definition at line 18 of file DuplicatedPhotonRemover.h.

Member Function Documentation

◆ duplicatesBySeed() [1/3]

std::unique_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySeed ( const edm::View< reco::Photon > &  photons) const

Definition at line 10 of file DuplicatedPhotonRemover.cc.

11  {
12  return duplicatesBySeed<edm::View<reco::Photon> >(photons);
13 }

References BPHMonitor_cfi::photons.

◆ duplicatesBySeed() [2/3]

template<typename PhotonCollection >
std::unique_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySeed ( const PhotonCollection photons) const

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 91 of file DuplicatedPhotonRemover.h.

92  {
93  typedef typename PhotonCollection::value_type PhotonType;
95  return dups.duplicates(photons);
96 }

References pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates(), and BPHMonitor_cfi::photons.

◆ duplicatesBySeed() [3/3]

std::unique_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySeed ( const reco::PhotonCollection photons) const

Definition at line 5 of file DuplicatedPhotonRemover.cc.

6  {
7  return duplicatesBySeed<reco::PhotonCollection>(photons);
8 }

References BPHMonitor_cfi::photons.

◆ duplicatesBySuperCluster() [1/3]

std::unique_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster ( const edm::View< reco::Photon > &  photons) const

Definition at line 20 of file DuplicatedPhotonRemover.cc.

21  {
22  return duplicatesBySuperCluster<edm::View<reco::Photon> >(photons);
23 }

References BPHMonitor_cfi::photons.

◆ duplicatesBySuperCluster() [2/3]

template<typename PhotonCollection >
std::unique_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster ( const PhotonCollection photons) const

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 83 of file DuplicatedPhotonRemover.h.

84  {
85  typedef typename PhotonCollection::value_type PhotonType;
87  return dups.duplicates(photons);
88 }

References pat::GenericDuplicateRemover< Comparator, Arbitrator >::duplicates(), and BPHMonitor_cfi::photons.

◆ duplicatesBySuperCluster() [3/3]

std::unique_ptr< std::vector< size_t > > pat::DuplicatedPhotonRemover::duplicatesBySuperCluster ( const reco::PhotonCollection photons) const

Definition at line 15 of file DuplicatedPhotonRemover.cc.

16  {
17  return duplicatesBySuperCluster<reco::PhotonCollection>(photons);
18 }

References BPHMonitor_cfi::photons.

◆ electronsBySeed() [1/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed ( const edm::View< reco::Photon > &  photons,
const edm::View< reco::GsfElectron > &  electrons 
) const

Definition at line 53 of file DuplicatedPhotonRemover.cc.

54  {
55  return electronsBySeed<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
56 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

◆ electronsBySeed() [2/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed ( const edm::View< reco::Photon > &  photons,
const reco::GsfElectronCollection electrons 
) const

Definition at line 32 of file DuplicatedPhotonRemover.cc.

33  {
34  return electronsBySeed<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
35 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

◆ electronsBySeed() [3/5]

template<typename PhotonCollection , typename ElectronCollection >
std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::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)

Indices of photons which happen to be also electrons (that is, they share the same SC)

Definition at line 108 of file DuplicatedPhotonRemover.h.

References pwdgSkimBPark_cfi::electrons, pat::GenericOverlapFinder< Distance >::find(), and BPHMonitor_cfi::photons.

◆ electronsBySeed() [4/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed ( const reco::PhotonCollection photons,
const edm::View< reco::GsfElectron > &  electrons 
) const

Definition at line 48 of file DuplicatedPhotonRemover.cc.

49  {
50  return electronsBySeed<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
51 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

◆ electronsBySeed() [5/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySeed ( const reco::PhotonCollection photons,
const reco::GsfElectronCollection electrons 
) const

Definition at line 27 of file DuplicatedPhotonRemover.cc.

28  {
29  return electronsBySeed<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
30 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

◆ electronsBySuperCluster() [1/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster ( const edm::View< reco::Photon > &  photons,
const edm::View< reco::GsfElectron > &  electrons 
) const

Definition at line 58 of file DuplicatedPhotonRemover.cc.

59  {
60  return electronsBySuperCluster<edm::View<reco::Photon>, edm::View<reco::GsfElectron> >(photons, electrons);
61 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

◆ electronsBySuperCluster() [2/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster ( const edm::View< reco::Photon > &  photons,
const reco::GsfElectronCollection electrons 
) const

Definition at line 37 of file DuplicatedPhotonRemover.cc.

38  {
39  return electronsBySuperCluster<edm::View<reco::Photon>, reco::GsfElectronCollection>(photons, electrons);
40 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

◆ electronsBySuperCluster() [3/5]

template<typename PhotonCollection , typename ElectronCollection >
std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster ( const PhotonCollection photons,
const ElectronCollection electrons 
) const

Indices of photons which happen to be also electrons (that is, they share the same SC)

Definition at line 100 of file DuplicatedPhotonRemover.h.

References pwdgSkimBPark_cfi::electrons, pat::GenericOverlapFinder< Distance >::find(), and BPHMonitor_cfi::photons.

◆ electronsBySuperCluster() [4/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster ( const reco::PhotonCollection photons,
const edm::View< reco::GsfElectron > &  electrons 
) const

Definition at line 63 of file DuplicatedPhotonRemover.cc.

64  {
65  return electronsBySuperCluster<reco::PhotonCollection, edm::View<reco::GsfElectron> >(photons, electrons);
66 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

◆ electronsBySuperCluster() [5/5]

std::unique_ptr< pat::OverlapList > pat::DuplicatedPhotonRemover::electronsBySuperCluster ( const reco::PhotonCollection photons,
const reco::GsfElectronCollection electrons 
) const

Definition at line 42 of file DuplicatedPhotonRemover.cc.

43  {
44  return electronsBySuperCluster<reco::PhotonCollection, reco::GsfElectronCollection>(photons, electrons);
45 }

References pwdgSkimBPark_cfi::electrons, and BPHMonitor_cfi::photons.

pat::GenericOverlapFinder
Definition: GenericOverlapFinder.h:52
pat::GenericDuplicateRemover
Definition: GenericDuplicateRemover.h:11
reco::GsfElectronCollection
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
Definition: GsfElectronFwd.h:14
pat::GenericDuplicateRemover::duplicates
std::unique_ptr< std::vector< size_t > > duplicates(const Collection &items) const
Definition: GenericDuplicateRemover.h:36
pat::GenericOverlapFinder::find
std::unique_ptr< OverlapList > find(const Collection &items, const OtherCollection &other) const
edm::View
Definition: CaloClusterFwd.h:14
BPHMonitor_cfi.photons
photons
Definition: BPHMonitor_cfi.py:91
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
pwdgSkimBPark_cfi.electrons
electrons
Definition: pwdgSkimBPark_cfi.py:6