#include <EgammaPCAHelper.h>
Public Types | |
typedef ROOT::Math::Transform3D::Point | Point |
typedef ROOT::Math::Transform3D | 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_ |
unsigned int | maxlayer_ |
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.
typedef ROOT::Math::Transform3D::Point hgcal::EGammaPCAHelper::Point |
Definition at line 36 of file EgammaPCAHelper.h.
typedef ROOT::Math::Transform3D hgcal::EGammaPCAHelper::Transform3D |
Definition at line 35 of file EgammaPCAHelper.h.
EGammaPCAHelper::EGammaPCAHelper | ( | ) |
Definition at line 16 of file EgammaPCAHelper.cc.
EGammaPCAHelper::~EGammaPCAHelper | ( | ) |
Definition at line 27 of file EgammaPCAHelper.cc.
References hitMap_, and hitMapOrigin_.
|
inline |
Definition at line 63 of file EgammaPCAHelper.h.
References axis_.
Referenced by HGCalEgammaIDHelper::axis().
|
inline |
Definition at line 62 of file EgammaPCAHelper.h.
References barycenter_.
Referenced by HGCalEgammaIDHelper::barycenter().
|
private |
Definition at line 241 of file EgammaPCAHelper.cc.
References gather_cfg::cout, debug_, and pcaIteration_.
Referenced by clusterDepthCompatibility(), energyPerLayer(), sigmaEE(), sigmaPP(), sigmaUU(), and sigmaVV().
void EGammaPCAHelper::clear | ( | void | ) |
Definition at line 258 of file EgammaPCAHelper.cc.
References pcaIteration_, sige_, sigp_, sigu_, sigv_, and theSpots_.
Referenced by HGCalEgammaIDHelper::computeHGCAL().
float EGammaPCAHelper::clusterDepthCompatibility | ( | const LongDeps & | ld, |
float & | measuredDepth, | ||
float & | expectedDepth, | ||
float & | expectedSigma | ||
) |
Definition at line 333 of file EgammaPCAHelper.cc.
References funct::abs(), axis_, barycenter_, checkIteration(), DeadROC_duringRun::dir, hgcal::LongDeps::energyEE(), findZFirstLayer(), hgcal::ShowerDepth::getClusterDepthCompatibility(), and showerDepth_.
Referenced by HGCalEgammaIDHelper::clusterDepthCompatibility().
void EGammaPCAHelper::computePCA | ( | float | radius, |
bool | withHalo = true |
||
) |
Definition at line 132 of file EgammaPCAHelper.cc.
References axis_, barycenter_, gather_cfg::cout, debug_, mps_fire::i, hgcal::RecHitTools::lastLayerEE(), hgcalTopologyTester_cfi::layers, DTRecHitClients_cfi::local, pca_, pcaIteration_, CosmicsPD_Skims::radius, recHitTools_, theSpots_, and trans_.
Referenced by HGCalEgammaIDHelper::computeHGCAL(), and pcaInitialComputation().
void EGammaPCAHelper::computeShowerWidth | ( | float | radius, |
bool | withHalo = true |
||
) |
Definition at line 199 of file EgammaPCAHelper.cc.
References SiPixelRawToDigiRegional_cfi::deltaPhi, reco::CaloCluster::eta(), DTRecHitClients_cfi::local, reco::CaloCluster::phi(), CosmicsPD_Skims::radius, sige_, sigp_, sigu_, sigv_, mathSSE::sqrt(), theCluster_, theSpots_, and trans_.
Referenced by HGCalEgammaIDHelper::computeHGCAL().
|
inline |
Definition at line 72 of file EgammaPCAHelper.h.
References pca_.
Referenced by HGCalEgammaIDHelper::eigenValues().
LongDeps EGammaPCAHelper::energyPerLayer | ( | float | radius, |
bool | withHalo = true |
||
) |
Definition at line 267 of file EgammaPCAHelper.cc.
References axis_, barycenter_, checkIteration(), debug_, f, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, hgcalTopologyTester_cfi::layers, DTRecHitClients_cfi::local, maxlayer_, or, CosmicsPD_Skims::radius, theSpots_, and trans_.
Referenced by HGCalEgammaIDHelper::energyPerLayer().
void EGammaPCAHelper::fillHitMap | ( | const HGCRecHitCollection & | HGCEERecHits, |
const HGCRecHitCollection & | HGCFHRecHits, | ||
const HGCRecHitCollection & | HGCBHRecHits | ||
) |
to compute from inside - once per event
Definition at line 43 of file EgammaPCAHelper.cc.
References hitMap_, hitMapOrigin_, and pcaIteration_.
Referenced by HGCalEgammaIDHelper::eventInit().
|
private |
Definition at line 321 of file EgammaPCAHelper.cc.
References hgcal::LongDeps::energyPerLayer(), hgcal::RecHitTools::getPositionLayer(), maxlayer_, recHitTools_, and PV3DBase< T, PVType, FrameType >::z().
Referenced by clusterDepthCompatibility().
|
inline |
Definition at line 59 of file EgammaPCAHelper.h.
References computePCA().
Referenced by HGCalEgammaIDHelper::computeHGCAL().
const TPrincipal& hgcal::EGammaPCAHelper::pcaResult | ( | ) |
void EGammaPCAHelper::printHits | ( | float | radius | ) | const |
Definition at line 307 of file EgammaPCAHelper.cc.
References gather_cfg::cout, mps_fire::i, DTRecHitClients_cfi::local, CosmicsPD_Skims::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(), and ntuplePrintersDiff.TrackPrinter::printTrack().
|
inline |
Definition at line 57 of file EgammaPCAHelper.h.
References HGCalRecHit_cfi::dEdX, and 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 hgcal::RecHitTools::lastLayerBH(), maxlayer_, and recHitTools_.
Referenced by HGCalEgammaIDHelper::eventInit().
|
inline |
Definition at line 69 of file EgammaPCAHelper.h.
References checkIteration(), and sige_.
Referenced by HGCalEgammaIDHelper::sigmaEE().
|
inline |
Definition at line 70 of file EgammaPCAHelper.h.
References checkIteration(), and sigp_.
Referenced by HGCalEgammaIDHelper::sigmaPP().
|
inline |
Definition at line 73 of file EgammaPCAHelper.h.
References pca_.
Referenced by HGCalEgammaIDHelper::sigmas().
|
inline |
Definition at line 67 of file EgammaPCAHelper.h.
References checkIteration(), and sigu_.
Referenced by HGCalEgammaIDHelper::sigmaUU().
|
inline |
Definition at line 68 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(), and storeRecHits().
void EGammaPCAHelper::storeRecHits | ( | const reco::HGCalMultiCluster & | cluster | ) |
Definition at line 63 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(), dqmdumpme::first, HLT_2018_cff::fraction, hgcal::RecHitTools::getLayerWithOffset(), hgcal::RecHitTools::getPosition(), hgcal::RecHitTools::getSiThickIndex(), photonIsolationHIProducer_cfi::hf, hitMap_, invThicknessCorrection_, dqmiolumiharvest::j, 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 102 of file EgammaPCAHelper.h.
Referenced by axis(), clusterDepthCompatibility(), computePCA(), and energyPerLayer().
|
private |
Definition at line 101 of file EgammaPCAHelper.h.
Referenced by barycenter(), clusterDepthCompatibility(), computePCA(), and energyPerLayer().
|
private |
Definition at line 87 of file EgammaPCAHelper.h.
Referenced by checkIteration(), computePCA(), energyPerLayer(), and storeRecHits().
|
private |
Definition at line 90 of file EgammaPCAHelper.h.
Referenced by setdEdXWeights(), and storeRecHits().
Definition at line 95 of file EgammaPCAHelper.h.
Referenced by fillHitMap(), getHitMap(), setHitMap(), storeRecHits(), and ~EGammaPCAHelper().
|
private |
Definition at line 93 of file EgammaPCAHelper.h.
Referenced by fillHitMap(), setHitMap(), and ~EGammaPCAHelper().
|
private |
Definition at line 91 of file EgammaPCAHelper.h.
Referenced by storeRecHits().
|
private |
Definition at line 98 of file EgammaPCAHelper.h.
Referenced by energyPerLayer(), findZFirstLayer(), and setRecHitTools().
|
private |
Definition at line 108 of file EgammaPCAHelper.h.
Referenced by computePCA(), eigenValues(), and sigmas().
|
private |
Definition at line 97 of file EgammaPCAHelper.h.
Referenced by checkIteration(), clear(), computePCA(), fillHitMap(), setHitMap(), and storeRecHits().
|
private |
Definition at line 86 of file EgammaPCAHelper.h.
|
private |
Definition at line 109 of file EgammaPCAHelper.h.
Referenced by computePCA(), findZFirstLayer(), setRecHitTools(), and storeRecHits().
|
private |
Definition at line 110 of file EgammaPCAHelper.h.
Referenced by clusterDepthCompatibility().
|
private |
Definition at line 105 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaEE(), and storeRecHits().
|
private |
Definition at line 105 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaPP(), and storeRecHits().
|
private |
Definition at line 105 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaUU(), and storeRecHits().
|
private |
Definition at line 105 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaVV(), and storeRecHits().
|
private |
Definition at line 94 of file EgammaPCAHelper.h.
Referenced by computeShowerWidth(), and storeRecHits().
|
private |
Definition at line 96 of file EgammaPCAHelper.h.
Referenced by clear(), computePCA(), computeShowerWidth(), energyPerLayer(), printHits(), and storeRecHits().
|
private |
Definition at line 104 of file EgammaPCAHelper.h.
Referenced by computePCA(), computeShowerWidth(), energyPerLayer(), and printHits().