#include <RecHitTools.h>
Public Member Functions | |
std::pair< uint32_t, uint32_t > | firstAndLastLayer (DetId::Detector det, int subdet) const |
unsigned int | firstLayerBH () const |
std::pair< int, 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 |
const CaloGeometry * | getGeometry () const |
int | getGeometryType () const |
unsigned int | getLayer (DetId::Detector type, bool nose=false) 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 |
GlobalPoint | getPositionLayer (int layer, bool nose=false) 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::pair< float, float > | getScintDEtaDPhi (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 | isScintillator (const DetId &) 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 | bhFirstLayer_ |
unsigned int | bhLastLayer_ |
int | bhMaxIphi_ |
unsigned int | bhOffset_ |
unsigned int | eeOffset_ |
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 34 of file RecHitTools.h.
std::pair< uint32_t, uint32_t > RecHitTools::firstAndLastLayer | ( | DetId::Detector | det, |
int | subdet | ||
) | const |
Definition at line 476 of file RecHitTools.cc.
References bhFirstLayer_, bhLastLayer_, eeOffset_, fhLastLayer_, fhOffset_, DetId::Forward, HFNose, DetId::HGCalEE, DetId::HGCalHSi, HGCEE, HGCHEF, and noseLastLayer_.
|
inline |
Definition at line 77 of file RecHitTools.h.
References bhFirstLayer_.
Referenced by HGCalClusteringAlgoBase::getEventSetup(), HGCal3DClustering::makeClusters(), and HGCalDepthPreClusterer::makePreClusters().
std::pair< int, int > RecHitTools::getCell | ( | const DetId & | id | ) | const |
Definition at line 397 of file RecHitTools.cc.
References HGCalDetId::cell(), HGCSiliconDetId::cellU(), HFNoseDetId::cellU(), HGCSiliconDetId::cellV(), HFNoseDetId::cellV(), TauDecayModes::dec, DetId::Forward, HFNose, DetId::HGCalEE, DetId::HGCalHSi, and SiStripPI::max.
float RecHitTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 441 of file RecHitTools.cc.
References PV3DBase< T, PVType, FrameType >::eta(), and position.
Referenced by getEta(), getPt(), and HGCalIsoCalculator::setRecHits().
float RecHitTools::getEta | ( | const DetId & | id, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 446 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), and position.
|
inline |
|
inline |
Definition at line 85 of file RecHitTools.h.
References geometryType_.
Referenced by RealisticSimClusterMapper::buildClusters().
unsigned int RecHitTools::getLayer | ( | DetId::Detector | type, |
bool | nose = false |
||
) | const |
Definition at line 307 of file RecHitTools.cc.
References DetId::Forward, ForwardEmpty, geom_, CaloGeometry::getSubdetectorGeometry(), HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, and hgcalTBTopologyTester_cfi::layers.
Referenced by RealisticSimClusterMapper::buildClusters(), and getLayerWithOffset().
unsigned int RecHitTools::getLayer | ( | ForwardSubdetector | type | ) | const |
Definition at line 257 of file RecHitTools.cc.
References DetId::Forward, ForwardEmpty, geom_, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalEndcap, HFNose, HGCEE, HGCHEB, HGCHEF, and hgcalTBTopologyTester_cfi::layers.
unsigned int RecHitTools::getLayer | ( | const DetId & | id | ) | const |
Definition at line 349 of file RecHitTools.cc.
References HcalDetId::depth(), DetId::Forward, DetId::Hcal, HcalEndcap, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCalDetId::layer(), HGCScintillatorDetId::layer(), HGCSiliconDetId::layer(), HFNoseDetId::layer(), and SiStripPI::max.
unsigned int RecHitTools::getLayerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 365 of file RecHitTools.cc.
References bhOffset_, fhOffset_, DetId::Forward, getLayer(), DetId::Hcal, HcalEndcap, DetId::HGCalHSc, DetId::HGCalHSi, and HGCHEF.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), HGCalShowerSeparation::analyze(), HGCalHitCalibration::analyze(), RealisticSimClusterMapper::buildClusters(), TICLTrackstersEdgesValidation::dqmAnalyze(), TrackstersMergeProducerV3::energyRegressionAndID(), 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 GlobalPoint & | position | ) | const |
Definition at line 452 of file RecHitTools.cc.
References position.
Referenced by HGCalIsoCalculator::setRecHits().
float RecHitTools::getPhi | ( | const DetId & | id | ) | const |
Definition at line 457 of file RecHitTools.cc.
References getPosition(), and position.
GlobalPoint RecHitTools::getPosition | ( | const DetId & | id | ) | const |
Definition at line 129 of file RecHitTools.cc.
References relativeConstraints::geom, HGCalGeometry::getPosition(), getSubdetectorGeometry(), DetId::Hcal, and position.
Referenced by HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), HGCalLayerClusterProducer::calculatePosition(), getEta(), getPhi(), getPt(), hgcal::ClusterTools::getWidths(), HGCalIsoCalculator::setRecHits(), and hgcal::EGammaPCAHelper::storeRecHits().
GlobalPoint RecHitTools::getPositionLayer | ( | int | layer, |
bool | nose = false |
||
) | const |
Definition at line 141 of file RecHitTools.cc.
References funct::abs(), fhOffset_, DetId::Forward, geom_, geometryType_, CaloGeometry::getSubdetectorGeometry(), HFNose, and HGCalDDDConstants::waferZ().
Referenced by PositionAtECalEntranceComputer::beginEvent(), ticl::LinkingAlgoByDirectionGeometric::buildLayers(), hgcal::EGammaPCAHelper::findZFirstLayer(), ticl::LinkingAlgoByDirectionGeometric::linkTracksters(), TrackstersMergeProducerV3::produce(), SimTrackstersProducer::produce(), and TrackstersMergeProducer::produce().
float RecHitTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 463 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), position, and DiDispStaMuonMonitor_cfi::pt.
float RecHitTools::getPt | ( | const DetId & | id, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 469 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), position, and DiDispStaMuonMonitor_cfi::pt.
std::float_t RecHitTools::getRadiusToSide | ( | const DetId & | id | ) | const |
Definition at line 235 of file RecHitTools.cc.
References HGCalDDDConstants::cellSizeHex(), TauDecayModes::dec, DetId::Forward, relativeConstraints::geom, getSubdetectorGeometry(), HFNose, DetId::HGCalEE, DetId::HGCalHSi, SiStripPI::max, findQualityFiles::size, HGCSiliconDetId::type(), HFNoseDetId::type(), and HGCalDetId::waferType().
std::pair< float, float > RecHitTools::getScintDEtaDPhi | ( | const DetId & | id | ) | const |
Definition at line 225 of file RecHitTools.cc.
References TauDecayModes::dec, CaloSubdetectorGeometry::getGeometry(), getSubdetectorGeometry(), isScintillator(), and LogDebug.
|
inline |
Definition at line 84 of file RecHitTools.h.
References bhMaxIphi_.
Referenced by HGCalClusteringAlgoBase::getEventSetup().
int RecHitTools::getSiThickIndex | ( | const DetId & | id | ) | const |
Definition at line 205 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 FWRecoGeometryESProducer::addCaloGeometry(), HGCalLayerClusterProducer::calculatePosition(), and hgcal::EGammaPCAHelper::storeRecHits().
std::float_t RecHitTools::getSiThickness | ( | const DetId & | id | ) | const |
Definition at line 179 of file RecHitTools.cc.
References HGCalDDDConstants::cellThickness(), 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 119 of file RecHitTools.cc.
References ForwardEmpty, relativeConstraints::geom, geom_, CaloGeometry::getSubdetectorGeometry(), DetId::HGCalEE, DetId::HGCalHSc, and DetId::HGCalHSi.
Referenced by getPosition(), getRadiusToSide(), getScintDEtaDPhi(), getSiThickness(), isHalfCell(), and maskCell().
std::pair< int, int > RecHitTools::getWafer | ( | const DetId & | id | ) | const |
Definition at line 379 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 415 of file RecHitTools.cc.
References HGCalDetId::cell(), DetId::Forward, relativeConstraints::geom, getSubdetectorGeometry(), HGCalDDDConstants::isHalfCell(), HGCalDetId::waferType(), and HGCalDDDConstants::waferTypeT().
bool RecHitTools::isOnlySilicon | ( | const unsigned int | layer | ) | const |
bool RecHitTools::isScintillator | ( | const DetId & | id | ) | const |
Definition at line 433 of file RecHitTools.cc.
References DetId::HGCalHSc.
Referenced by getScintDEtaDPhi().
bool RecHitTools::isSilicon | ( | const DetId & | id | ) | const |
Definition at line 428 of file RecHitTools.cc.
References DetId::Forward, HFNose, DetId::HGCalEE, and DetId::HGCalHSi.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), ticl::ClusterFilterByAlgoAndSize::filter(), and ticl::ClusterFilterByAlgoAndSizeAndLayerRange::filter().
|
inline |
Definition at line 79 of file RecHitTools.h.
References bhLastLayer_, and noseLastLayer_.
Referenced by HGCalClusteringAlgoBase::getEventSetup(), TICLLayerTileProducer::produce(), and setGeometry().
|
inline |
Definition at line 78 of file RecHitTools.h.
References bhLastLayer_.
Referenced by HGCal3DClustering::getEventSetup(), and hgcal::EGammaPCAHelper::setRecHitTools().
|
inline |
Definition at line 75 of file RecHitTools.h.
References fhOffset_, and HFNoseDetId::HFNoseLayerEEmax.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), RealisticSimClusterMapper::buildClusters(), ticl::LinkingAlgoByDirectionGeometric::buildLayers(), hgcal::EGammaPCAHelper::computePCA(), HGCalClusteringAlgoBase::getEventSetup(), hgcal::ClusterTools::getWidths(), ticl::LinkingAlgoByDirectionGeometric::linkTracksters(), HGCal3DClustering::makeClusters(), HGCalDepthPreClusterer::makePreClusters(), TrackstersMergeProducerV3::produce(), SimTrackstersProducer::produce(), and TrackstersMergeProducer::produce().
|
inline |
Definition at line 76 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 488 of file RecHitTools.cc.
References HGCalTopology::dddConstants(), getSubdetectorGeometry(), DetId::Hcal, HGCalDDDConstants::maskCell(), and HGCalGeometry::topology().
|
inline |
Definition at line 81 of file RecHitTools.h.
References maxNumberOfWafersNose_, and maxNumberOfWafersPerLayer_.
void RecHitTools::setGeometry | ( | CaloGeometry const & | geom | ) |
Definition at line 68 of file RecHitTools.cc.
References bhFirstLayer_, bhLastLayer_, bhMaxIphi_, bhOffset_, eeOffset_, fhLastLayer_, fhOffset_, DetId::Forward, ForwardEmpty, relativeConstraints::geom, geom_, geometryType_, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalEndcap, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEF, lastLayer(), hgcalTBTopologyTester_cfi::layers, SiStripPI::max, maxNumberOfWafersNose_, maxNumberOfWafersPerLayer_, and noseLastLayer_.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), HeterogeneousHGCalRecHitsValidator::analyze(), HGCalShowerSeparation::analyze(), HGCalHitCalibration::analyze(), PositionAtECalEntranceComputer::beginEvent(), TICLLayerTileProducer::beginRun(), FilteredLayerClustersProducer::beginRun(), TrackstersMergeProducer::beginRun(), TICLTrackstersEdgesValidation::dqmBeginRun(), HGCalEgammaIDHelper::eventInit(), hgcal::ClusterTools::getEventSetup(), HGCalDepthPreClusterer::getEventSetup(), HGCal3DClustering::getEventSetup(), PFHGCalRecHitCreator< DET, Layer, det, subdet >::importRecHits(), TrackstersMergeProducerV3::produce(), SimTrackstersProducer::produce(), HGCalLayerClusterProducer::produce(), HGCalRecHitAbsAlgo::set(), and RealisticSimClusterMapper::update().
int RecHitTools::zside | ( | const DetId & | id | ) | const |
Definition at line 163 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 FWRecoGeometryESProducer::addCaloGeometry(), and TICLLayerTileProducer::produce().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by firstAndLastLayer(), firstLayerBH(), and setGeometry().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by firstAndLastLayer(), isOnlySilicon(), lastLayer(), lastLayerBH(), and setGeometry().
|
private |
Definition at line 93 of file RecHitTools.h.
Referenced by getScintMaxIphi(), and setGeometry().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by getLayerWithOffset(), isOnlySilicon(), and setGeometry().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by firstAndLastLayer(), and setGeometry().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by firstAndLastLayer(), lastLayerFH(), and setGeometry().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by firstAndLastLayer(), getLayerWithOffset(), getPositionLayer(), lastLayerEE(), and setGeometry().
|
private |
Definition at line 89 of file RecHitTools.h.
Referenced by getGeometry(), getLayer(), getPositionLayer(), getSubdetectorGeometry(), and setGeometry().
|
private |
Definition at line 92 of file RecHitTools.h.
Referenced by getGeometryType(), getPositionLayer(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by maxNumberOfWafersPerLayer(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by maxNumberOfWafersPerLayer(), and setGeometry().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by firstAndLastLayer(), lastLayer(), and setGeometry().