#include <TrackIsoCalculator.h>
Public Member Functions | |
double | getBkgSubTrackIso (const reco::Photon clus, const double i, const double threshold, const double innerDR=0) |
Return the background-subtracted tracker energy in a cone around the photon. More... | |
double | getTrackIso (const reco::Photon clus, const double i, const double threshold, const double innerDR=0) |
Return the tracker energy in a cone around the photon. More... | |
TrackIsoCalculator (const edm::Event &iEvent, const edm::EventSetup &iSetup, const edm::Handle< reco::TrackCollection > trackLabel, const std::string trackQuality_) | |
Private Attributes | |
edm::Handle< reco::TrackCollection > | recCollection |
std::string | trackQuality_ |
Definition at line 22 of file TrackIsoCalculator.h.
TrackIsoCalculator::TrackIsoCalculator | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const edm::Handle< reco::TrackCollection > | trackLabel, | ||
const std::string | trackQuality_ | ||
) |
Definition at line 19 of file TrackIsoCalculator.cc.
References HLT_2018_cff::trackLabel, and StandaloneTrackMonitor_cfi::trackQuality.
double TrackIsoCalculator::getBkgSubTrackIso | ( | const reco::Photon | clus, |
const double | i, | ||
const double | threshold, | ||
const double | innerDR = 0 |
||
) |
Return the background-subtracted tracker energy in a cone around the photon.
Definition at line 52 of file TrackIsoCalculator.cc.
References reco::deltaR2(), HLT_2018_cff::dEta, reco::LeafCandidate::eta(), HLT_2018_cff::eta2, DiDispStaMuonMonitor_cfi::pt, and reco::TrackBase::qualityByName().
Referenced by photonIsolationHIProducer::produce().
double TrackIsoCalculator::getTrackIso | ( | const reco::Photon | clus, |
const double | i, | ||
const double | threshold, | ||
const double | innerDR = 0 |
||
) |
Return the tracker energy in a cone around the photon.
Definition at line 27 of file TrackIsoCalculator.cc.
References reco::deltaR2(), DiDispStaMuonMonitor_cfi::pt, and reco::TrackBase::qualityByName().
|
private |
Definition at line 35 of file TrackIsoCalculator.h.
|
private |
Definition at line 36 of file TrackIsoCalculator.h.