#include <RecHitTools.h>
Public Member Functions | |
unsigned 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 |
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 |
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 |
std::float_t | getSiThickness (const DetId &) const |
unsigned int | getWafer (const DetId &) const |
bool | isHalfCell (const DetId &) const |
unsigned int | lastLayerEE () const |
unsigned int | lastLayerFH () const |
unsigned int | maxNumberOfWafersPerLayer () const |
RecHitTools () | |
int | zside (const DetId &id) const |
~RecHitTools () | |
Private Attributes | |
unsigned int | bhOffset_ |
unsigned int | fhOffset_ |
const CaloGeometry * | geom_ |
unsigned int | maxNumberOfWafersPerLayer_ |
Definition at line 18 of file RecHitTools.h.
|
inline |
Definition at line 20 of file RecHitTools.h.
|
inline |
Definition at line 21 of file RecHitTools.h.
References getEta(), position, and HcalDigiParam_cfi::zside.
unsigned int RecHitTools::getCell | ( | const DetId & | id | ) | const |
Definition at line 197 of file RecHitTools.cc.
References HGCalDetId::cell(), DetId::Forward, and hpstanc_transforms::max.
float RecHitTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 220 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(), and getPt().
float RecHitTools::getEta | ( | const DetId & | id, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 225 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), and position.
void RecHitTools::getEvent | ( | const edm::Event & | ev | ) |
Definition at line 58 of file RecHitTools.cc.
Referenced by hgcal::ClusterTools::getEvent().
void RecHitTools::getEventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 61 of file RecHitTools.cc.
References bhOffset_, fhOffset_, DetId::Forward, relativeConstraints::geom, geom_, edm::EventSetup::get(), CaloGeometry::getSubdetectorGeometry(), HGCEE, HGCHEF, LayerTriplets::layers(), hpstanc_transforms::max, maxNumberOfWafersPerLayer_, and edm::ESHandle< T >::product().
Referenced by HGCalHitCalibration::analyze(), HGCalShowerSeparation::analyze(), hgcal::ClusterTools::getEventSetup(), HGCal3DClustering::getEventSetup(), HGCalImagingAlgo::getEventSetup(), and RealisticSimClusterMapper::update().
|
inline |
unsigned int RecHitTools::getLayer | ( | ForwardSubdetector | type | ) | const |
Definition at line 131 of file RecHitTools.cc.
References DetId::Forward, ForwardEmpty, geom_, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalEndcap, HGCEE, HGCHEB, HGCHEF, and LayerTriplets::layers().
Referenced by RealisticSimClusterMapper::buildClusters(), and getLayerWithOffset().
unsigned int RecHitTools::getLayer | ( | const DetId & | id | ) | const |
Definition at line 164 of file RecHitTools.cc.
References HcalDetId::depth(), DetId::Forward, DetId::Hcal, HcalEndcap, HGCalDetId::layer(), and hpstanc_transforms::max.
unsigned int RecHitTools::getLayerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 176 of file RecHitTools.cc.
References bhOffset_, fhOffset_, DetId::Forward, getLayer(), DetId::Hcal, HcalEndcap, and HGCHEF.
Referenced by HGCalHitCalibration::analyze(), HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), HGCalImagingAlgo::computeThreshold(), HGCalHitCalibration::fillWithRecHits(), hgcal::ClusterTools::getLayer(), HGCal3DClustering::organizeByLayer(), and HGCalImagingAlgo::populate().
float RecHitTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 231 of file RecHitTools.cc.
References PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
float RecHitTools::getPhi | ( | const DetId & | id | ) | const |
Definition at line 236 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 77 of file RecHitTools.cc.
References relativeConstraints::geom, geom_, CaloSubdetectorGeometry::getGeometry(), HGCalGeometry::getPosition(), CaloCellGeometry::getPosition(), CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, and position.
Referenced by HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), getEta(), getPhi(), getPt(), hgcal::ClusterTools::getWidths(), HGCalImagingAlgo::Hexel::Hexel(), and HGCalImagingAlgo::populate().
float RecHitTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 242 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 248 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 117 of file RecHitTools.cc.
References HGCalDDDConstants::cellSizeHex(), DetId::Forward, geom_, CaloGeometry::getSubdetectorGeometry(), hpstanc_transforms::max, findQualityFiles::size, and HGCalDetId::waferType().
std::float_t RecHitTools::getSiThickness | ( | const DetId & | id | ) | const |
Definition at line 103 of file RecHitTools.cc.
References DetId::Forward, geom_, CaloGeometry::getSubdetectorGeometry(), HGCalDetId::wafer(), and HGCalDDDConstants::waferTypeL().
Referenced by HGCalHitCalibration::analyze(), HGCalImagingAlgo::computeThreshold(), HGCalHitCalibration::fillWithRecHits(), and HGCalImagingAlgo::populate().
unsigned int RecHitTools::getWafer | ( | const DetId & | id | ) | const |
Definition at line 186 of file RecHitTools.cc.
References DetId::Forward, hpstanc_transforms::max, and HGCalDetId::wafer().
Referenced by HGCalImagingAlgo::computeThreshold(), and HGCalImagingAlgo::populate().
bool RecHitTools::isHalfCell | ( | const DetId & | id | ) | const |
Definition at line 208 of file RecHitTools.cc.
References HGCalDetId::cell(), DetId::Forward, geom_, CaloGeometry::getSubdetectorGeometry(), HGCalDDDConstants::isHalfCell(), HGCalDetId::waferType(), and HGCalDDDConstants::waferTypeT().
Referenced by HGCalImagingAlgo::populate().
|
inline |
Definition at line 52 of file RecHitTools.h.
Referenced by RealisticSimClusterMapper::buildClusters().
|
inline |
Definition at line 53 of file RecHitTools.h.
Referenced by RealisticSimClusterMapper::buildClusters().
|
inline |
Definition at line 54 of file RecHitTools.h.
int RecHitTools::zside | ( | const DetId & | id | ) | const |
Definition at line 91 of file RecHitTools.cc.
References DetId::Forward, DetId::Hcal, HcalEndcap, HGCalDetId::zside(), and HcalDetId::zside().
Referenced by HGCalImagingAlgo::computeThreshold(), and HGCalImagingAlgo::populate().
|
private |
Definition at line 57 of file RecHitTools.h.
Referenced by getEventSetup(), and getLayerWithOffset().
|
private |
Definition at line 57 of file RecHitTools.h.
Referenced by getEventSetup(), and getLayerWithOffset().
|
private |
Definition at line 56 of file RecHitTools.h.
Referenced by getEventSetup(), getLayer(), getPosition(), getRadiusToSide(), getSiThickness(), and isHalfCell().
|
private |
Definition at line 57 of file RecHitTools.h.
Referenced by getEventSetup().