#include <HGCalIsoCalculator.h>
Public Member Functions | |
const float | getIso (const unsigned int ring) const |
HGCalIsoCalculator () | |
void | produceHGCalIso (const reco::CaloClusterPtr &seedCluster) |
void | setDeltaR (const float dr) |
void | setMinDeltaR (const float dr) |
void | setNLayers (unsigned int nLayers) |
void | setNRings (const size_t nrings) |
void | setRecHits (edm::Handle< HGCRecHitCollection > hitsEE, edm::Handle< HGCRecHitCollection > hitsFH, edm::Handle< HGCRecHitCollection > hitsBH) |
fill - once per event More... | |
void | setRecHitTools (const hgcal::RecHitTools *recHitTools) |
~HGCalIsoCalculator () | |
Private Attributes | |
bool | debug_ |
float | dr2_ |
std::vector< std::pair< float, float > > | hitEtaPhiCache_ |
std::vector< float > | isoringdeposits_ |
float | mindr2_ |
unsigned int | nlayers_ |
edm::Handle< HGCRecHitCollection > | recHitsBH_ |
edm::Handle< HGCRecHitCollection > | recHitsEE_ |
edm::Handle< HGCRecHitCollection > | recHitsFH_ |
const hgcal::RecHitTools * | rechittools_ |
std::vector< unsigned int > | ringasso_ |
Definition at line 46 of file HGCalIsoCalculator.h.
HGCalIsoCalculator::HGCalIsoCalculator | ( | ) |
Definition at line 11 of file HGCalIsoCalculator.cc.
References setNRings().
HGCalIsoCalculator::~HGCalIsoCalculator | ( | ) |
Definition at line 16 of file HGCalIsoCalculator.cc.
const float HGCalIsoCalculator::getIso | ( | const unsigned int | ring | ) | const |
Definition at line 114 of file HGCalIsoCalculator.cc.
References isoringdeposits_, and relativeConstraints::ring.
Referenced by HGCalEgammaIDHelper::getIsolationRing().
void HGCalIsoCalculator::produceHGCalIso | ( | const reco::CaloClusterPtr & | seedCluster | ) |
Definition at line 48 of file HGCalIsoCalculator.cc.
References reco::deltaR2(), dr2_, Exception, hgcal::RecHitTools::getLayerWithOffset(), hitEtaPhiCache_, isoringdeposits_, phase1PixelTopology::layer, mindr2_, nlayers_, alignCSCRings::r, recHitsBH_, recHitsEE_, recHitsFH_, rechittools_, relativeConstraints::ring, and ringasso_.
Referenced by HGCalEgammaIDHelper::computeHGCAL().
|
inline |
Definition at line 52 of file HGCalIsoCalculator.h.
References runTauDisplay::dr, and dr2_.
Referenced by HGCalEgammaIDHelper::HGCalEgammaIDHelper().
|
inline |
Definition at line 54 of file HGCalIsoCalculator.h.
References runTauDisplay::dr, and mindr2_.
Referenced by HGCalEgammaIDHelper::HGCalEgammaIDHelper().
|
inline |
void HGCalIsoCalculator::setNRings | ( | const size_t | nrings | ) |
Definition at line 96 of file HGCalIsoCalculator.cc.
References counter, mps_fire::i, isoringdeposits_, nlayers_, ringasso_, and edm::separator().
Referenced by HGCalEgammaIDHelper::HGCalEgammaIDHelper(), and HGCalIsoCalculator().
void HGCalIsoCalculator::setRecHits | ( | edm::Handle< HGCRecHitCollection > | hitsEE, |
edm::Handle< HGCRecHitCollection > | hitsFH, | ||
edm::Handle< HGCRecHitCollection > | hitsBH | ||
) |
fill - once per event
Definition at line 18 of file HGCalIsoCalculator.cc.
References PVValHelper::eta, Exception, hgcal::RecHitTools::getEta(), hgcal::RecHitTools::getPhi(), hgcal::RecHitTools::getPosition(), hitEtaPhiCache_, hit::id, phi, position, recHitsBH_, recHitsEE_, recHitsFH_, and rechittools_.
Referenced by HGCalEgammaIDHelper::eventInit().
|
inline |
Definition at line 56 of file HGCalIsoCalculator.h.
References rechittools_.
Referenced by HGCalEgammaIDHelper::eventInit().
|
private |
Definition at line 82 of file HGCalIsoCalculator.h.
|
private |
Definition at line 75 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), and setDeltaR().
|
private |
Definition at line 81 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), and setRecHits().
|
private |
Definition at line 72 of file HGCalIsoCalculator.h.
Referenced by getIso(), produceHGCalIso(), and setNRings().
|
private |
Definition at line 75 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), and setMinDeltaR().
|
private |
Definition at line 83 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), setNLayers(), and setNRings().
|
private |
Definition at line 80 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), and setRecHits().
|
private |
Definition at line 78 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), and setRecHits().
|
private |
Definition at line 79 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), and setRecHits().
|
private |
Definition at line 77 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), setRecHits(), and setRecHitTools().
|
private |
Definition at line 73 of file HGCalIsoCalculator.h.
Referenced by produceHGCalIso(), and setNRings().