#include <RecHitTools.h>
Public Member Functions | |
std::pair< int, int > | getCell (const DetId &) const |
float | getEta (const GlobalPoint &position, const float &vertex_z=0.) const |
float | getEta (const DetId &id, const float &vertex_z=0.) const |
void | getEvent (const edm::Event &) |
void | getEventSetup (const edm::EventSetup &) |
const CaloGeometry * | getGeometry () const |
int | getGeometryType () const |
unsigned int | getLayer (DetId::Detector type) const |
unsigned int | getLayer (ForwardSubdetector type) const |
unsigned int | getLayer (const DetId &) const |
unsigned int | getLayerWithOffset (const DetId &) const |
float | getPhi (const GlobalPoint &position) const |
float | getPhi (const DetId &id) const |
GlobalPoint | getPosition (const DetId &id) const |
GlobalPoint | getPositionLayer (int layer) const |
float | getPt (const GlobalPoint &position, const float &hitEnergy, const float &vertex_z=0.) const |
float | getPt (const DetId &id, const float &hitEnergy, const float &vertex_z=0.) const |
std::float_t | getRadiusToSide (const DetId &) const |
int | getSiThickIndex (const DetId &) const |
std::float_t | getSiThickness (const DetId &) const |
const CaloSubdetectorGeometry * | getSubdetectorGeometry (const DetId &id) const |
std::pair< int, int > | getWafer (const DetId &) const |
bool | isHalfCell (const DetId &) const |
unsigned int | lastLayerEE () const |
unsigned int | lastLayerFH () const |
bool | maskCell (const DetId &id, int corners=3) const |
unsigned int | maxNumberOfWafersPerLayer () const |
RecHitTools () | |
int | zside (const DetId &id) const |
~RecHitTools () | |
Private Attributes | |
unsigned int | bhOffset_ |
unsigned int | fhLastLayer_ |
unsigned int | fhOffset_ |
const CaloGeometry * | geom_ |
int | geometryType_ |
unsigned int | maxNumberOfWafersPerLayer_ |
Definition at line 20 of file RecHitTools.h.
|
inline |
Definition at line 22 of file RecHitTools.h.
|
inline |
std::pair< int, int > RecHitTools::getCell | ( | const DetId & | id | ) | const |
Definition at line 311 of file RecHitTools.cc.
References HGCalDetId::cell(), HGCSiliconDetId::cellU(), HGCSiliconDetId::cellV(), TauDecayModes::dec, DetId::Forward, DetId::HGCalEE, DetId::HGCalHSi, and SiStripPI::max.
float RecHitTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 340 of file RecHitTools.cc.
References PV3DBase< T, PVType, FrameType >::eta(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by getEta(), getPt(), and HGCalIsoCalculator::setRecHits().
float RecHitTools::getEta | ( | const DetId & | id, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 345 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), and position.
void RecHitTools::getEvent | ( | const edm::Event & | ev | ) |
Definition at line 70 of file RecHitTools.cc.
Referenced by hgcal::ClusterTools::getEvent().
void RecHitTools::getEventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 73 of file RecHitTools.cc.
References bhOffset_, fhLastLayer_, fhOffset_, DetId::Forward, ForwardEmpty, relativeConstraints::geom, geom_, geometryType_, edm::EventSetup::get(), CaloGeometry::getSubdetectorGeometry(), DetId::HGCalEE, DetId::HGCalHSi, HGCEE, HGCHEF, LayerTriplets::layers(), SiStripPI::max, maxNumberOfWafersPerLayer_, and edm::ESHandle< T >::product().
Referenced by HGCalHitCalibration::analyze(), HGCalShowerSeparation::analyze(), HGCalEgammaIDHelper::eventInit(), hgcal::ClusterTools::getEventSetup(), HGCal3DClustering::getEventSetup(), PFHGCalRecHitCreator< DET, Layer, det, subdet >::importRecHits(), and RealisticSimClusterMapper::update().
|
inline |
Definition at line 57 of file RecHitTools.h.
|
inline |
Definition at line 61 of file RecHitTools.h.
Referenced by RealisticSimClusterMapper::buildClusters().
unsigned int RecHitTools::getLayer | ( | DetId::Detector | type | ) | const |
Definition at line 238 of file RecHitTools.cc.
References DetId::Forward, ForwardEmpty, geom_, CaloGeometry::getSubdetectorGeometry(), DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, and LayerTriplets::layers().
Referenced by RealisticSimClusterMapper::buildClusters(), and getLayerWithOffset().
unsigned int RecHitTools::getLayer | ( | ForwardSubdetector | type | ) | const |
Definition at line 205 of file RecHitTools.cc.
References DetId::Forward, ForwardEmpty, geom_, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalEndcap, HGCEE, HGCHEB, HGCHEF, and LayerTriplets::layers().
unsigned int RecHitTools::getLayer | ( | const DetId & | id | ) | const |
Definition at line 269 of file RecHitTools.cc.
References HcalDetId::depth(), DetId::Forward, DetId::Hcal, HcalEndcap, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCalDetId::layer(), HGCScintillatorDetId::layer(), HGCSiliconDetId::layer(), and SiStripPI::max.
unsigned int RecHitTools::getLayerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 283 of file RecHitTools.cc.
References bhOffset_, fhOffset_, DetId::Forward, getLayer(), DetId::Hcal, HcalEndcap, DetId::HGCalHSc, DetId::HGCalHSi, and HGCHEF.
Referenced by HGCalHitCalibration::analyze(), HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), HGCalHitCalibration::fillWithRecHits(), hgcal::ClusterTools::getLayer(), HGCal3DClustering::organizeByLayer(), HGCalIsoCalculator::produceHGCalIso(), and hgcal::EGammaPCAHelper::storeRecHits().
float RecHitTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 351 of file RecHitTools.cc.
References PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by HGCalIsoCalculator::setRecHits().
float RecHitTools::getPhi | ( | const DetId & | id | ) | const |
Definition at line 356 of file RecHitTools.cc.
References getPosition(), position, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
GlobalPoint RecHitTools::getPosition | ( | const DetId & | id | ) | const |
Definition at line 112 of file RecHitTools.cc.
References relativeConstraints::geom, CaloGeometry::getGeometry(), HGCalGeometry::getPosition(), getSubdetectorGeometry(), DetId::Hcal, and position.
Referenced by HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), getEta(), getPhi(), getPt(), hgcal::ClusterTools::getWidths(), HGCalCLUEAlgo::Hexel::Hexel(), HGCalImagingAlgo::Hexel::Hexel(), HGCalIsoCalculator::setRecHits(), and hgcal::EGammaPCAHelper::storeRecHits().
GlobalPoint RecHitTools::getPositionLayer | ( | int | layer | ) | const |
Definition at line 124 of file RecHitTools.cc.
References funct::abs(), fhOffset_, geom_, geometryType_, and HGCalDDDConstants::waferZ().
Referenced by hgcal::EGammaPCAHelper::findZFirstLayer().
float RecHitTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 362 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), and EnergyCorrector::pt.
float RecHitTools::getPt | ( | const DetId & | id, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 368 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), position, and EnergyCorrector::pt.
std::float_t RecHitTools::getRadiusToSide | ( | const DetId & | id | ) | const |
Definition at line 186 of file RecHitTools.cc.
References HGCalDDDConstants::cellSizeHex(), TauDecayModes::dec, DetId::Forward, getSubdetectorGeometry(), DetId::HGCalEE, DetId::HGCalHSi, SiStripPI::max, findQualityFiles::size, HGCSiliconDetId::type(), and HGCalDetId::waferType().
int RecHitTools::getSiThickIndex | ( | const DetId & | id | ) | const |
Definition at line 168 of file RecHitTools.cc.
References DetId::Forward, getSiThickness(), DetId::HGCalEE, DetId::HGCalHSi, and HGCSiliconDetId::type().
Referenced by hgcal::EGammaPCAHelper::storeRecHits().
std::float_t RecHitTools::getSiThickness | ( | const DetId & | id | ) | const |
Definition at line 145 of file RecHitTools.cc.
References HGCalDDDConstants::cellThickness(), TauDecayModes::dec, DetId::Forward, getSubdetectorGeometry(), DetId::HGCalEE, DetId::HGCalHSi, HGCalDetId::layer(), HGCSiliconDetId::layer(), LogDebug, HGCalDetId::wafer(), HGCSiliconDetId::waferU(), and HGCSiliconDetId::waferV().
Referenced by HGCalHitCalibration::analyze(), HGCalHitCalibration::fillWithRecHits(), and getSiThickIndex().
const CaloSubdetectorGeometry * RecHitTools::getSubdetectorGeometry | ( | const DetId & | id | ) | const |
Definition at line 104 of file RecHitTools.cc.
References ForwardEmpty, relativeConstraints::geom, geom_, CaloGeometry::getSubdetectorGeometry(), DetId::HGCalEE, DetId::HGCalHSc, and DetId::HGCalHSi.
Referenced by getPosition(), getRadiusToSide(), getSiThickness(), isHalfCell(), and maskCell().
std::pair< int, int > RecHitTools::getWafer | ( | const DetId & | id | ) | const |
Definition at line 295 of file RecHitTools.cc.
References TauDecayModes::dec, DetId::Forward, DetId::HGCalEE, DetId::HGCalHSi, SiStripPI::max, HGCalDetId::wafer(), HGCSiliconDetId::waferU(), and HGCSiliconDetId::waferV().
bool RecHitTools::isHalfCell | ( | const DetId & | id | ) | const |
Definition at line 327 of file RecHitTools.cc.
References HGCalDetId::cell(), DetId::Forward, getSubdetectorGeometry(), HGCalDDDConstants::isHalfCell(), HGCalDetId::waferType(), and HGCalDDDConstants::waferTypeT().
|
inline |
Definition at line 58 of file RecHitTools.h.
Referenced by RealisticSimClusterMapper::buildClusters(), and hgcal::EGammaPCAHelper::computePCA().
|
inline |
Definition at line 59 of file RecHitTools.h.
Referenced by RealisticSimClusterMapper::buildClusters().
bool RecHitTools::maskCell | ( | const DetId & | id, |
int | corners = 3 |
||
) | const |
Definition at line 375 of file RecHitTools.cc.
References HGCalTopology::dddConstants(), getSubdetectorGeometry(), DetId::Hcal, HGCalDDDConstants::maskCell(), and HGCalGeometry::topology().
|
inline |
Definition at line 60 of file RecHitTools.h.
int RecHitTools::zside | ( | const DetId & | id | ) | const |
Definition at line 131 of file RecHitTools.cc.
References DetId::Forward, DetId::Hcal, HcalEndcap, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCScintillatorDetId::zside(), HGCalDetId::zside(), HGCSiliconDetId::zside(), and HcalDetId::zside().
|
private |
Definition at line 65 of file RecHitTools.h.
Referenced by getEventSetup(), and getLayerWithOffset().
|
private |
Definition at line 65 of file RecHitTools.h.
Referenced by getEventSetup().
|
private |
Definition at line 65 of file RecHitTools.h.
Referenced by getEventSetup(), getLayerWithOffset(), and getPositionLayer().
|
private |
Definition at line 64 of file RecHitTools.h.
Referenced by getEventSetup(), getLayer(), getPositionLayer(), and getSubdetectorGeometry().
|
private |
Definition at line 66 of file RecHitTools.h.
Referenced by getEventSetup(), and getPositionLayer().
|
private |
Definition at line 65 of file RecHitTools.h.
Referenced by getEventSetup().