#include <HGCalTriggerTools.h>
Public Member Functions | |
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 () | |
unsigned | lastLayerBH () const |
unsigned | lastLayerEE () const |
unsigned | lastLayerFH () const |
unsigned | layer (const DetId &) const |
unsigned | layers (ForwardSubdetector type) const |
unsigned | layerWithOffset (const DetId &) const |
~HGCalTriggerTools () | |
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 30 of file HGCalTriggerTools.h.
|
inline |
Definition at line 32 of file HGCalTriggerTools.h.
|
inline |
void HGCalTriggerTools::eventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 59 of file HGCalTriggerTools.cc.
References bhLayers_, HGCalTriggerGeometryBase::bhTopology(), HGCalTopology::dddConstants(), HcalTopology::dddConstants(), eeLayers_, HGCalTriggerGeometryBase::eeTopology(), fhLayers_, HGCalTriggerGeometryBase::fhTopology(), geom_, edm::EventSetup::get(), HcalDDDRecConstants::getMaxDepth(), HGCalDDDConstants::layers(), edm::ESHandle< T >::product(), and totalLayers_.
Referenced by HGCalMulticlusteringImpl::eventSetup(), HGCalTriggerCellCalibration::eventSetup(), HGCalShowerShape::eventSetup(), HGCalTowerMap2DImpl::eventSetup(), HGCalClusteringImpl::eventSetup(), HGCalTriggerNtupleHGCClusters::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), and HGCalTriggerNtupleHGCDigis::fill().
float HGCalTriggerTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 136 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 167 of file HGCalTriggerTools.cc.
References HcalEndcap, HGCEE, HGCHEF, lastLayerEE(), lastLayerFH(), and PFRecoTauDiscriminationByIsolation_cfi::offset.
float HGCalTriggerTools::getLayerZ | ( | const int & | subdet, |
const unsigned & | layer | ||
) | const |
Definition at line 180 of file HGCalTriggerTools.cc.
References HGCalTriggerGeometryBase::bhTopology(), HGCalTopology::dddConstants(), HcalTopology::dddConstants(), HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), geom_, HcalDDDRecConstants::getEtaRange(), HcalDDDRecConstants::getRZ(), HcalEndcap, HGCEE, HGCHEB, HGCHEF, and HGCalDDDConstants::waferZ().
float HGCalTriggerTools::getPhi | ( | const GlobalPoint & | position | ) | const |
Definition at line 146 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 156 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 141 of file HGCalTriggerTools.cc.
References getEta(), getTCPosition(), and position.
float HGCalTriggerTools::getTCPhi | ( | const DetId & | id | ) | const |
Definition at line 151 of file HGCalTriggerTools.cc.
References getPhi(), getTCPosition(), and position.
GlobalPoint HGCalTriggerTools::getTCPosition | ( | const DetId & | id | ) | const |
Definition at line 71 of file HGCalTriggerTools.cc.
References Exception, geom_, HGCalTriggerGeometryBase::getTriggerCellPosition(), DetId::Hcal, layers(), 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 162 of file HGCalTriggerTools.cc.
References getPt(), getTCPosition(), and position.
|
inline |
Definition at line 56 of file HGCalTriggerTools.h.
|
inline |
Definition at line 44 of file HGCalTriggerTools.h.
References position.
Referenced by HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
Definition at line 42 of file HGCalTriggerTools.h.
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D(), getLayerZ(), and HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
unsigned HGCalTriggerTools::layer | ( | const DetId & | id | ) | const |
Definition at line 111 of file HGCalTriggerTools.cc.
References HcalDetId::depth(), DetId::Forward, DetId::Hcal, HcalEndcap, HGCalDetId::layer(), layerWithOffset(), and SiStripPI::max.
Referenced by geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), layers(), and layerWithOffset().
unsigned HGCalTriggerTools::layers | ( | ForwardSubdetector | type | ) | const |
Definition at line 86 of file HGCalTriggerTools.cc.
References bhLayers_, eeLayers_, fhLayers_, ForwardEmpty, HGCEE, HGCHEB, HGCHEF, layer(), and totalLayers_.
Referenced by HGCalClusteringImpl::clusterizeNN(), HGCalShowerShape::coreShowerLength(), and getTCPosition().
unsigned HGCalTriggerTools::layerWithOffset | ( | const DetId & | id | ) | const |
Definition at line 125 of file HGCalTriggerTools.cc.
References eeLayers_, fhLayers_, DetId::Forward, DetId::Hcal, HcalEndcap, HGCHEB, HGCHEF, checklumidiff::l, and layer().
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), HGCalClusteringImpl::calibratePt(), HGCalShowerShape::eMax(), HGCalTriggerNtupleHGCClusters::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalTriggerNtupleHGCDigis::fill(), HGCalShowerShape::firstLayer(), HGCalShowerShape::lastLayer(), layer(), HGCalShowerShape::maxLayer(), HGCalShowerShape::sigmaEtaEtaMax(), HGCalShowerShape::sigmaPhiPhiMax(), HGCalShowerShape::sigmaRRMax(), HGCalShowerShape::sigmaRRMean(), and HGCalClusteringImpl::triggerCellReshuffling().
|
private |
Definition at line 67 of file HGCalTriggerTools.h.
Referenced by eventSetup(), and layers().
|
private |
Definition at line 65 of file HGCalTriggerTools.h.
Referenced by eventSetup(), layers(), and layerWithOffset().
|
private |
Definition at line 66 of file HGCalTriggerTools.h.
Referenced by eventSetup(), layers(), and layerWithOffset().
|
private |
Definition at line 64 of file HGCalTriggerTools.h.
Referenced by eventSetup(), getLayerZ(), and getTCPosition().
|
private |
Definition at line 68 of file HGCalTriggerTools.h.
Referenced by eventSetup(), and layers().