#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 88 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 6 of file HGCalShowerShapeHelper.cc.
References cms::cuda::assert(), nLayer_, setFilteredHitsAndFractions(), and setLayerWiseInfo().
double HGCalShowerShapeHelper::ShowerShapeCalc::getCellSize | ( | DetId | detId | ) | const |
Definition at line 31 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 192 of file HGCalShowerShapeHelper.cc.
References hfClusterShapes_cfi::hits.
HGCalShowerShapeHelper::ShowerWidths HGCalShowerShapeHelper::ShowerShapeCalc::getPCAWidths | ( | double | cylinderR, |
bool | useFractions = false |
||
) | const |
Definition at line 86 of file HGCalShowerShapeHelper.cc.
References BeamSpotFakeParameters_cfi::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 35 of file HGCalShowerShapeHelper.cc.
References diffTwoXMLs::r2, HGCalShowerShapeHelper::recHitTools_, and mathSSE::sqrt().
|
private |
Definition at line 201 of file HGCalShowerShapeHelper.cc.
References DetId::det(), HGCalShowerShapeHelper::pfRecHitPtrMap_, DetId::rawId(), rpcPointValidation_cfi::recHit, and HGCalShowerShapeHelper::recHitTools_.
Referenced by ShowerShapeCalc().
|
private |
Definition at line 242 of file HGCalShowerShapeHelper.cc.
References HGCalShowerShapeHelper::recHitTools_, and mps_merge::weight.
Referenced by ShowerShapeCalc().
|
private |
Definition at line 130 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 127 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 128 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 126 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 132 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 131 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 122 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 118 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 120 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 119 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 121 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 123 of file HGCalShowerShapeHelper.h.
Referenced by ShowerShapeCalc().
|
private |
Definition at line 115 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 116 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 114 of file HGCalShowerShapeHelper.h.
|
private |
Definition at line 124 of file HGCalShowerShapeHelper.h.