#include <PFIsoDepositAlgo.h>
Public Types | |
typedef std::vector < reco::IsoDeposit > | IsoDeposits |
typedef reco::PFCandidate | Particle |
typedef std::vector< Particle > | ParticleCollection |
Public Member Functions | |
PFIsoDepositAlgo (const edm::ParameterSet &) | |
const IsoDeposits & | produce (const ParticleCollection &toBeIsolated, const ParticleCollection &forIsolation) |
~PFIsoDepositAlgo () | |
Private Member Functions | |
reco::IsoDeposit | buildIsoDeposit (const Particle &particle, const ParticleCollection &forIsolation) const |
build the IsoDeposit for "particle" More... | |
bool | sameParticle (const Particle &particle1, const Particle &particle2) const |
checks if the 2 particles are in fact the same More... | |
Private Attributes | |
IsoDeposits | isoDeposits_ |
IsoDeposits computed in the produce function. More... | |
bool | verbose_ |
Definition at line 26 of file PFIsoDepositAlgo.h.
typedef std::vector< reco::IsoDeposit > pf2pat::PFIsoDepositAlgo::IsoDeposits |
Definition at line 34 of file PFIsoDepositAlgo.h.
Definition at line 30 of file PFIsoDepositAlgo.h.
typedef std::vector< Particle > pf2pat::PFIsoDepositAlgo::ParticleCollection |
Definition at line 31 of file PFIsoDepositAlgo.h.
|
explicit |
Definition at line 16 of file PFIsoDepositAlgo.cc.
PFIsoDepositAlgo::~PFIsoDepositAlgo | ( | ) |
Definition at line 23 of file PFIsoDepositAlgo.cc.
|
private |
build the IsoDeposit for "particle"
Definition at line 52 of file PFIsoDepositAlgo.cc.
References gather_cfg::cout, PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::LeafCandidate::eta(), i, reco::LeafCandidate::p4(), reco::LeafCandidate::phi(), EnergyCorrector::pt, sameParticle(), and verbose_.
Referenced by produce().
const PFIsoDepositAlgo::IsoDeposits & PFIsoDepositAlgo::produce | ( | const ParticleCollection & | toBeIsolated, |
const ParticleCollection & | forIsolation | ||
) |
all the filtering is done before could gain in performance by having a single loop, and by producing all isodeposits at the same time? however, would not gain in ease of maintenance, and in flexibility.
Definition at line 27 of file PFIsoDepositAlgo.cc.
References buildIsoDeposit(), gather_cfg::cout, i, isoDeposits_, and verbose_.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
private |
checks if the 2 particles are in fact the same
Definition at line 96 of file PFIsoDepositAlgo.cc.
References alignCSCRings::e, reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), and reco::PFCandidate::particleId().
Referenced by buildIsoDeposit().
|
private |
IsoDeposits computed in the produce function.
Definition at line 59 of file PFIsoDepositAlgo.h.
Referenced by produce().
|
private |
Definition at line 61 of file PFIsoDepositAlgo.h.
Referenced by buildIsoDeposit(), and produce().