#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) |
const std::unordered_map< DetId, const HGCRecHit * > * | getHitMap () |
void | pcaInitialComputation () |
const TPrincipal & | pcaResult () |
void | printHits (float radius) const |
void | setdEdXWeights (const std::vector< double > &dEdX) |
void | setHitMap (const std::unordered_map< DetId, const HGCRecHit *> *hitMap) |
to set 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) |
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_ |
const std::unordered_map< DetId, const HGCRecHit * > * | hitMap_ |
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 17 of file EgammaPCAHelper.cc.
|
inline |
Definition at line 57 of file EgammaPCAHelper.h.
References axis_.
Referenced by HGCalEgammaIDHelper::axis().
|
inline |
Definition at line 56 of file EgammaPCAHelper.h.
References barycenter_.
Referenced by HGCalEgammaIDHelper::barycenter().
|
private |
Definition at line 215 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 232 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 307 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 106 of file EgammaPCAHelper.cc.
References axis_, barycenter_, gather_cfg::cout, debug_, mps_fire::i, hgcal::RecHitTools::lastLayerEE(), hgcalTBTopologyTester_cfi::layers, DTRecHitClients_cfi::local, compareTotals::means, 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 173 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 66 of file EgammaPCAHelper.h.
References pca_.
Referenced by HGCalEgammaIDHelper::eigenValues().
LongDeps EGammaPCAHelper::energyPerLayer | ( | float | radius, |
bool | withHalo = true |
||
) |
Definition at line 241 of file EgammaPCAHelper.cc.
References axis_, barycenter_, checkIteration(), debug_, f, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, hgcalTBTopologyTester_cfi::layers, DTRecHitClients_cfi::local, maxlayer_, or, CosmicsPD_Skims::radius, theSpots_, and trans_.
Referenced by HGCalEgammaIDHelper::energyPerLayer().
|
private |
Definition at line 295 of file EgammaPCAHelper.cc.
References hgcal::LongDeps::energyPerLayer(), hgcal::RecHitTools::getPositionLayer(), maxlayer_, recHitTools_, and PV3DBase< T, PVType, FrameType >::z().
Referenced by clusterDepthCompatibility().
Definition at line 47 of file EgammaPCAHelper.h.
References hitMap_.
|
inline |
Definition at line 53 of file EgammaPCAHelper.h.
References computePCA().
Referenced by HGCalEgammaIDHelper::computeHGCAL().
const TPrincipal& hgcal::EGammaPCAHelper::pcaResult | ( | ) |
void EGammaPCAHelper::printHits | ( | float | radius | ) | const |
Definition at line 281 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 51 of file EgammaPCAHelper.h.
References HGCalRecHit_cfi::dEdX, and dEdXWeights_.
Referenced by HGCalEgammaIDHelper::HGCalEgammaIDHelper().
to set once per event
Definition at line 27 of file EgammaPCAHelper.cc.
References hitMap_, and pcaIteration_.
Referenced by HGCalEgammaIDHelper::eventInit().
void EGammaPCAHelper::setRecHitTools | ( | const hgcal::RecHitTools * | recHitTools | ) |
Definition at line 32 of file EgammaPCAHelper.cc.
References hgcal::RecHitTools::lastLayerBH(), maxlayer_, and recHitTools_.
Referenced by HGCalEgammaIDHelper::eventInit().
|
inline |
Definition at line 63 of file EgammaPCAHelper.h.
References checkIteration(), and sige_.
Referenced by HGCalEgammaIDHelper::sigmaEE().
|
inline |
Definition at line 64 of file EgammaPCAHelper.h.
References checkIteration(), and sigp_.
Referenced by HGCalEgammaIDHelper::sigmaPP().
|
inline |
Definition at line 67 of file EgammaPCAHelper.h.
References pca_.
Referenced by HGCalEgammaIDHelper::sigmas().
|
inline |
Definition at line 61 of file EgammaPCAHelper.h.
References checkIteration(), and sigu_.
Referenced by HGCalEgammaIDHelper::sigmaUU().
|
inline |
Definition at line 62 of file EgammaPCAHelper.h.
References checkIteration(), and sigv_.
Referenced by HGCalEgammaIDHelper::sigmaVV().
void EGammaPCAHelper::storeRecHits | ( | const reco::CaloCluster & | theCluster | ) |
Definition at line 47 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 37 of file EgammaPCAHelper.cc.
References reco::HGCalMultiCluster::begin(), reco::HGCalMultiCluster::end(), photonIsolationHIProducer_cfi::hf, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, mps_fire::result, storeRecHits(), and theCluster_.
|
private |
Definition at line 52 of file EgammaPCAHelper.cc.
References gather_cfg::cout, debug_, dEdXWeights_, DetId::det(), dqmdumpme::first, HLT_2024v11_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 95 of file EgammaPCAHelper.h.
Referenced by axis(), clusterDepthCompatibility(), computePCA(), and energyPerLayer().
|
private |
Definition at line 94 of file EgammaPCAHelper.h.
Referenced by barycenter(), clusterDepthCompatibility(), computePCA(), and energyPerLayer().
|
private |
Definition at line 81 of file EgammaPCAHelper.h.
Referenced by checkIteration(), computePCA(), energyPerLayer(), and storeRecHits().
|
private |
Definition at line 84 of file EgammaPCAHelper.h.
Referenced by setdEdXWeights(), and storeRecHits().
Definition at line 88 of file EgammaPCAHelper.h.
Referenced by getHitMap(), setHitMap(), and storeRecHits().
|
private |
Definition at line 85 of file EgammaPCAHelper.h.
Referenced by storeRecHits().
|
private |
Definition at line 91 of file EgammaPCAHelper.h.
Referenced by energyPerLayer(), findZFirstLayer(), and setRecHitTools().
|
private |
Definition at line 101 of file EgammaPCAHelper.h.
Referenced by computePCA(), eigenValues(), and sigmas().
|
private |
Definition at line 90 of file EgammaPCAHelper.h.
Referenced by checkIteration(), clear(), computePCA(), setHitMap(), and storeRecHits().
|
private |
Definition at line 80 of file EgammaPCAHelper.h.
|
private |
Definition at line 102 of file EgammaPCAHelper.h.
Referenced by computePCA(), findZFirstLayer(), setRecHitTools(), and storeRecHits().
|
private |
Definition at line 103 of file EgammaPCAHelper.h.
Referenced by clusterDepthCompatibility().
|
private |
Definition at line 98 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaEE(), and storeRecHits().
|
private |
Definition at line 98 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaPP(), and storeRecHits().
|
private |
Definition at line 98 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaUU(), and storeRecHits().
|
private |
Definition at line 98 of file EgammaPCAHelper.h.
Referenced by clear(), computeShowerWidth(), sigmaVV(), and storeRecHits().
|
private |
Definition at line 87 of file EgammaPCAHelper.h.
Referenced by computeShowerWidth(), and storeRecHits().
|
private |
Definition at line 89 of file EgammaPCAHelper.h.
Referenced by clear(), computePCA(), computeShowerWidth(), energyPerLayer(), printHits(), and storeRecHits().
|
private |
Definition at line 97 of file EgammaPCAHelper.h.
Referenced by computePCA(), computeShowerWidth(), energyPerLayer(), and printHits().