9 #ifndef RecoEgamma_EgammaTools_EGammaPCAHelper_h 10 #define RecoEgamma_EgammaTools_EGammaPCAHelper_h 24 #include "Math/Transform3D.h" 27 #include "TPrincipal.h" 48 void setHitMap( std::map<DetId,const HGCRecHit *> * hitMap) ;
76 inline const TVectorD&
sigmas()
const {
return *
pca_->GetSigmas();}
98 std::map<DetId, const HGCRecHit *> *
hitMap_;
110 std::unique_ptr<TPrincipal>
pca_;
void computeShowerWidth(float radius, bool withHalo=true)
math::XYZPoint barycenter_
void computePCA(float radius, bool withHalo=true)
std::map< DetId, const HGCRecHit * > * hitMap_
LongDeps energyPerLayer(float radius, bool withHalo=true)
float findZFirstLayer(const LongDeps &) const
const math::XYZPoint & barycenter() const
std::unique_ptr< TPrincipal > pca_
const TVectorD & eigenValues() const
void setdEdXWeights(const std::vector< double > &dEdX)
const TVectorD & sigmas() const
void storeRecHits(const reco::CaloCluster &theCluster)
void setHitMap(std::map< DetId, const HGCRecHit * > *hitMap)
to set from outside - once per event
std::vector< Spot > theSpots_
std::map< DetId, const HGCRecHit * > * getHitMap()
ROOT::Math::Transform3D Transform3D
void setRecHitTools(const hgcal::RecHitTools *recHitTools)
float clusterDepthCompatibility(const LongDeps &, float &measuredDepth, float &expectedDepth, float &expectedSigma)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
void printHits(float radius) const
std::vector< double > invThicknessCorrection_
void pcaInitialComputation()
void fillHitMap(const HGCRecHitCollection &HGCEERecHits, const HGCRecHitCollection &HGCFHRecHits, const HGCRecHitCollection &HGCBHRecHits)
to compute from inside - once per event
std::vector< double > dEdXWeights_
const reco::CaloCluster * theCluster_
const TPrincipal & pcaResult()
bool checkIteration() const
const math::XYZVector & axis() const
ROOT::Math::Transform3D::Point Point
const hgcal::RecHitTools * recHitTools_