#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 (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 |
RecHitTools () | |
int | zside (const DetId &id) const |
~RecHitTools () | |
Private Attributes | |
const CaloGeometry * | geom_ |
Definition at line 17 of file RecHitTools.h.
|
inline |
Definition at line 19 of file RecHitTools.h.
|
inline |
Definition at line 20 of file RecHitTools.h.
References getEta(), position, and HcalDigiParam_cfi::zside.
unsigned int RecHitTools::getCell | ( | const DetId & | id | ) | const |
Definition at line 160 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 183 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 188 of file RecHitTools.cc.
References stringResolutionProvider_cfi::eta, getEta(), getPosition(), and position.
void RecHitTools::getEvent | ( | const edm::Event & | ev | ) |
Definition at line 63 of file RecHitTools.cc.
Referenced by hgcal::ClusterTools::getEvent().
void RecHitTools::getEventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 66 of file RecHitTools.cc.
References relativeConstraints::geom, geom_, edm::EventSetup::get(), and edm::ESHandle< T >::product().
Referenced by HGCalHitCalibration::analyze(), hgcal::ClusterTools::getEventSetup(), HGCal3DClustering::getEventSetup(), and HGCalImagingAlgo::getEventSetup().
|
inline |
unsigned int RecHitTools::getLayer | ( | const DetId & | id | ) | const |
Definition at line 127 of file RecHitTools.cc.
References HcalDetId::depth(), DetId::Forward, DetId::Hcal, HcalEndcap, HGCalDetId::layer(), and hpstanc_transforms::max.
Referenced by getLayerWithOffset().
unsigned int RecHitTools::getLayerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 139 of file RecHitTools.cc.
References DetId::Forward, getLayer(), DetId::Hcal, HcalEndcap, and HGCHEF.
Referenced by HGCalHitCalibration::analyze(), HGCalImagingAlgo::computeThreshold(), hgcal::ClusterTools::getLayer(), HGCal3DClustering::organizeByLayer(), and HGCalImagingAlgo::populate().
float RecHitTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 194 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 199 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 73 of file RecHitTools.cc.
References relativeConstraints::geom, geom_, CaloSubdetectorGeometry::getGeometry(), HGCalGeometry::getPosition(), CaloCellGeometry::getPosition(), CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, and position.
Referenced by 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 205 of file RecHitTools.cc.
References stringResolutionProvider_cfi::eta, getEta(), and EnergyCorrector::pt.
float RecHitTools::getPt | ( | const DetId & | id, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 211 of file RecHitTools.cc.
References stringResolutionProvider_cfi::eta, getEta(), getPosition(), position, and EnergyCorrector::pt.
std::float_t RecHitTools::getRadiusToSide | ( | const DetId & | id | ) | const |
Definition at line 113 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 99 of file RecHitTools.cc.
References DetId::Forward, geom_, CaloGeometry::getSubdetectorGeometry(), HGCalDetId::wafer(), and HGCalDDDConstants::waferTypeL().
Referenced by HGCalHitCalibration::analyze(), HGCalImagingAlgo::computeThreshold(), and HGCalImagingAlgo::populate().
unsigned int RecHitTools::getWafer | ( | const DetId & | id | ) | const |
Definition at line 149 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 171 of file RecHitTools.cc.
References HGCalDetId::cell(), DetId::Forward, geom_, CaloGeometry::getSubdetectorGeometry(), HGCalDDDConstants::isHalfCell(), HGCalDetId::waferType(), and HGCalDDDConstants::waferTypeT().
Referenced by HGCalImagingAlgo::populate().
int RecHitTools::zside | ( | const DetId & | id | ) | const |
Definition at line 87 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 49 of file RecHitTools.h.
Referenced by getEventSetup(), getPosition(), getRadiusToSide(), getSiThickness(), and isHalfCell().