#include <RecHitTools.h>
Public Member Functions | |
unsigned int | firstLayerBH () const |
std::pair< int, int > | getCell (const DetId &) const |
float | getEta (const DetId &id, const float &vertex_z=0.) const |
float | getEta (const GlobalPoint &position, const float &vertex_z=0.) const |
const CaloGeometry * | getGeometry () const |
int | getGeometryType () const |
unsigned int | getLayer (const DetId &) const |
unsigned int | getLayer (DetId::Detector type, bool nose=false) const |
unsigned int | getLayer (ForwardSubdetector type) const |
unsigned int | getLayerWithOffset (const DetId &) const |
float | getPhi (const DetId &id) const |
float | getPhi (const GlobalPoint &position) const |
GlobalPoint | getPosition (const DetId &id) const |
GlobalPoint | getPositionLayer (int layer, bool nose=false) const |
float | getPt (const DetId &id, const float &hitEnergy, const float &vertex_z=0.) const |
float | getPt (const GlobalPoint &position, const float &hitEnergy, const float &vertex_z=0.) const |
std::float_t | getRadiusToSide (const DetId &) const |
int | getScintMaxIphi () 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 |
bool | isOnlySilicon (const unsigned int layer) const |
bool | isSilicon (const DetId &) const |
unsigned int | lastLayer (bool nose=false) const |
unsigned int | lastLayerBH () const |
unsigned int | lastLayerEE (bool nose=false) const |
unsigned int | lastLayerFH () const |
bool | maskCell (const DetId &id, int corners=3) const |
unsigned int | maxNumberOfWafersPerLayer (bool nose=false) const |
RecHitTools () | |
void | setGeometry (CaloGeometry const &) |
int | zside (const DetId &id) const |
~RecHitTools () | |
Private Attributes | |
unsigned int | bhLastLayer_ |
int | bhMaxIphi_ |
unsigned int | bhOffset_ |
unsigned int | fhLastLayer_ |
unsigned int | fhOffset_ |
const CaloGeometry * | geom_ |
int | geometryType_ |
unsigned int | maxNumberOfWafersNose_ |
unsigned int | maxNumberOfWafersPerLayer_ |
unsigned int | noseLastLayer_ |
Definition at line 23 of file RecHitTools.h.
|
inline |
Definition at line 25 of file RecHitTools.h.
|
inline |
Definition at line 26 of file RecHitTools.h.
|
inline |
Definition at line 66 of file RecHitTools.h.
References bhOffset_.
Referenced by HGCalClusteringAlgoBase::getEventSetup(), HGCal3DClustering::makeClusters(), and HGCalDepthPreClusterer::makePreClusters().
std::pair< int, int > RecHitTools::getCell | ( | const DetId & | id | ) | const |
Definition at line 384 of file RecHitTools.cc.
References HGCalDetId::cell(), HFNoseDetId::cellU(), HGCSiliconDetId::cellU(), HFNoseDetId::cellV(), HGCSiliconDetId::cellV(), TauDecayModes::dec, DetId::Forward, HFNose, DetId::HGCalEE, DetId::HGCalHSi, and SiStripPI::max.
float RecHitTools::getEta | ( | const DetId & | id, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 431 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), and position.
float RecHitTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 426 of file RecHitTools.cc.
References PV3DBase< T, PVType, FrameType >::eta(), and position.
Referenced by getEta(), getPt(), and HGCalIsoCalculator::setRecHits().
|
inline |
|
inline |
Definition at line 73 of file RecHitTools.h.
References geometryType_.
Referenced by RealisticSimClusterMapper::buildClusters().
unsigned int RecHitTools::getLayer | ( | const DetId & | id | ) | const |
Definition at line 336 of file RecHitTools.cc.
References HcalDetId::depth(), DetId::Forward, DetId::Hcal, HcalEndcap, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCalDetId::layer(), HGCScintillatorDetId::layer(), HFNoseDetId::layer(), HGCSiliconDetId::layer(), and SiStripPI::max.
unsigned int RecHitTools::getLayer | ( | DetId::Detector | type, |
bool | nose = false |
||
) | const |
Definition at line 294 of file RecHitTools.cc.
References DetId::Forward, ForwardEmpty, geom_, CaloGeometry::getSubdetectorGeometry(), HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, and hgcalTopologyTester_cfi::layers.
Referenced by RealisticSimClusterMapper::buildClusters(), getLayerWithOffset(), HGCalShowerShapeHelper::getPCAWidths(), HGCalShowerShapeHelper::getRvar(), HGCalShowerShapeHelper::setFilteredHitsAndFractions(), and HGCalShowerShapeHelper::setLayerWiseInfo().
unsigned int RecHitTools::getLayer | ( | ForwardSubdetector | type | ) | const |
Definition at line 244 of file RecHitTools.cc.
References DetId::Forward, ForwardEmpty, geom_, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalEndcap, HFNose, HGCEE, HGCHEB, HGCHEF, and hgcalTopologyTester_cfi::layers.
unsigned int RecHitTools::getLayerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 352 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(), TrackstersMergeProducer::energyRegressionAndID(), HGCalHitCalibration::fillWithRecHits(), ticl::ClusterFilterByAlgoAndSizeAndLayerRange::filter(), hgcal::ClusterTools::getLayer(), HGCalRecHitSimpleAlgo::makeRecHit(), HGCal3DClustering::organizeByLayer(), TICLLayerTileProducer::produce(), HGCalIsoCalculator::produceHGCalIso(), and hgcal::EGammaPCAHelper::storeRecHits().
float RecHitTools::getPhi | ( | const DetId & | id | ) | const |
float RecHitTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 437 of file RecHitTools.cc.
References position.
Referenced by HGCalIsoCalculator::setRecHits().
GlobalPoint RecHitTools::getPosition | ( | const DetId & | id | ) | const |
Definition at line 126 of file RecHitTools.cc.
References relativeConstraints::geom, HGCalGeometry::getPosition(), getSubdetectorGeometry(), DetId::Hcal, and position.
Referenced by HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), getEta(), HGCalShowerShapeHelper::getPCAWidths(), getPhi(), getPt(), HGCalShowerShapeHelper::getRvar(), hgcal::ClusterTools::getWidths(), HGCalShowerShapeHelper::setLayerWiseInfo(), HGCalIsoCalculator::setRecHits(), and hgcal::EGammaPCAHelper::storeRecHits().
GlobalPoint RecHitTools::getPositionLayer | ( | int | layer, |
bool | nose = false |
||
) | const |
Definition at line 138 of file RecHitTools.cc.
References funct::abs(), fhOffset_, DetId::Forward, geom_, geometryType_, CaloGeometry::getSubdetectorGeometry(), HFNose, and HGCalDDDConstants::waferZ().
Referenced by PositionAtECalEntranceComputer::beginEvent(), hgcal::EGammaPCAHelper::findZFirstLayer(), and TrackstersMergeProducer::produce().
float RecHitTools::getPt | ( | const DetId & | id, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 454 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), position, and DiDispStaMuonMonitor_cfi::pt.
float RecHitTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 448 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), position, and DiDispStaMuonMonitor_cfi::pt.
std::float_t RecHitTools::getRadiusToSide | ( | const DetId & | id | ) | const |
Definition at line 222 of file RecHitTools.cc.
References TauDecayModes::dec, DetId::Forward, relativeConstraints::geom, getSubdetectorGeometry(), HFNose, DetId::HGCalEE, DetId::HGCalHSi, SiStripPI::max, findQualityFiles::size, HFNoseDetId::type(), HGCSiliconDetId::type(), and HGCalDetId::waferType().
|
inline |
Definition at line 72 of file RecHitTools.h.
References bhMaxIphi_.
Referenced by HGCalClusteringAlgoBase::getEventSetup().
int RecHitTools::getSiThickIndex | ( | const DetId & | id | ) | const |
Definition at line 202 of file RecHitTools.cc.
References cms::cuda::assert(), DetId::Forward, getSiThickness(), HFNose, DetId::HGCalEE, DetId::HGCalHSi, Calorimetry_cff::thickness, HFNoseDetId::type(), and HGCSiliconDetId::type().
Referenced by HGCalShowerShapeHelper::getCellSize(), and hgcal::EGammaPCAHelper::storeRecHits().
std::float_t RecHitTools::getSiThickness | ( | const DetId & | id | ) | const |
Definition at line 176 of file RecHitTools.cc.
References TauDecayModes::dec, DetId::Forward, relativeConstraints::geom, getSubdetectorGeometry(), HFNose, DetId::HGCalEE, DetId::HGCalHSi, HGCalDetId::layer(), HFNoseDetId::layer(), HGCSiliconDetId::layer(), LogDebug, HGCalDetId::wafer(), HFNoseDetId::waferU(), HGCSiliconDetId::waferU(), HGCSiliconDetId::waferV(), and HFNoseDetId::waferV().
Referenced by HGCalHitCalibration::analyze(), HGCalHitCalibration::fillWithRecHits(), and getSiThickIndex().
const CaloSubdetectorGeometry * RecHitTools::getSubdetectorGeometry | ( | const DetId & | id | ) | const |
Definition at line 116 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 366 of file RecHitTools.cc.
References TauDecayModes::dec, DetId::Forward, HFNose, DetId::HGCalEE, DetId::HGCalHSi, SiStripPI::max, HGCalDetId::wafer(), HFNoseDetId::waferU(), HGCSiliconDetId::waferU(), HGCSiliconDetId::waferV(), and HFNoseDetId::waferV().
bool RecHitTools::isHalfCell | ( | const DetId & | id | ) | const |
Definition at line 402 of file RecHitTools.cc.
References HGCalDetId::cell(), DetId::Forward, relativeConstraints::geom, getSubdetectorGeometry(), and HGCalDetId::waferType().
bool RecHitTools::isOnlySilicon | ( | const unsigned int | layer | ) | const |
bool RecHitTools::isSilicon | ( | const DetId & | id | ) | const |
Definition at line 415 of file RecHitTools.cc.
References DetId::Forward, HFNose, DetId::HGCalEE, and DetId::HGCalHSi.
Referenced by ticl::ClusterFilterByAlgoAndSize::filter(), and ticl::ClusterFilterByAlgoAndSizeAndLayerRange::filter().
|
inline |
Definition at line 68 of file RecHitTools.h.
References bhLastLayer_, and noseLastLayer_.
Referenced by HGCalClusteringAlgoBase::getEventSetup(), and TICLLayerTileProducer::produce().
|
inline |
Definition at line 67 of file RecHitTools.h.
References bhLastLayer_.
Referenced by HGCal3DClustering::getEventSetup(), and hgcal::EGammaPCAHelper::setRecHitTools().
|
inline |
Definition at line 64 of file RecHitTools.h.
References fhOffset_, and HFNoseDetId::HFNoseLayerEEmax.
Referenced by RealisticSimClusterMapper::buildClusters(), hgcal::EGammaPCAHelper::computePCA(), HGCalClusteringAlgoBase::getEventSetup(), hgcal::ClusterTools::getWidths(), HGCalShowerShapeHelper::initPerObject(), HGCal3DClustering::makeClusters(), HGCalDepthPreClusterer::makePreClusters(), and TrackstersMergeProducer::produce().
|
inline |
Definition at line 65 of file RecHitTools.h.
References fhLastLayer_.
Referenced by RealisticSimClusterMapper::buildClusters(), and HGCalClusteringAlgoBase::getEventSetup().
bool RecHitTools::maskCell | ( | const DetId & | id, |
int | corners = 3 |
||
) | const |
Definition at line 461 of file RecHitTools.cc.
References HGCalTopology::dddConstants(), getSubdetectorGeometry(), DetId::Hcal, HGCalDDDConstants::maskCell(), and HGCalGeometry::topology().
|
inline |
Definition at line 69 of file RecHitTools.h.
References maxNumberOfWafersNose_, and maxNumberOfWafersPerLayer_.
void RecHitTools::setGeometry | ( | CaloGeometry const & | geom | ) |
Definition at line 68 of file RecHitTools.cc.
References bhLastLayer_, bhMaxIphi_, bhOffset_, fhLastLayer_, fhOffset_, DetId::Forward, ForwardEmpty, relativeConstraints::geom, geom_, geometryType_, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalEndcap, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEF, hgcalTopologyTester_cfi::layers, SiStripPI::max, maxNumberOfWafersNose_, maxNumberOfWafersPerLayer_, and noseLastLayer_.
Referenced by HGCalHitCalibration::analyze(), HGCalShowerSeparation::analyze(), PositionAtECalEntranceComputer::beginEvent(), TICLLayerTileProducer::beginRun(), FilteredLayerClustersProducer::beginRun(), HGCalEgammaIDHelper::eventInit(), hgcal::ClusterTools::getEventSetup(), HGCal3DClustering::getEventSetup(), HGCalDepthPreClusterer::getEventSetup(), HGCalClusteringAlgoBase::getEventSetup(), PFHGCalRecHitCreator< DET, Layer, det, subdet >::importRecHits(), HGCalShowerShapeHelper::initPerEvent(), TrackstersMergeProducer::produce(), HGCalRecHitAbsAlgo::set(), and RealisticSimClusterMapper::update().
int RecHitTools::zside | ( | const DetId & | id | ) | const |
Definition at line 160 of file RecHitTools.cc.
References DetId::Forward, DetId::Hcal, HcalEndcap, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCScintillatorDetId::zside(), HGCalDetId::zside(), HFNoseDetId::zside(), HGCSiliconDetId::zside(), and HcalDetId::zside().
Referenced by TICLLayerTileProducer::produce().
|
private |
Definition at line 78 of file RecHitTools.h.
Referenced by isOnlySilicon(), lastLayer(), lastLayerBH(), and setGeometry().
|
private |
Definition at line 81 of file RecHitTools.h.
Referenced by getScintMaxIphi(), and setGeometry().
|
private |
Definition at line 78 of file RecHitTools.h.
Referenced by firstLayerBH(), getLayerWithOffset(), isOnlySilicon(), and setGeometry().
|
private |
Definition at line 78 of file RecHitTools.h.
Referenced by lastLayerFH(), and setGeometry().
|
private |
Definition at line 78 of file RecHitTools.h.
Referenced by getLayerWithOffset(), getPositionLayer(), lastLayerEE(), and setGeometry().
|
private |
Definition at line 77 of file RecHitTools.h.
Referenced by getGeometry(), getLayer(), getPositionLayer(), getSubdetectorGeometry(), and setGeometry().
|
private |
Definition at line 80 of file RecHitTools.h.
Referenced by getGeometryType(), getPositionLayer(), and setGeometry().
|
private |
Definition at line 79 of file RecHitTools.h.
Referenced by maxNumberOfWafersPerLayer(), and setGeometry().
|
private |
Definition at line 79 of file RecHitTools.h.
Referenced by maxNumberOfWafersPerLayer(), and setGeometry().
|
private |
Definition at line 78 of file RecHitTools.h.
Referenced by lastLayer(), and setGeometry().