#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 47 of file IsolationComputer.cc.
References mps_fire::i, and dqmiodumpmetadata::n.
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 59 of file IsolationComputer.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
void heppy::IsolationComputer::clearVetos | ( | ) |
clear all vetos
Definition at line 56 of file IsolationComputer.cc.
Referenced by setPackedCandidates().
|
protected |
Definition at line 147 of file IsolationComputer.cc.
References funct::abs(), reco::deltaR2(), HGC3DClusterGenMatchSelector_cfi::dR, ALPAKA_ACCELERATOR_NAMESPACE::dR2(), Exception, f, spr::find(), mps_fire::i, dqm-mbProfile::log, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, dqmiodumpmetadata::n, EgammaValidation_cff::pdgId, mathSSE::sqrt(), DiMuonV_cfg::threshold, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, boostedElectronIsolation_cff::vetos, and w().
|
protected |
Definition at line 100 of file IsolationComputer.cc.
References funct::abs(), HLT_2023v12_cff::cands, reco::deltaR2(), HGC3DClusterGenMatchSelector_cfi::dR, ALPAKA_ACCELERATOR_NAMESPACE::dR2(), spr::find(), mps_fire::i, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, dqmiodumpmetadata::n, EgammaValidation_cff::pdgId, DiMuonV_cfg::threshold, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, and boostedElectronIsolation_cff::vetos.
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 70 of file IsolationComputer.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
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.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
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 80 of file IsolationComputer.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
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 85 of file IsolationComputer.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
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 90 of file IsolationComputer.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
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 95 of file IsolationComputer.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
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 65 of file IsolationComputer.cc.
References HGC3DClusterGenMatchSelector_cfi::dR, and DiMuonV_cfg::threshold.
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 14 of file IsolationComputer.cc.
References funct::abs(), python.cmstools::all(), allcands_, charged_, clearVetos(), ntuplemaker::fill, neutral_, AlCaHLTBitMon_ParallelJobs::p, pileup_, jetUpdater_cfi::sort, weightCone_, and weights_.
|
protected |
Definition at line 85 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 88 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 88 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 88 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
protected |
Definition at line 90 of file IsolationComputer.h.
|
protected |
Definition at line 86 of file IsolationComputer.h.
Referenced by setPackedCandidates().
|
mutableprotected |
Definition at line 89 of file IsolationComputer.h.
Referenced by setPackedCandidates().