#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 &) |
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 () | |
~RecHitTools () | |
Private Attributes | |
const CaloGeometry * | geom_ |
Definition at line 17 of file RecHitTools.h.
|
inline |
Definition at line 19 of file RecHitTools.h.
|
inline |
unsigned int RecHitTools::getCell | ( | const DetId & | id | ) | const |
Definition at line 147 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 170 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 175 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(), and HGCalImagingAlgo::getEventSetup().
unsigned int RecHitTools::getLayer | ( | const DetId & | id | ) | const |
Definition at line 114 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 126 of file RecHitTools.cc.
References DetId::Forward, getLayer(), DetId::Hcal, HcalEndcap, and HGCHEF.
Referenced by HGCalHitCalibration::analyze(), and HGCalImagingAlgo::makeClusters().
float RecHitTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 181 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 186 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(), HGCalImagingAlgo::Hexel::Hexel(), and HGCalImagingAlgo::makeClusters().
float RecHitTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 192 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 198 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 100 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 86 of file RecHitTools.cc.
References DetId::Forward, geom_, CaloGeometry::getSubdetectorGeometry(), HGCalDetId::wafer(), and HGCalDDDConstants::waferTypeL().
Referenced by HGCalHitCalibration::analyze().
unsigned int RecHitTools::getWafer | ( | const DetId & | id | ) | const |
Definition at line 136 of file RecHitTools.cc.
References DetId::Forward, hpstanc_transforms::max, and HGCalDetId::wafer().
bool RecHitTools::isHalfCell | ( | const DetId & | id | ) | const |
Definition at line 158 of file RecHitTools.cc.
References HGCalDetId::cell(), DetId::Forward, geom_, CaloGeometry::getSubdetectorGeometry(), HGCalDDDConstants::isHalfCell(), HGCalDetId::waferType(), and HGCalDDDConstants::waferTypeT().
Referenced by HGCalImagingAlgo::makeClusters().
|
private |
Definition at line 48 of file RecHitTools.h.
Referenced by getEventSetup(), getPosition(), getRadiusToSide(), getSiThickness(), and isHalfCell().