#include <HGCalTriggerTools.h>
Public Member Functions | |
template<typename T > | |
std::vector< T > | bxVectorToVector (const BXVector< T > &inputBXVector) |
void | eventSetup (const edm::EventSetup &) |
float | getEta (const GlobalPoint &position, const float &vertex_z=0.) const |
float | getLayerZ (const unsigned &layerWithOffset) const |
float | getLayerZ (const int &subdet, const unsigned &layer) const |
float | getPhi (const GlobalPoint &position) const |
float | getPt (const GlobalPoint &position, const float &hitEnergy, const float &vertex_z=0.) const |
float | getTCEta (const DetId &id, const float &vertex_z=0.) const |
float | getTCPhi (const DetId &id) const |
GlobalPoint | getTCPosition (const DetId &id) const |
float | getTCPt (const DetId &id, const float &hitEnergy, const float &vertex_z=0.) const |
const HGCalTriggerGeometryBase * | getTriggerGeometry () const |
HGCalTriggerTools () | |
bool | isEm (const DetId &) const |
bool | isHad (const DetId &id) const |
bool | isScintillator (const DetId &id) const |
bool | isSilicon (const DetId &) const |
unsigned | lastLayerBH () const |
unsigned | lastLayerEE () const |
unsigned | lastLayerFH () const |
unsigned | layer (const DetId &) const |
unsigned | layers (ForwardSubdetector type) const |
unsigned | layers (DetId::Detector type) const |
unsigned | layerWithOffset (const DetId &) const |
DetId | simToReco (const DetId &, const HGCalTopology &) const |
DetId | simToReco (const DetId &, const HcalTopology &) const |
int | thicknessIndex (const DetId &, bool tc=false) const |
int | zside (const DetId &) const |
~HGCalTriggerTools () | |
Private Member Functions | |
int | sensorCellThicknessV8 (const DetId &id) const |
Private Attributes | |
unsigned | bhLayers_ |
unsigned | eeLayers_ |
unsigned | fhLayers_ |
const HGCalTriggerGeometryBase * | geom_ |
unsigned | totalLayers_ |
Tools for handling HGCal trigger det-ID: in the current version of trhe HGCAL simulation only HGCalDetId for the TriggerCells (TC) are used and not HcalDetId as in the offline! As a consequence the class assumes that only DetIds of the first kind are used in the getTC* methods NOTE: this uses the trigger geometry hence would give wrong results when used for offline reco!!!!
Definition at line 34 of file HGCalTriggerTools.h.
|
inline |
Definition at line 36 of file HGCalTriggerTools.h.
|
inline |
|
inline |
Definition at line 75 of file HGCalTriggerTools.h.
References BXVector< T >::begin(), and BXVector< T >::end().
void HGCalTriggerTools::eventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 33 of file HGCalTriggerTools.cc.
References bhLayers_, HGCalTriggerGeometryBase::bhTopology(), HGCalTopology::dddConstants(), HcalTopology::dddConstants(), eeLayers_, HGCalTriggerGeometryBase::eeTopology(), fhLayers_, HGCalTriggerGeometryBase::fhTopology(), geom_, edm::EventSetup::get(), HcalDDDRecConstants::getMaxDepth(), HGCalTriggerGeometryBase::hscTopology(), HGCalTriggerGeometryBase::isV9Geometry(), HGCalDDDConstants::layers(), edm::ESHandle< T >::product(), and totalLayers_.
Referenced by HGCalTriggerValidator::analyze(), HGCalClusteringDummyImpl::eventSetup(), HGCalHistoSeedingImpl::eventSetup(), HGCalMulticlusteringImpl::eventSetup(), HGCalTriggerCellCalibration::eventSetup(), HGCalVFESummationImpl::eventSetup(), HGCalHistoClusteringImpl::eventSetup(), HGCalShowerShape::eventSetup(), HGCalConcentratorSuperTriggerCellImpl::eventSetup(), HGCalTowerMap2DImpl::eventSetup(), HGCalClusteringImpl::eventSetup(), HGCalConcentratorSelectionImpl::eventSetup(), HGCalTriggerNtupleHGCClusters::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalTriggerNtupleHGCDigis::fill(), and HGCalTriggerNtupleGen::fill().
float HGCalTriggerTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 199 of file HGCalTriggerTools.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 getPt(), and getTCEta().
float HGCalTriggerTools::getLayerZ | ( | const unsigned & | layerWithOffset | ) | const |
Definition at line 230 of file HGCalTriggerTools.cc.
References HcalEndcap, HGCEE, HGCHEF, lastLayerEE(), lastLayerFH(), and PFRecoTauDiscriminationByIsolation_cfi::offset.
Referenced by HGCalTriggerNtupleGen::fill().
float HGCalTriggerTools::getLayerZ | ( | const int & | subdet, |
const unsigned & | layer | ||
) | const |
Definition at line 243 of file HGCalTriggerTools.cc.
References HGCalTriggerGeometryBase::bhTopology(), HGCalTopology::dddConstants(), HcalTopology::dddConstants(), HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), geom_, HcalDDDRecConstants::getEtaRange(), HcalDDDRecConstants::getRZ(), HcalEndcap, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, HGCalTriggerGeometryBase::hscTopology(), HGCalTriggerGeometryBase::isV9Geometry(), layer(), and HGCalDDDConstants::waferZ().
float HGCalTriggerTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 209 of file HGCalTriggerTools.cc.
References phi, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by getTCPhi().
float HGCalTriggerTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 219 of file HGCalTriggerTools.cc.
References PVValHelper::eta, getEta(), and EnergyCorrector::pt.
Referenced by getTCPt().
float HGCalTriggerTools::getTCEta | ( | const DetId & | id, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 204 of file HGCalTriggerTools.cc.
References getEta(), getTCPosition(), and position.
float HGCalTriggerTools::getTCPhi | ( | const DetId & | id | ) | const |
Definition at line 214 of file HGCalTriggerTools.cc.
References getPhi(), getTCPosition(), and position.
GlobalPoint HGCalTriggerTools::getTCPosition | ( | const DetId & | id | ) | const |
Definition at line 49 of file HGCalTriggerTools.cc.
References Exception, geom_, HGCalTriggerGeometryBase::getTriggerCellPosition(), DetId::Hcal, DetId::HGCalEE, and position.
Referenced by getTCEta(), getTCPhi(), and getTCPt().
float HGCalTriggerTools::getTCPt | ( | const DetId & | id, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 225 of file HGCalTriggerTools.cc.
References getPt(), getTCPosition(), and position.
|
inline |
Definition at line 69 of file HGCalTriggerTools.h.
bool HGCalTriggerTools::isEm | ( | const DetId & | id | ) | const |
Definition at line 131 of file HGCalTriggerTools.cc.
References DetId::Forward, DetId::HGCalEE, HGCalEETrigger, DetId::HGCalTrigger, HGCEE, and HGCalTriggerDetId::subdet().
|
inline |
|
inline |
Definition at line 48 of file HGCalTriggerTools.h.
References ecaldqm::zside().
Referenced by HGCalConcentratorSuperTriggerCellImpl::getSuperTriggerCellId(), layerWithOffset(), HGCalConcentratorSelectionImpl::thresholdSelectImpl(), and HGCalVFESummationImpl::triggerCellSums().
bool HGCalTriggerTools::isSilicon | ( | const DetId & | id | ) | const |
Definition at line 143 of file HGCalTriggerTools.cc.
References DetId::Forward, DetId::HGCalEE, HGCalHScTrigger, DetId::HGCalHSi, DetId::HGCalTrigger, HGCHEB, and HGCalTriggerDetId::subdet().
Referenced by HGCalTriggerCellCalibration::calibrateInMipT(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), layerWithOffset(), and HGCalVFESummationImpl::triggerCellSums().
|
inline |
Definition at line 57 of file HGCalTriggerTools.h.
References position.
Referenced by HGCalHistoClusteringImpl::eventSetup(), HGCalTriggerNtupleGen::fill(), and HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
Definition at line 55 of file HGCalTriggerTools.h.
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D(), getLayerZ(), and HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
unsigned HGCalTriggerTools::layer | ( | const DetId & | id | ) | const |
Definition at line 102 of file HGCalTriggerTools.cc.
References HcalDetId::depth(), DetId::Forward, DetId::Hcal, HcalEndcap, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, DetId::HGCalTrigger, HGCalDetId::layer(), HGCScintillatorDetId::layer(), HGCalTriggerDetId::layer(), HGCSiliconDetId::layer(), and SiStripPI::max.
Referenced by getLayerZ(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalClusteringImpl::isPertinent(), layerWithOffset(), and simToReco().
unsigned HGCalTriggerTools::layers | ( | ForwardSubdetector | type | ) | const |
Definition at line 60 of file HGCalTriggerTools.cc.
References bhLayers_, eeLayers_, fhLayers_, ForwardEmpty, HGCEE, HGCHEB, HGCHEF, and totalLayers_.
Referenced by HGCalClusteringImpl::clusterizeNN(), HGCalShowerShape::coreShowerLength(), and layers().
unsigned HGCalTriggerTools::layers | ( | DetId::Detector | type | ) | const |
Definition at line 81 of file HGCalTriggerTools.cc.
References bhLayers_, eeLayers_, fhLayers_, DetId::Forward, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, layers(), and totalLayers_.
unsigned HGCalTriggerTools::layerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 118 of file HGCalTriggerTools.cc.
References eeLayers_, fhLayers_, geom_, isHad(), isScintillator(), isSilicon(), HGCalTriggerGeometryBase::isV9Geometry(), checklumidiff::l, and layer().
Referenced by HGCalTriggerValidator::analyze(), HGCalTowerMap2DImpl::buildTowerMap2D(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), HGCalClusteringDummyImpl::calibratePt(), HGCalClusteringImpl::calibratePt(), HGCalHistoClusteringImpl::clusterSeedMulticluster(), HGCalShowerShape::eMax(), HGCalTriggerNtupleHGCClusters::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalTriggerNtupleHGCDigis::fill(), HGCalShowerShape::firstLayer(), HGCalShowerShape::lastLayer(), HGCalShowerShape::maxLayer(), HGCalShowerShape::sigmaEtaEtaMax(), HGCalShowerShape::sigmaPhiPhiMax(), HGCalShowerShape::sigmaRRMax(), HGCalShowerShape::sigmaRRMean(), and HGCalClusteringImpl::triggerCellReshuffling().
|
private |
Definition at line 295 of file HGCalTriggerTools.cc.
References HGCalTopology::dddConstants(), HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), geom_, HGCEE, HGCHEF, and HGCalDDDConstants::waferTypeL().
Referenced by thicknessIndex().
DetId HGCalTriggerTools::simToReco | ( | const DetId & | simid, |
const HGCalTopology & | topo | ||
) | const |
Definition at line 261 of file HGCalTriggerTools.cc.
References HGCalTopology::dddConstants(), HGCalTopology::detectorType(), HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, layer(), DetId::subdetId(), HGCalGeometryMode::Trapezoid, and HGCalTestNumbering::unpackHexagonIndex().
Referenced by HGCalTriggerNtupleHGCTriggerCells::simhits(), and HGCalTriggerNtupleHGCDigis::simhits().
DetId HGCalTriggerTools::simToReco | ( | const DetId & | simid, |
const HcalTopology & | topo | ||
) | const |
Definition at line 286 of file HGCalTriggerTools.cc.
References HcalTopology::dddConstants(), HcalEndcap, triggerObjects_cff::id, and HcalHitRelabeller::relabel().
int HGCalTriggerTools::thicknessIndex | ( | const DetId & | id, |
bool | tc = false |
||
) | const |
Definition at line 171 of file HGCalTriggerTools.cc.
References DetId::Forward, geom_, HGCalTriggerGeometryBase::getCellsFromTriggerCell(), DetId::HGCalEE, DetId::HGCalHSi, DetId::HGCalTrigger, mps_monitormerge::occurences, sensorCellThicknessV8(), HGCalTriggerDetId::type(), and HGCSiliconDetId::type().
Referenced by HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalConcentratorSuperTriggerCellImpl::getSuperTriggerCellId(), and HGCalVFESummationImpl::triggerCellSums().
int HGCalTriggerTools::zside | ( | const DetId & | id | ) | const |
Definition at line 155 of file HGCalTriggerTools.cc.
References DetId::Forward, DetId::Hcal, HcalEndcap, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, DetId::HGCalTrigger, HGCScintillatorDetId::zside(), HGCalDetId::zside(), HGCalTriggerDetId::zside(), HGCSiliconDetId::zside(), and HcalDetId::zside().
Referenced by HGCalMulticlusteringImpl::clusterizeDBSCAN(), HGCalHistoClusteringImpl::clusterSeedMulticluster(), HGCalTriggerNtupleHGCDigis::fill(), HGCalHistoSeedingImpl::fillHistoClusters(), HGCalTriggerTowerGeometryHelper::HGCalTriggerTowerGeometryHelper(), HGCalMulticlusteringImpl::isPertinent(), HGCalClusteringImpl::isPertinent(), and HGCalClusteringImpl::triggerCellReshuffling().
|
private |
Definition at line 89 of file HGCalTriggerTools.h.
Referenced by eventSetup(), and layers().
|
private |
Definition at line 87 of file HGCalTriggerTools.h.
Referenced by eventSetup(), layers(), and layerWithOffset().
|
private |
Definition at line 88 of file HGCalTriggerTools.h.
Referenced by eventSetup(), layers(), and layerWithOffset().
|
private |
Definition at line 86 of file HGCalTriggerTools.h.
Referenced by eventSetup(), getLayerZ(), getTCPosition(), layerWithOffset(), sensorCellThicknessV8(), and thicknessIndex().
|
private |
Definition at line 90 of file HGCalTriggerTools.h.
Referenced by eventSetup(), and layers().