#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 |
int | getCellType (const DetId &id) 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 526 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 78 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 413 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.
int RecHitTools::getCellType | ( | const DetId & | id | ) | const |
Definition at line 444 of file RecHitTools.cc.
References cms::cuda::assert(), DetId::Forward, geom_, getLayerWithOffset(), getSiThickIndex(), CaloGeometry::getSubdetectorGeometry(), HFNose, isScintillator(), lastLayerEE(), Calorimetry_cff::thickness, and funct::true.
float RecHitTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 491 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 496 of file RecHitTools.cc.
References PVValHelper::eta, getEta(), getPosition(), and position.
|
inline |
|
inline |
Definition at line 86 of file RecHitTools.h.
References geometryType_.
Referenced by RealisticSimClusterMapper::buildClusters().
unsigned int RecHitTools::getLayer | ( | DetId::Detector | type, |
bool | nose = false |
||
) | const |
Definition at line 318 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 268 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 360 of file RecHitTools.cc.
References HcalDetId::depth(), DetId::Ecal, DetId::Forward, DetId::Hcal, HcalBarrel, HcalEmpty, HcalOuter, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCalDetId::layer(), HFNoseDetId::layer(), HGCScintillatorDetId::layer(), HGCSiliconDetId::layer(), and SiStripPI::max.
unsigned int RecHitTools::getLayerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 381 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(), TracksterLinksProducer::energyRegressionAndID(), TrackstersMergeProducer::energyRegressionAndID(), HGCalHitCalibration::fillWithRecHits(), ticl::ClusterFilterByAlgoAndSizeAndLayerRange::filter(), ticl::TracksterLinkingbySkeletons::findSkeletonNodes(), getCellType(), hgcal::ClusterTools::getLayer(), ticl::getLayerFromLC(), HGCalRecHitSimpleAlgo::makeRecHit(), HGCal3DClustering::organizeByLayer(), TICLLayerTileProducer::produce(), ALPAKA_ACCELERATOR_NAMESPACE::HGCalSoARecHitsProducer::produce(), HGCalIsoCalculator::produceHGCalIso(), and hgcal::EGammaPCAHelper::storeRecHits().
float RecHitTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 502 of file RecHitTools.cc.
References position.
Referenced by HGCalIsoCalculator::setRecHits().
float RecHitTools::getPhi | ( | const DetId & | id | ) | const |
Definition at line 507 of file RecHitTools.cc.
References getPosition(), and position.
GlobalPoint RecHitTools::getPosition | ( | const DetId & | id | ) | const |
Definition at line 140 of file RecHitTools.cc.
References DetId::Ecal, relativeConstraints::geom, HGCalGeometry::getPosition(), getSubdetectorGeometry(), DetId::Hcal, and position.
Referenced by HGCalShowerSeparation::analyze(), RealisticSimClusterMapper::buildClusters(), HGCalLayerClusterProducer::calculatePosition(), getEta(), getPhi(), getPt(), hgcal::ClusterTools::getWidths(), ALPAKA_ACCELERATOR_NAMESPACE::HGCalSoARecHitsProducer::produce(), HGCalIsoCalculator::setRecHits(), and hgcal::EGammaPCAHelper::storeRecHits().
GlobalPoint RecHitTools::getPositionLayer | ( | int | layer, |
bool | nose = false |
||
) | const |
Definition at line 152 of file RecHitTools.cc.
References funct::abs(), fhOffset_, DetId::Forward, geom_, geometryType_, CaloGeometry::getSubdetectorGeometry(), HFNose, and HGCalDDDConstants::waferZ().
Referenced by ticl::TracksterLinkingbySkeletons::areCompatible(), PositionAtECalEntranceComputer::beginEvent(), ticl::GeneralInterpretationAlgo::buildLayers(), ticl::LinkingAlgoByDirectionGeometric::buildLayers(), ticl::TracksterLinkingbySkeletons::buildLayers(), DetectorTools::DetectorTools(), hgcal::EGammaPCAHelper::findZFirstLayer(), ticl::LinkingAlgoByDirectionGeometric::linkTracksters(), ticl::GeneralInterpretationAlgo::makeCandidates(), TracksterLinksProducer::produce(), TrackstersMergeProducer::produce(), SimTrackstersProducer::produce(), and TICLCandidateProducer::produce().
float RecHitTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 513 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 519 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 246 of file RecHitTools.cc.
References HGCalDDDConstants::cellSizeHex(), TauDecayModes::dec, DetId::Forward, relativeConstraints::geom, getSubdetectorGeometry(), HFNose, DetId::HGCalEE, DetId::HGCalHSi, SiStripPI::max, HFNoseDetId::type(), HGCSiliconDetId::type(), and HGCalDetId::waferType().
std::pair< float, float > RecHitTools::getScintDEtaDPhi | ( | const DetId & | id | ) | const |
Definition at line 236 of file RecHitTools.cc.
References TauDecayModes::dec, CaloSubdetectorGeometry::getGeometry(), getSubdetectorGeometry(), isScintillator(), and LogDebug.
|
inline |
Definition at line 85 of file RecHitTools.h.
References bhMaxIphi_.
Referenced by HGCalClusteringAlgoBase::getEventSetup().
int RecHitTools::getSiThickIndex | ( | const DetId & | id | ) | const |
Definition at line 216 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(), getCellType(), ALPAKA_ACCELERATOR_NAMESPACE::HGCalSoARecHitsProducer::produce(), and hgcal::EGammaPCAHelper::storeRecHits().
std::float_t RecHitTools::getSiThickness | ( | const DetId & | id | ) | const |
Definition at line 190 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(), HFNoseDetId::waferV(), and HGCSiliconDetId::waferV().
Referenced by HGCalHitCalibration::analyze(), HGCalHitCalibration::fillWithRecHits(), and getSiThickIndex().
const CaloSubdetectorGeometry * RecHitTools::getSubdetectorGeometry | ( | const DetId & | id | ) | const |
Definition at line 130 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 395 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(), HFNoseDetId::waferV(), and HGCSiliconDetId::waferV().
bool RecHitTools::isHalfCell | ( | const DetId & | id | ) | const |
Definition at line 431 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 483 of file RecHitTools.cc.
References DetId::HGCalHSc.
Referenced by getCellType(), and getScintDEtaDPhi().
bool RecHitTools::isSilicon | ( | const DetId & | id | ) | const |
Definition at line 478 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 80 of file RecHitTools.h.
References bhLastLayer_, and noseLastLayer_.
Referenced by ticl::assignPCAtoTracksters(), HGCalClusteringAlgoBase::getEventSetup(), TICLLayerTileProducer::produce(), ALPAKA_ACCELERATOR_NAMESPACE::HGCalSoARecHitsProducer::produce(), setGeometry(), and ticl::sortByLayer().
|
inline |
Definition at line 79 of file RecHitTools.h.
References bhLastLayer_.
Referenced by HGCal3DClustering::getEventSetup(), and hgcal::EGammaPCAHelper::setRecHitTools().
|
inline |
Definition at line 76 of file RecHitTools.h.
References fhOffset_, and HFNoseDetId::HFNoseLayerEEmax.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), ticl::TracksterLinkingbySkeletons::areCompatible(), RealisticSimClusterMapper::buildClusters(), ticl::GeneralInterpretationAlgo::buildLayers(), ticl::LinkingAlgoByDirectionGeometric::buildLayers(), ticl::TracksterLinkingbySkeletons::buildLayers(), hgcal::EGammaPCAHelper::computePCA(), DetectorTools::DetectorTools(), getCellType(), HGCalClusteringAlgoBase::getEventSetup(), hgcal::ClusterTools::getWidths(), ticl::LinkingAlgoByDirectionGeometric::linkTracksters(), ticl::GeneralInterpretationAlgo::makeCandidates(), HGCal3DClustering::makeClusters(), HGCalDepthPreClusterer::makePreClusters(), TracksterLinksProducer::produce(), TrackstersMergeProducer::produce(), SimTrackstersProducer::produce(), and TICLCandidateProducer::produce().
|
inline |
Definition at line 77 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 538 of file RecHitTools.cc.
References HGCalTopology::dddConstants(), getSubdetectorGeometry(), DetId::Hcal, HGCalDDDConstants::maskCell(), and HGCalGeometry::topology().
|
inline |
Definition at line 82 of file RecHitTools.h.
References maxNumberOfWafersNose_, and maxNumberOfWafersPerLayer_.
void RecHitTools::setGeometry | ( | CaloGeometry const & | geom | ) |
Definition at line 79 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(), TracksterLinksProducer::beginRun(), TICLCandidateProducer::beginRun(), TrackstersMergeProducer::beginRun(), DetectorTools::DetectorTools(), TICLTrackstersEdgesValidation::dqmBeginRun(), HGCalEgammaIDHelper::eventInit(), hgcal::ClusterTools::getEventSetup(), HGCalDepthPreClusterer::getEventSetup(), HGCal3DClustering::getEventSetup(), PFHGCalRecHitCreator< DET, Layer, det, subdet >::importRecHits(), ALPAKA_ACCELERATOR_NAMESPACE::HGCalSoARecHitsProducer::produce(), SimTrackstersProducer::produce(), HGCalLayerClusterProducer::produce(), HGCalRecHitAbsAlgo::set(), and RealisticSimClusterMapper::update().
int RecHitTools::zside | ( | const DetId & | id | ) | const |
Definition at line 174 of file RecHitTools.cc.
References DetId::Forward, DetId::Hcal, HcalEndcap, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCalDetId::zside(), HFNoseDetId::zside(), HGCScintillatorDetId::zside(), HGCSiliconDetId::zside(), and HcalDetId::zside().
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), TICLLayerTileProducer::produce(), and ALPAKA_ACCELERATOR_NAMESPACE::HGCalSoARecHitsProducer::produce().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by firstAndLastLayer(), firstLayerBH(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by firstAndLastLayer(), isOnlySilicon(), lastLayer(), lastLayerBH(), and setGeometry().
|
private |
Definition at line 94 of file RecHitTools.h.
Referenced by getScintMaxIphi(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by getLayerWithOffset(), isOnlySilicon(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by firstAndLastLayer(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by firstAndLastLayer(), lastLayerFH(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by firstAndLastLayer(), getLayerWithOffset(), getPositionLayer(), lastLayerEE(), and setGeometry().
|
private |
Definition at line 90 of file RecHitTools.h.
Referenced by getCellType(), getGeometry(), getLayer(), getPositionLayer(), getSubdetectorGeometry(), and setGeometry().
|
private |
Definition at line 93 of file RecHitTools.h.
Referenced by getGeometryType(), getPositionLayer(), and setGeometry().
|
private |
Definition at line 92 of file RecHitTools.h.
Referenced by maxNumberOfWafersPerLayer(), and setGeometry().
|
private |
Definition at line 92 of file RecHitTools.h.
Referenced by maxNumberOfWafersPerLayer(), and setGeometry().
|
private |
Definition at line 91 of file RecHitTools.h.
Referenced by firstAndLastLayer(), lastLayer(), and setGeometry().