#include <EleTkIsolFromCands.h>
|
std::pair< int, double > | calIsol (const reco::TrackBase &trk, const pat::PackedCandidateCollection &cands, const PIDVeto=PIDVeto::NONE) const |
|
std::pair< int, double > | calIsol (const double eleEta, const double elePhi, const double eleVZ, const pat::PackedCandidateCollection &cands, const PIDVeto=PIDVeto::NONE) const |
|
std::pair< int, double > | calIsol (const reco::TrackBase &trk, const reco::TrackCollection &tracks) const |
|
std::pair< int, double > | calIsol (const double eleEta, const double elePhi, const double eleVZ, const reco::TrackCollection &tracks) const |
|
template<typename... Args> |
double | calIsolPt (Args &&...args) const |
|
| EleTkIsolFromCands (const edm::ParameterSet ¶) |
|
| EleTkIsolFromCands (const EleTkIsolFromCands &)=default |
|
EleTkIsolFromCands & | operator= (const EleTkIsolFromCands &)=default |
|
| ~EleTkIsolFromCands ()=default |
|
Definition at line 44 of file EleTkIsolFromCands.h.
EleTkIsolFromCands::~EleTkIsolFromCands |
( |
| ) |
|
|
default |
Definition at line 54 of file EleTkIsolFromCands.cc.
References HLT_2018_cff::cands, reco::TrackBase::eta(), reco::TrackBase::phi(), and reco::TrackBase::vz().
Referenced by calIsol(), and calIsolPt().
57 return calIsol(eleTrk.eta(), eleTrk.phi(), eleTrk.vz(),
cands, pidVeto);
std::pair< int, double > calIsol(const reco::TrackBase &trk, const pat::PackedCandidateCollection &cands, const PIDVeto=PIDVeto::NONE) const
Definition at line 60 of file EleTkIsolFromCands.cc.
References funct::abs(), barrelCuts_, L1TMuonDQMOffline_cfi::cuts, endcapCuts_, passPIDVeto(), passTrkSel(), and reco::TrackBase::pt().
79 return {nrTrks, ptSum};
double pt() const
track transverse momentum
Abs< T >::type abs(const T &t)
static bool passTrkSel(const reco::TrackBase &trk, const double trkPt, const TrkCuts &cuts, const double eleEta, const double elePhi, const double eleVZ)
static bool passPIDVeto(const int pdgId, const EleTkIsolFromCands::PIDVeto pidVeto)
Definition at line 82 of file EleTkIsolFromCands.cc.
References calIsol(), reco::TrackBase::eta(), reco::TrackBase::phi(), PDWG_EXOHSCP_cff::tracks, and reco::TrackBase::vz().
84 return calIsol(eleTrk.eta(), eleTrk.phi(), eleTrk.vz(),
tracks);
std::pair< int, double > calIsol(const reco::TrackBase &trk, const pat::PackedCandidateCollection &cands, const PIDVeto=PIDVeto::NONE) const
std::pair< int, double > EleTkIsolFromCands::calIsol |
( |
const double |
eleEta, |
|
|
const double |
elePhi, |
|
|
const double |
eleVZ, |
|
|
const reco::TrackCollection & |
tracks |
|
) |
| const |
Definition at line 87 of file EleTkIsolFromCands.cc.
References funct::abs(), barrelCuts_, L1TMuonDQMOffline_cfi::cuts, endcapCuts_, and passTrkSel().
102 return {nrTrks, ptSum};
Abs< T >::type abs(const T &t)
static bool passTrkSel(const reco::TrackBase &trk, const double trkPt, const TrkCuts &cuts, const double eleEta, const double elePhi, const double eleVZ)
template<typename... Args>
double EleTkIsolFromCands::calIsolPt |
( |
Args &&... |
args | ) |
const |
|
inline |
Definition at line 95 of file EleTkIsolFromCands.h.
References writedatasetfile::args, calIsol(), L1TMuonDQMOffline_cfi::cuts, passAlgo(), passPIDVeto(), passQual(), passTrkSel(), EgammaValidation_cff::pdgId, pidVetoFromStr(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ElectronHEEPIDValueMapProducer::calTrkIso(), and GsfElectronAlgo::createElectron().
std::pair< int, double > calIsol(const reco::TrackBase &trk, const pat::PackedCandidateCollection &cands, const PIDVeto=PIDVeto::NONE) const
bool EleTkIsolFromCands::passTrkSel |
( |
const reco::TrackBase & |
trk, |
|
|
const double |
trkPt, |
|
|
const TrkCuts & |
cuts, |
|
|
const double |
eleEta, |
|
|
const double |
elePhi, |
|
|
const double |
eleVZ |
|
) |
| |
|
staticprivate |
Definition at line 138 of file EleTkIsolFromCands.cc.
References funct::abs(), EleTkIsolFromCands::TrkCuts::algosToReject, EleTkIsolFromCands::TrkCuts::allowedQualities, reco::deltaR2(), HLT_2018_cff::dEta, reco::TrackBase::eta(), reco::TrackBase::hitPattern(), EleTkIsolFromCands::TrkCuts::maxDPtPt, EleTkIsolFromCands::TrkCuts::maxDR2, EleTkIsolFromCands::TrkCuts::maxDZ, EleTkIsolFromCands::TrkCuts::minDEta, EleTkIsolFromCands::TrkCuts::minDR2, EleTkIsolFromCands::TrkCuts::minHits, EleTkIsolFromCands::TrkCuts::minPixelHits, EleTkIsolFromCands::TrkCuts::minPt, reco::HitPattern::numberOfValidHits(), reco::HitPattern::numberOfValidPixelHits(), passAlgo(), passQual(), reco::TrackBase::phi(), reco::TrackBase::ptError(), and reco::TrackBase::vz().
Referenced by calIsol(), and calIsolPt().
145 const float dEta = trk.
eta() - eleEta;
146 const float dZ = eleVZ - trk.
vz();
int numberOfValidHits() const
double phi() const
azimuthal angle of momentum vector
static bool passAlgo(const reco::TrackBase &trk, const std::vector< reco::TrackBase::TrackAlgorithm > &algosToRej)
double eta() const
pseudorapidity of momentum vector
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
Abs< T >::type abs(const T &t)
static bool passQual(const reco::TrackBase &trk, const std::vector< reco::TrackBase::TrackQuality > &quals)
double vz() const
z coordinate of the reference point on track
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
int numberOfValidPixelHits() const
TrkCuts EleTkIsolFromCands::barrelCuts_ |
|
private |
TrkCuts EleTkIsolFromCands::endcapCuts_ |
|
private |