1 #ifndef RecoEgamma_EgammaTools_HGCalShowerShapeHelper_h 2 #define RecoEgamma_EgammaTools_HGCalShowerShapeHelper_h 11 #include <Math/Vector3Dfwd.h> 75 std::shared_ptr<
const std::unordered_map<uint32_t, const reco::PFRecHit *> > pfRecHitPtrMap,
76 const std::vector<std::pair<DetId, float> > &hitsAndFracs,
78 const double minHitE = 0,
79 const double minHitET = 0,
81 const int maxLayer = -1,
87 double getRvar(
double cylinderR,
bool useFractions =
true,
bool useCellSize =
true)
const;
99 std::shared_ptr<const std::unordered_map<uint32_t, const reco::PFRecHit *> >
pfRecHitPtrMap_;
127 template <edm::Transition tr = edm::Transition::Event>
157 std::shared_ptr<std::unordered_map<uint32_t, const reco::PFRecHit *> >
pfRecHitPtrMap_;
std::vector< double > hitEnergiesWithFracs_
std::shared_ptr< std::unordered_map< uint32_t, const reco::PFRecHit * > > pfRecHitPtrMap_
std::vector< std::pair< DetId, float > > hitsAndFracs_
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
std::shared_ptr< const hgcal::RecHitTools > recHitTools_
double getRvar(double cylinderR, bool useFractions=true, bool useCellSize=true) const
double rawEnergy() const
raw uncorrected energy (sum of energies of component BasicClusters)
static const double kHDWaferCellSize_
ShowerShapeCalc(std::shared_ptr< const hgcal::RecHitTools > recHitTools, std::shared_ptr< const std::unordered_map< uint32_t, const reco::PFRecHit *> > pfRecHitPtrMap, const std::vector< std::pair< DetId, float > > &hitsAndFracs, const double rawEnergy, const double minHitE=0, const double minHitET=0, const int minLayer=1, const int maxLayer=-1, DetId::Detector subDet=DetId::HGCalEE)
std::vector< double > hitEnergies_
void initPerSetup(const edm::EventSetup &iSetup)
void setFilteredHitsAndFractions(const std::vector< std::pair< DetId, float > > &hitsAndFracs)
void initPerEvent(const std::vector< reco::PFRecHit > &recHits)
static const double kLDWaferCellSize_
std::shared_ptr< const std::unordered_map< uint32_t, const reco::PFRecHit * > > pfRecHitPtrMap_
std::vector< double > getEnergyHighestHits(unsigned int nrHits, bool useFractions=true) const
HGCalShowerShapeHelper::ShowerShapeCalc createCalc(const reco::SuperCluster &sc, double minHitE=0, double minHitET=0, int minLayer=1, int maxLayer=-1, DetId::Detector subDet=DetId::HGCalEE) const
std::vector< ROOT::Math::XYZVector > layerCentroids_
std::shared_ptr< hgcal::RecHitTools > recHitTools_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeometryToken_
Transform3DPJ::Vector XYZVector
ROOT::Math::XYZVector centroid_
HGCalShowerShapeHelper & operator=(const HGCalShowerShapeHelper &rhs)=delete
void setTokens(edm::ConsumesCollector consumesCollector)
std::vector< double > layerEnergies_
void setPFRecHitPtrMap(const std::vector< reco::PFRecHit > &recHits)
~HGCalShowerShapeHelper()=default
double getCellSize(DetId detId) const
ShowerWidths getPCAWidths(double cylinderR, bool useFractions=false) const
HGCalShowerShapeHelper::ShowerShapeCalc createCalc(const std::vector< std::pair< DetId, float > > &hitsAndFracs, double rawEnergy, double minHitE=0, double minHitET=0, int minLayer=1, int maxLayer=-1, DetId::Detector subDet=DetId::HGCalEE) const