#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(), phase1PixelTopology::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, phase1PixelTopology::layer, and hgcalTopologyTester_cfi::layers.
Referenced by RealisticSimClusterMapper::buildClusters(), and getLayerWithOffset().
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, phase1PixelTopology::layer, 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, HGCHEF, and phase1PixelTopology::layer.
Referenced by HGCalHitCalibration::analyze(), HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), TICLTrackstersEdgesValidation::dqmAnalyze(), 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(), getPhi(), getPt(), hgcal::ClusterTools::getWidths(), 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, phase1PixelTopology::layer, and HGCalDDDConstants::waferZ().
Referenced by PositionAtECalEntranceComputer::beginEvent(), hgcal::EGammaPCAHelper::findZFirstLayer(), TrackstersMergeProducer::produce(), and TrackstersFromSimClustersProducer::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 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(), HGCalWaferIndex::waferU(), HFNoseDetId::waferU(), HGCSiliconDetId::waferU(), HGCalWaferIndex::waferV(), 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 |
Definition at line 420 of file RecHitTools.cc.
References bhLastLayer_, bhOffset_, and phase1PixelTopology::layer.
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(), HGCal3DClustering::makeClusters(), HGCalDepthPreClusterer::makePreClusters(), TrackstersMergeProducer::produce(), and TrackstersFromSimClustersProducer::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 HeterogeneousHGCalRecHitsValidator::analyze(), HGCalShowerSeparation::analyze(), HGCalHitCalibration::analyze(), PositionAtECalEntranceComputer::beginEvent(), TICLLayerTileProducer::beginRun(), FilteredLayerClustersProducer::beginRun(), TICLTrackstersEdgesValidation::dqmBeginRun(), HGCalEgammaIDHelper::eventInit(), hgcal::ClusterTools::getEventSetup(), HGCal3DClustering::getEventSetup(), HGCalDepthPreClusterer::getEventSetup(), HGCalClusteringAlgoBase::getEventSetup(), PFHGCalRecHitCreator< DET, Layer, det, subdet >::importRecHits(), TrackstersMergeProducer::produce(), TrackstersFromSimClustersProducer::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().