#include <EgammaPCAHelper.h>
Public Types | |
typedef ROOT::Math::Transform3DPJ::Point | Point |
typedef ROOT::Math::Transform3DPJ | Transform3D |
Public Member Functions | |
const math::XYZVector & | axis () const |
const math::XYZPoint & | barycenter () const |
void | clear () |
float | clusterDepthCompatibility (const LongDeps &, float &measuredDepth, float &expectedDepth, float &expectedSigma) |
void | computePCA (float radius, bool withHalo=true) |
void | computeShowerWidth (float radius, bool withHalo=true) |
EGammaPCAHelper () | |
const TVectorD & | eigenValues () const |
LongDeps | energyPerLayer (float radius, bool withHalo=true) |
void | fillHitMap (const HGCRecHitCollection &HGCEERecHits, const HGCRecHitCollection &HGCFHRecHits, const HGCRecHitCollection &HGCBHRecHits) |
to compute from inside - once per event More... | |
std::map< DetId, const HGCRecHit * > * | getHitMap () |
void | pcaInitialComputation () |
const TPrincipal & | pcaResult () |
void | printHits (float radius) const |
void | setdEdXWeights (const std::vector< double > &dEdX) |
void | setHitMap (std::map< DetId, const HGCRecHit * > *hitMap) |
to set from outside - once per event More... | |
void | setRecHitTools (const hgcal::RecHitTools *recHitTools) |
double | sigmaEE () const |
double | sigmaPP () const |
const TVectorD & | sigmas () const |
double | sigmaUU () const |
double | sigmaVV () const |
void | storeRecHits (const reco::CaloCluster &theCluster) |
void | storeRecHits (const reco::HGCalMultiCluster &cluster) |
~EGammaPCAHelper () | |
Private Member Functions | |
bool | checkIteration () const |
float | findZFirstLayer (const LongDeps &) const |
void | storeRecHits (const std::vector< std::pair< DetId, float >> &hf) |
Private Attributes | |
math::XYZVector | axis_ |
math::XYZPoint | barycenter_ |
bool | debug_ |
std::vector< double > | dEdXWeights_ |
std::map< DetId, const HGCRecHit * > * | hitMap_ |
int | hitMapOrigin_ |
std::vector< double > | invThicknessCorrection_ |
std::unique_ptr< TPrincipal > | pca_ |
int | pcaIteration_ |
bool | recHitsStored_ |
const hgcal::RecHitTools * | recHitTools_ |
ShowerDepth | showerDepth_ |
double | sige_ |
double | sigp_ |
double | sigu_ |
double | sigv_ |
const reco::CaloCluster * | theCluster_ |
std::vector< Spot > | theSpots_ |
Transform3D | trans_ |
Definition at line 33 of file EgammaPCAHelper.h.
Definition at line 37 of file EgammaPCAHelper.h.
Definition at line 36 of file EgammaPCAHelper.h.
EGammaPCAHelper::EGammaPCAHelper | ( | ) |
Definition at line 17 of file EgammaPCAHelper.cc.
EGammaPCAHelper::~EGammaPCAHelper | ( | ) |
Definition at line 28 of file EgammaPCAHelper.cc.
References hitMap_, and hitMapOrigin_.
|
inline |
Definition at line 66 of file EgammaPCAHelper.h.
References axis_, and computeShowerWidth().
Referenced by HGCalEgammaIDHelper::axis().
|
inline |
Definition at line 65 of file EgammaPCAHelper.h.
References barycenter_.
Referenced by HGCalEgammaIDHelper::barycenter().
|
private |
Definition at line 230 of file EgammaPCAHelper.cc.
References gather_cfg::cout, debug_, and pcaIteration_.
Referenced by clusterDepthCompatibility(), energyPerLayer(), sigmaEE(), sigmaPP(), sigmas(), sigmaUU(), and sigmaVV().
void EGammaPCAHelper::clear | ( | void | ) |
Definition at line 247 of file EgammaPCAHelper.cc.
References pcaIteration_, sige_, sigp_, sigu_, sigv_, and theSpots_.
Referenced by HGCalEgammaIDHelper::computeHGCAL(), and sigmas().
float EGammaPCAHelper::clusterDepthCompatibility | ( | const LongDeps & | ld, |
float & | measuredDepth, | ||
float & | expectedDepth, | ||
float & | expectedSigma | ||
) |
Definition at line 312 of file EgammaPCAHelper.cc.
References funct::abs(), axis_, barycenter_, checkIteration(), dir, hgcal::LongDeps::energyEE(), findZFirstLayer(), hgcal::ShowerDepth::getClusterDepthCompatibility(), and showerDepth_.
Referenced by HGCalEgammaIDHelper::clusterDepthCompatibility(), and sigmas().
void EGammaPCAHelper::computePCA | ( | float | radius, |
bool | withHalo = true |
||
) |
Definition at line 130 of file EgammaPCAHelper.cc.
References axis_, barycenter_, gather_cfg::cout, debug_, mps_fire::i, hgcal::RecHitTools::lastLayerEE(), LayerTriplets::layers(), DTRecHitClients_cfi::local, pca_, pcaIteration_, TCMET_cfi::radius, recHitTools_, theSpots_, and trans_.
Referenced by HGCalEgammaIDHelper::computeHGCAL(), and pcaInitialComputation().
void EGammaPCAHelper::computeShowerWidth | ( | float | radius, |
bool | withHalo = true |
||
) |
Definition at line 191 of file EgammaPCAHelper.cc.
References hiPixelPairStep_cff::deltaPhi, reco::CaloCluster::eta(), DTRecHitClients_cfi::local, reco::CaloCluster::phi(), TCMET_cfi::radius, sige_, sigp_, sigu_, sigv_, mathSSE::sqrt(), theCluster_, theSpots_, and trans_.
Referenced by axis(), and HGCalEgammaIDHelper::computeHGCAL().
|
inline |
Definition at line 75 of file EgammaPCAHelper.h.
References pca_.
Referenced by HGCalEgammaIDHelper::eigenValues().
LongDeps EGammaPCAHelper::energyPerLayer | ( | float | radius, |
bool | withHalo = true |
||
) |
Definition at line 256 of file EgammaPCAHelper.cc.
References axis_, barycenter_, checkIteration(), debug_, f, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, LayerTriplets::layers(), DTRecHitClients_cfi::local, HGCalImagingAlgo::maxlayer, or, TCMET_cfi::radius, theSpots_, and trans_.
Referenced by HGCalEgammaIDHelper::energyPerLayer(), and sigmas().
void EGammaPCAHelper::fillHitMap | ( | const HGCRecHitCollection & | HGCEERecHits, |
const HGCRecHitCollection & | HGCFHRecHits, | ||
const HGCRecHitCollection & | HGCBHRecHits | ||
) |
to compute from inside - once per event
Definition at line 42 of file EgammaPCAHelper.cc.
References hitMap_, hitMapOrigin_, and pcaIteration_.
Referenced by HGCalEgammaIDHelper::eventInit().
|
private |
Definition at line 300 of file EgammaPCAHelper.cc.
References hgcal::LongDeps::energyPerLayer(), hgcal::RecHitTools::getPositionLayer(), HGCalImagingAlgo::maxlayer, recHitTools_, and PV3DBase< T, PVType, FrameType >::z().
Referenced by clusterDepthCompatibility(), and sigmas().
Definition at line 54 of file EgammaPCAHelper.h.
References hitMap_, and setRecHitTools().
|
inline |
Definition at line 60 of file EgammaPCAHelper.h.
References computePCA(), and TCMET_cfi::radius.
Referenced by HGCalEgammaIDHelper::computeHGCAL().
const TPrincipal& hgcal::EGammaPCAHelper::pcaResult | ( | ) |
void EGammaPCAHelper::printHits | ( | float | radius | ) | const |
Definition at line 287 of file EgammaPCAHelper.cc.
References gather_cfg::cout, mps_fire::i, DTRecHitClients_cfi::local, TCMET_cfi::radius, hgcal::Spot::row(), mathSSE::sqrt(), theSpots_, and trans_.
Referenced by ntuplePrintersDiff.TrackingParticlePrinter::__call__(), ntuplePrintersDiff.SeedPrinter::diff(), ntuplePrintersDiff.TrackPrinter::diff(), ntuplePrintersDiff.TrackingParticlePrinter::diff(), HGCalEgammaIDHelper::printHits(), ntuplePrintersDiff.SeedPrinter::printSeed(), ntuplePrintersDiff.TrackPrinter::printTrack(), and sigmas().
|
inline |
Definition at line 58 of file EgammaPCAHelper.h.
References dEdXWeights_.
Referenced by HGCalEgammaIDHelper::HGCalEgammaIDHelper().
to set from outside - once per event
Definition at line 32 of file EgammaPCAHelper.cc.
References hitMap_, hitMapOrigin_, and pcaIteration_.
void EGammaPCAHelper::setRecHitTools | ( | const hgcal::RecHitTools * | recHitTools | ) |
Definition at line 38 of file EgammaPCAHelper.cc.
References recHitTools_.
Referenced by HGCalEgammaIDHelper::eventInit(), and getHitMap().
|
inline |
Definition at line 72 of file EgammaPCAHelper.h.
References checkIteration(), and sige_.
Referenced by HGCalEgammaIDHelper::sigmaEE().
|
inline |
Definition at line 73 of file EgammaPCAHelper.h.
References checkIteration(), and sigp_.
Referenced by HGCalEgammaIDHelper::sigmaPP().
|
inline |
Definition at line 76 of file EgammaPCAHelper.h.
References checkIteration(), clear(), clusterDepthCompatibility(), energyPerLayer(), findZFirstLayer(), photonIsolationHIProducer_cfi::hf, pca_, printHits(), and storeRecHits().
Referenced by HGCalEgammaIDHelper::sigmas().
|
inline |
Definition at line 70 of file EgammaPCAHelper.h.
References checkIteration(), and sigu_.
Referenced by HGCalEgammaIDHelper::sigmaUU().
|
inline |
Definition at line 71 of file EgammaPCAHelper.h.
References checkIteration(), and sigv_.
Referenced by HGCalEgammaIDHelper::sigmaVV().
void EGammaPCAHelper::storeRecHits | ( | const reco::CaloCluster & | theCluster | ) |
Definition at line 73 of file EgammaPCAHelper.cc.
References reco::CaloCluster::hitsAndFractions(), and theCluster_.
Referenced by HGCalEgammaIDHelper::computeHGCAL(), sigmas(), and storeRecHits().
void EGammaPCAHelper::storeRecHits | ( | const reco::HGCalMultiCluster & | cluster | ) |
Definition at line 62 of file EgammaPCAHelper.cc.
References reco::HGCalMultiCluster::begin(), reco::HGCalMultiCluster::end(), photonIsolationHIProducer_cfi::hf, mps_fire::result, storeRecHits(), and theCluster_.
|
private |
Definition at line 78 of file EgammaPCAHelper.cc.
References gather_cfg::cout, debug_, dEdXWeights_, DetId::det(), plotBeamSpotDB::first, dedxEstimators_cff::fraction, hgcal::RecHitTools::getLayerWithOffset(), hgcal::RecHitTools::getPosition(), hgcal::RecHitTools::getSiThickIndex(), photonIsolationHIProducer_cfi::hf, hitMap_, invThicknessCorrection_, pcaIteration_, DetId::rawId(), recHitTools_, sige_, sigp_, sigu_, sigv_, theSpots_, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
|
private |
Definition at line 104 of file EgammaPCAHelper.h.
Referenced by axis(), clusterDepthCompatibility(), computePCA(), and energyPerLayer().
|
private |
Definition at line 103 of file EgammaPCAHelper.h.
Referenced by barycenter(), clusterDepthCompatibility(), computePCA(), and energyPerLayer().
|
private |
Definition at line 90 of file EgammaPCAHelper.h.
Referenced by checkIteration(), computePCA(), energyPerLayer(), and storeRecHits().
|
private |
Definition at line 93 of file EgammaPCAHelper.h.
Referenced by setdEdXWeights(), and storeRecHits().
Definition at line 98 of file EgammaPCAHelper.h.
Referenced by fillHitMap(), getHitMap(), setHitMap(), storeRecHits(), and ~EGammaPCAHelper().
|
private |
Definition at line 96 of file EgammaPCAHelper.h.
Referenced by fillHitMap(), setHitMap(), and ~EGammaPCAHelper().
|
private |
Definition at line 94 of file EgammaPCAHelper.h.
Referenced by storeRecHits().
|
private |
Definition at line 110 of file EgammaPCAHelper.h.
Referenced by computePCA(), eigenValues(), and sigmas().
|
private |
Definition at line 100 of file EgammaPCAHelper.h.
Referenced by checkIteration(), clear(), computePCA(), fillHitMap(), setHitMap(), and storeRecHits().
|
private |
Definition at line 89 of file EgammaPCAHelper.h.
|
private |
Definition at line 111 of file EgammaPCAHelper.h.
Referenced by computePCA(), findZFirstLayer(), setRecHitTools(), and storeRecHits().
|
private |
Definition at line 112 of file EgammaPCAHelper.h.
Referenced by clusterDepthCompatibility().
|
private |
Definition at line 107 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaEE(), and storeRecHits().
|
private |
Definition at line 107 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaPP(), and storeRecHits().
|
private |
Definition at line 107 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaUU(), and storeRecHits().
|
private |
Definition at line 107 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaVV(), and storeRecHits().
|
private |
Definition at line 97 of file EgammaPCAHelper.h.
Referenced by computeShowerWidth(), and storeRecHits().
|
private |
Definition at line 99 of file EgammaPCAHelper.h.
Referenced by clear(), computePCA(), computeShowerWidth(), energyPerLayer(), printHits(), and storeRecHits().
|
private |
Definition at line 106 of file EgammaPCAHelper.h.
Referenced by computePCA(), computeShowerWidth(), energyPerLayer(), and printHits().