#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 45 of file EleTkIsolFromCands.h.
EleTkIsolFromCands::~EleTkIsolFromCands |
( |
| ) |
|
|
default |
Definition at line 63 of file EleTkIsolFromCands.cc.
References egammaForCoreTracking_cff::cands, reco::TrackBase::eta(), reco::TrackBase::phi(), and reco::TrackBase::vz().
Referenced by calIsol(), and calIsolPt().
67 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 71 of file EleTkIsolFromCands.cc.
References funct::abs(), barrelCuts_, egammaForCoreTracking_cff::cuts, endcapCuts_, passPIDVeto(), passTrkSel(), and reco::TrackBase::pt().
90 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)
std::pair< int, double > EleTkIsolFromCands::calIsol |
( |
const double |
eleEta, |
|
|
const double |
elePhi, |
|
|
const double |
eleVZ, |
|
|
const reco::TrackCollection & |
tracks |
|
) |
| const |
Definition at line 103 of file EleTkIsolFromCands.cc.
References funct::abs(), barrelCuts_, egammaForCoreTracking_cff::cuts, endcapCuts_, and passTrkSel().
118 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 90 of file EleTkIsolFromCands.h.
References writedatasetfile::args, calIsol(), egammaForCoreTracking_cff::cuts, passAlgo(), passPIDVeto(), passQual(), passTrkSel(), common_cff::pdgId, pidVetoFromStr(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ElectronHEEPIDValueMapProducer::calTrkIso(), and GsfElectronAlgo::createElectron().
90 {
return calIsol(std::forward<Args>(
args)...).second;}
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 149 of file EleTkIsolFromCands.cc.
References funct::abs(), EleTkIsolFromCands::TrkCuts::algosToReject, EleTkIsolFromCands::TrkCuts::allowedQualities, reco::deltaR2(), particleFlow_cfi::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().
155 const float dEta = trk.
eta()-eleEta;
156 const float dZ = eleVZ - trk.
vz();
158 return dR2>=
cuts.minDR2 && dR2<=
cuts.maxDR2 &&
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 |