#include <IsolationComputer.h>
Public Types | |
enum | SelfVetoPolicy { selfVetoNone =0, selfVetoAll =1, selfVetoFirst =2 } |
Self-veto policy. More... | |
Public Member Functions | |
void | addVetos (const reco::Candidate &cand) |
veto footprint from this candidate, for the isolation of all candidates and also for calculation of neutral weights (if used) More... | |
float | chargedAbsIso (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from charged from the PV. More... | |
void | clearVetos () |
clear all vetos More... | |
IsolationComputer (float weightCone=-1) | |
Create the calculator; optionally specify a cone for computing deltaBeta weights. More... | |
float | neutralAbsIsoRaw (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from all neutrals (uncorrected) More... | |
float | neutralAbsIsoWeighted (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from all neutrals (with weights) More... | |
float | neutralHadAbsIsoRaw (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from neutral hadrons (uncorrected) More... | |
float | neutralHadAbsIsoWeighted (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from neutral hadrons (with weights) More... | |
float | photonAbsIsoRaw (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from photons (uncorrected) More... | |
float | photonAbsIsoWeighted (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from photons (with weights) More... | |
float | puAbsIso (const reco::Candidate &cand, float dR, float innerR=0, float threshold=0, SelfVetoPolicy selfVeto=selfVetoAll) const |
Isolation from charged from PU. More... | |
void | setPackedCandidates (const std::vector< pat::PackedCandidate > &all, int fromPV_thresh=1, float dz_thresh=9999., float dxy_thresh=9999., bool also_leptons=false) |
Initialize with the list of packed candidates (note: clears also all vetos) More... | |
Protected Member Functions | |
float | isoSumNeutralsWeighted (const reco::Candidate &cand, float dR, float innerR, float threshold, SelfVetoPolicy selfVeto, int pdgId=-1) const |
float | isoSumRaw (const std::vector< const pat::PackedCandidate * > &cands, const reco::Candidate &cand, float dR, float innerR, float threshold, SelfVetoPolicy selfVeto, int pdgId=-1) const |
Protected Attributes | |
const std::vector < pat::PackedCandidate > * | allcands_ |
std::vector< const pat::PackedCandidate * > | charged_ |
std::vector< const pat::PackedCandidate * > | neutral_ |
std::vector< const pat::PackedCandidate * > | pileup_ |
std::vector< const reco::Candidate * > | vetos_ |
float | weightCone_ |
std::vector< float > | weights_ |
Definition at line 8 of file IsolationComputer.h.
Self-veto policy.
Enumerator | |
---|---|
selfVetoNone | |
selfVetoAll | |
selfVetoFirst |
Definition at line 14 of file IsolationComputer.h.
|
inline |
Create the calculator; optionally specify a cone for computing deltaBeta weights.
Definition at line 11 of file IsolationComputer.h.
void heppy::IsolationComputer::addVetos | ( | const reco::Candidate & | cand | ) |
veto footprint from this candidate, for the isolation of all candidates and also for calculation of neutral weights (if used)
veto footprint from this candidate
Definition at line 49 of file IsolationComputer.cc.
References CommonMethods::cp(), i, edm::Ptr< T >::isAvailable(), edm::Ptr< T >::isNonnull(), gen::n, reco::Candidate::numberOfSourceCandidatePtrs(), and reco::Candidate::sourceCandidatePtr().
float heppy::IsolationComputer::chargedAbsIso | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from charged from the PV.
Definition at line 62 of file IsolationComputer.cc.
void heppy::IsolationComputer::clearVetos | ( | ) |
clear all vetos
Definition at line 57 of file IsolationComputer.cc.
Referenced by setPackedCandidates().
|
protected |
Definition at line 132 of file IsolationComputer.cc.
References funct::abs(), CommonMethods::cp(), reco::deltaR2(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::Candidate::eta(), Exception, f, spr::find(), i, edm::Ptr< T >::isAvailable(), edm::Ptr< T >::isNonnull(), dqm-mbProfile::log, gen::n, reco::Candidate::numberOfSourceCandidatePtrs(), reco::Candidate::sourceCandidatePtr(), mathSSE::sqrt(), dtDQMClient_cfg::threshold, and w.
|
protected |
Definition at line 95 of file IsolationComputer.cc.
References funct::abs(), CommonMethods::cp(), reco::deltaR2(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::Candidate::eta(), spr::find(), i, edm::Ptr< T >::isAvailable(), edm::Ptr< T >::isNonnull(), gen::n, reco::Candidate::numberOfSourceCandidatePtrs(), reco::Candidate::sourceCandidatePtr(), and dtDQMClient_cfg::threshold.
float heppy::IsolationComputer::neutralAbsIsoRaw | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from all neutrals (uncorrected)
Definition at line 71 of file IsolationComputer.cc.
float heppy::IsolationComputer::neutralAbsIsoWeighted | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from all neutrals (with weights)
Definition at line 75 of file IsolationComputer.cc.
float heppy::IsolationComputer::neutralHadAbsIsoRaw | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from neutral hadrons (uncorrected)
Definition at line 79 of file IsolationComputer.cc.
float heppy::IsolationComputer::neutralHadAbsIsoWeighted | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from neutral hadrons (with weights)
Definition at line 83 of file IsolationComputer.cc.
float heppy::IsolationComputer::photonAbsIsoRaw | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from photons (uncorrected)
Definition at line 87 of file IsolationComputer.cc.
float heppy::IsolationComputer::photonAbsIsoWeighted | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from photons (with weights)
Definition at line 91 of file IsolationComputer.cc.
float heppy::IsolationComputer::puAbsIso | ( | const reco::Candidate & | cand, |
float | dR, | ||
float | innerR = 0 , |
||
float | threshold = 0 , |
||
SelfVetoPolicy | selfVeto = selfVetoAll |
||
) | const |
Isolation from charged from PU.
Definition at line 67 of file IsolationComputer.cc.
void heppy::IsolationComputer::setPackedCandidates | ( | const std::vector< pat::PackedCandidate > & | all, |
int | fromPV_thresh = 1 , |
||
float | dz_thresh = 9999. , |
||
float | dxy_thresh = 9999. , |
||
bool | also_leptons = false |
||
) |
Initialize with the list of packed candidates (note: clears also all vetos)
Definition at line 18 of file IsolationComputer.cc.
References funct::abs(), Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), allcands_, charged_, clearVetos(), lumiContext::fill, neutral_, AlCaHLTBitMon_ParallelJobs::p, pileup_, weightCone_, and weights_.
|
protected |
Definition at line 51 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 54 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 54 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 54 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 56 of file IsolationComputer.h.
|
protected |
Definition at line 52 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
mutableprotected |
Definition at line 55 of file IsolationComputer.h.
Referenced by setPackedCandidates().