#include <HGCalShowerShapeHelper.h>
Classes | |
struct | ShowerWidths |
Public Member Functions | |
const double | getCellSize (DetId detId) |
const ShowerWidths | getPCAWidths (double cylinderR, bool useFractions=false) |
const double | getRvar (double cylinderR, double energyNorm, bool useFractions=true, bool useCellSize=true) |
HGCalShowerShapeHelper (edm::ConsumesCollector &&sumes) | |
void | initPerEvent (const edm::EventSetup &iSetup, const std::vector< reco::PFRecHit > &recHits) |
void | initPerObject (const std::vector< std::pair< DetId, float > > &hitsAndFracs, double minHitE=0, double minHitET=0, int minLayer=1, int maxLayer=-1, DetId::Detector subDet=DetId::HGCalEE) |
void | setLayerWiseInfo () |
Static Public Attributes | |
static const double | kHDWaferCellSize_ = 0.465 |
static const double | kLDWaferCellSize_ = 0.698 |
Private Member Functions | |
void | setFilteredHitsAndFractions (const std::vector< std::pair< DetId, float > > &hitsAndFracs) |
void | setPFRecHitPtrMap (const std::vector< reco::PFRecHit > &recHits) |
Private Attributes | |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | caloGeometryToken_ |
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::unordered_map< uint32_t, const reco::PFRecHit * > | pfRecHitPtrMap_ |
hgcal::RecHitTools | recHitTools_ |
DetId::Detector | subDet_ |
Definition at line 46 of file HGCalShowerShapeHelper.h.
HGCalShowerShapeHelper::HGCalShowerShapeHelper | ( | edm::ConsumesCollector && | sumes | ) |
Definition at line 6 of file HGCalShowerShapeHelper.cc.
const double HGCalShowerShapeHelper::getCellSize | ( | DetId | detId | ) |
Definition at line 133 of file HGCalShowerShapeHelper.cc.
References hgcal::RecHitTools::getSiThickIndex(), kHDWaferCellSize_, kLDWaferCellSize_, and recHitTools_.
Referenced by getRvar().
const HGCalShowerShapeHelper::ShowerWidths HGCalShowerShapeHelper::getPCAWidths | ( | double | cylinderR, |
bool | useFractions = false |
||
) |
Definition at line 188 of file HGCalShowerShapeHelper.cc.
References centroid_, BeamSpotPI::dydz, hgcal::RecHitTools::getLayer(), hgcal::RecHitTools::getPosition(), hitEnergies_, hitEnergiesWithFracs_, hitsAndFracs_, layerCentroids_, diffTwoXMLs::r2, 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 EgammaHLTHGCalIDVarProducer::produce().
const double HGCalShowerShapeHelper::getRvar | ( | double | cylinderR, |
double | energyNorm, | ||
bool | useFractions = true , |
||
bool | useCellSize = true |
||
) |
Definition at line 137 of file HGCalShowerShapeHelper.cc.
References getCellSize(), hgcal::RecHitTools::getLayer(), hgcal::RecHitTools::getPosition(), hitEnergies_, hitEnergiesWithFracs_, hitsAndFracs_, layerCentroids_, diffTwoXMLs::r2, recHitTools_, and mathSSE::sqrt().
Referenced by EgammaHLTHGCalIDVarProducer::produce().
void HGCalShowerShapeHelper::initPerEvent | ( | const edm::EventSetup & | iSetup, |
const std::vector< reco::PFRecHit > & | recHits | ||
) |
Definition at line 9 of file HGCalShowerShapeHelper.cc.
References caloGeometryToken_, edm::EventSetup::getData(), recHitTools_, hgcal::RecHitTools::setGeometry(), and setPFRecHitPtrMap().
Referenced by EgammaHLTHGCalIDVarProducer::produce().
void HGCalShowerShapeHelper::initPerObject | ( | const std::vector< std::pair< DetId, float > > & | hitsAndFracs, |
double | minHitE = 0 , |
||
double | minHitET = 0 , |
||
int | minLayer = 1 , |
||
int | maxLayer = -1 , |
||
DetId::Detector | subDet = DetId::HGCalEE |
||
) |
Definition at line 14 of file HGCalShowerShapeHelper.cc.
References cms::cuda::assert(), hgcal::RecHitTools::lastLayerEE(), maxLayer_, minHitE_, minHitET2_, minHitET_, HLT_FULL_cff::minLayer, minLayer_, nLayer_, recHitTools_, setFilteredHitsAndFractions(), setLayerWiseInfo(), and subDet_.
Referenced by EgammaHLTHGCalIDVarProducer::produce().
|
private |
Definition at line 46 of file HGCalShowerShapeHelper.cc.
References DetId::det(), hgcal::RecHitTools::getLayer(), hitEnergies_, hitEnergiesWithFracs_, hitsAndFracs_, minHitE_, minHitET2_, nLayer_, pfRecHitPtrMap_, DetId::rawId(), rpcPointValidation_cfi::recHit, recHitTools_, and subDet_.
Referenced by initPerObject().
void HGCalShowerShapeHelper::setLayerWiseInfo | ( | ) |
Definition at line 86 of file HGCalShowerShapeHelper.cc.
References centroid_, hgcal::RecHitTools::getLayer(), hgcal::RecHitTools::getPosition(), hitEnergies_, hitsAndFracs_, layerCentroids_, layerEnergies_, nLayer_, recHitTools_, and mps_merge::weight.
Referenced by initPerObject().
|
private |
Definition at line 38 of file HGCalShowerShapeHelper.cc.
References pfRecHitPtrMap_, rpcPointValidation_cfi::recHit, and FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by initPerEvent().
|
private |
Definition at line 118 of file HGCalShowerShapeHelper.h.
Referenced by initPerEvent().
|
private |
Definition at line 126 of file HGCalShowerShapeHelper.h.
Referenced by getPCAWidths(), and setLayerWiseInfo().
|
private |
Definition at line 123 of file HGCalShowerShapeHelper.h.
Referenced by getPCAWidths(), getRvar(), setFilteredHitsAndFractions(), and setLayerWiseInfo().
|
private |
Definition at line 124 of file HGCalShowerShapeHelper.h.
Referenced by getPCAWidths(), getRvar(), and setFilteredHitsAndFractions().
|
private |
Definition at line 122 of file HGCalShowerShapeHelper.h.
Referenced by getPCAWidths(), getRvar(), setFilteredHitsAndFractions(), and setLayerWiseInfo().
|
static |
Definition at line 58 of file HGCalShowerShapeHelper.h.
Referenced by getCellSize().
|
static |
Definition at line 57 of file HGCalShowerShapeHelper.h.
Referenced by getCellSize().
|
private |
Definition at line 128 of file HGCalShowerShapeHelper.h.
Referenced by getPCAWidths(), getRvar(), and setLayerWiseInfo().
|
private |
Definition at line 127 of file HGCalShowerShapeHelper.h.
Referenced by setLayerWiseInfo().
|
private |
Definition at line 114 of file HGCalShowerShapeHelper.h.
Referenced by initPerObject().
|
private |
Definition at line 110 of file HGCalShowerShapeHelper.h.
Referenced by initPerObject(), and setFilteredHitsAndFractions().
|
private |
Definition at line 112 of file HGCalShowerShapeHelper.h.
Referenced by initPerObject(), and setFilteredHitsAndFractions().
|
private |
Definition at line 111 of file HGCalShowerShapeHelper.h.
Referenced by initPerObject().
|
private |
Definition at line 113 of file HGCalShowerShapeHelper.h.
Referenced by initPerObject().
|
private |
Definition at line 115 of file HGCalShowerShapeHelper.h.
Referenced by initPerObject(), setFilteredHitsAndFractions(), and setLayerWiseInfo().
|
private |
Definition at line 121 of file HGCalShowerShapeHelper.h.
Referenced by setFilteredHitsAndFractions(), and setPFRecHitPtrMap().
|
private |
Definition at line 119 of file HGCalShowerShapeHelper.h.
Referenced by getCellSize(), getPCAWidths(), getRvar(), initPerEvent(), initPerObject(), setFilteredHitsAndFractions(), and setLayerWiseInfo().
|
private |
Definition at line 116 of file HGCalShowerShapeHelper.h.
Referenced by initPerObject(), and setFilteredHitsAndFractions().