#include <HGCalShowerShapeHelper.h>
Public Member Functions | |
double | getCellSize (DetId detId) const |
std::vector< double > | getEnergyHighestHits (unsigned int nrHits, bool useFractions=true) const |
ShowerWidths | getPCAWidths (double cylinderR, bool useFractions=false) const |
double | getRvar (double cylinderR, bool useFractions=true, bool useCellSize=true) const |
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) | |
Private Member Functions | |
void | setFilteredHitsAndFractions (const std::vector< std::pair< DetId, float > > &hitsAndFracs) |
void | setLayerWiseInfo () |
Private Attributes | |
ROOT::Math::XYZVector | centroid_ |
std::vector< double > | hitEnergies_ |
std::vector< double > | hitEnergiesWithFracs_ |
std::vector< std::pair< DetId, float > > | hitsAndFracs_ |
std::vector< ROOT::Math::XYZVector > | layerCentroids_ |
std::vector< double > | layerEnergies_ |
int | maxLayer_ |
double | minHitE_ |
double | minHitET2_ |
double | minHitET_ |
int | minLayer_ |
int | nLayer_ |
std::shared_ptr< const std::unordered_map< uint32_t, const reco::PFRecHit * > > | pfRecHitPtrMap_ |
double | rawEnergy_ |
std::shared_ptr< const hgcal::RecHitTools > | recHitTools_ |
DetId::Detector | subDet_ |
Definition at line 72 of file HGCalShowerShapeHelper.h.
HGCalShowerShapeHelper::ShowerShapeCalc::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 |
||
) |
Definition at line 12 of file HGCalShowerShapeHelper.cc.
References cms::cuda::assert(), nLayer_, setFilteredHitsAndFractions(), and setLayerWiseInfo().
double HGCalShowerShapeHelper::ShowerShapeCalc::getCellSize | ( | DetId | detId | ) | const |
Definition at line 37 of file HGCalShowerShapeHelper.cc.
References HGCalShowerShapeHelper::kHDWaferCellSize_, HGCalShowerShapeHelper::kLDWaferCellSize_, and HGCalShowerShapeHelper::recHitTools_.
std::vector< double > HGCalShowerShapeHelper::ShowerShapeCalc::getEnergyHighestHits | ( | unsigned int | nrHits, |
bool | useFractions = true |
||
) | const |
Definition at line 198 of file HGCalShowerShapeHelper.cc.
References hfClusterShapes_cfi::hits.
HGCalShowerShapeHelper::ShowerWidths HGCalShowerShapeHelper::ShowerShapeCalc::getPCAWidths | ( | double | cylinderR, |
bool | useFractions = false |
||
) | const |
Definition at line 92 of file HGCalShowerShapeHelper.cc.
References dydz, diffTwoXMLs::r2, HGCalShowerShapeHelper::recHitTools_, HGCalShowerShapeHelper::ShowerWidths::sigma2uu, HGCalShowerShapeHelper::ShowerWidths::sigma2vv, HGCalShowerShapeHelper::ShowerWidths::sigma2ww, HGCalShowerShapeHelper::ShowerWidths::sigma2xx, HGCalShowerShapeHelper::ShowerWidths::sigma2xy, HGCalShowerShapeHelper::ShowerWidths::sigma2yy, HGCalShowerShapeHelper::ShowerWidths::sigma2yz, HGCalShowerShapeHelper::ShowerWidths::sigma2zx, HGCalShowerShapeHelper::ShowerWidths::sigma2zz, and mps_merge::weight.
Referenced by SCEnergyCorrectorSemiParm::getRegDataHGCALV1().
double HGCalShowerShapeHelper::ShowerShapeCalc::getRvar | ( | double | cylinderR, |
bool | useFractions = true , |
||
bool | useCellSize = true |
||
) | const |
Definition at line 41 of file HGCalShowerShapeHelper.cc.
References diffTwoXMLs::r2, HGCalShowerShapeHelper::recHitTools_, and mathSSE::sqrt().
|
private |
Definition at line 207 of file HGCalShowerShapeHelper.cc.
References DetId::det(), HGCalShowerShapeHelper::pfRecHitPtrMap_, DetId::rawId(), rpcPointValidation_cfi::recHit, and HGCalShowerShapeHelper::recHitTools_.
Referenced by ShowerShapeCalc().
|
private |
Definition at line 248 of file HGCalShowerShapeHelper.cc.
References HGCalShowerShapeHelper::recHitTools_, and mps_merge::weight.
Referenced by ShowerShapeCalc().
|
private |
Definition at line 114 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 111 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 112 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 110 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 116 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 115 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 106 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 102 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 104 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 103 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 105 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 107 of file HGCalShowerShapeHelper.h.
Referenced by ShowerShapeCalc().
|
private |
Definition at line 99 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 100 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 98 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 108 of file HGCalShowerShapeHelper.h.