#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 |
unsigned | triggerLayer (const unsigned id) const |
int | zside (const DetId &) const |
~HGCalTriggerTools () | |
Static Public Attributes | |
static unsigned | kScintillatorPseudoThicknessIndex_ = 3 |
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 32 of file HGCalTriggerTools.h.
|
inline |
Definition at line 34 of file HGCalTriggerTools.h.
|
inline |
Definition at line 35 of file HGCalTriggerTools.h.
References hgcalTopologyTester_cfi::layers.
|
inline |
Definition at line 73 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(), HGCalTriggerClusterInterpretationEM::eventSetup(), HGCalConcentratorThresholdImpl::eventSetup(), HGCalConcentratorCoarsenerImpl::eventSetup(), HGCalClusteringDummyImpl::eventSetup(), HGCalCoarseTriggerCellMapping::eventSetup(), HGCalMulticlusteringImpl::eventSetup(), HGCalConcentratorBestChoiceImpl::eventSetup(), HGCalHistoClusteringImpl::eventSetup(), HGCalTriggerCellCalibration::eventSetup(), HGCalVFESummationImpl::eventSetup(), HGCalConcentratorSuperTriggerCellImpl::eventSetup(), HGCalShowerShape::eventSetup(), HGCalTowerMap2DImpl::eventSetup(), HGCalClusteringImpl::eventSetup(), HGCalHistoSeedingImpl::eventSetup(), HGCalTriggerNtupleHGCClusters::fill(), HGCalTriggerNtupleHGCDigis::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalTriggerNtupleGen::fill(), CaloTruthCellsProducer::produce(), and HGCalConcentratorProcessorSelection::run().
float HGCalTriggerTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 212 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 243 of file HGCalTriggerTools.cc.
References HcalEndcap, HGCEE, HGCHEF, lastLayerEE(), lastLayerFH(), and hltrates_dqm_sourceclient-live_cfg::offset.
Referenced by HGCalTriggerNtupleGen::fill().
float HGCalTriggerTools::getLayerZ | ( | const int & | subdet, |
const unsigned & | layer | ||
) | const |
Definition at line 256 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 222 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 232 of file HGCalTriggerTools.cc.
References PVValHelper::eta, getEta(), and DiDispStaMuonMonitor_cfi::pt.
Referenced by getTCPt().
float HGCalTriggerTools::getTCEta | ( | const DetId & | id, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 217 of file HGCalTriggerTools.cc.
References getEta(), getTCPosition(), and position.
float HGCalTriggerTools::getTCPhi | ( | const DetId & | id | ) | const |
Definition at line 227 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 HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellPosition(), getTCEta(), getTCPhi(), and getTCPt().
float HGCalTriggerTools::getTCPt | ( | const DetId & | id, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 238 of file HGCalTriggerTools.cc.
References getPt(), getTCPosition(), and position.
|
inline |
Definition at line 67 of file HGCalTriggerTools.h.
Referenced by HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), and HGCalCoarseTriggerCellMapping::getRepresentativeDetId().
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().
Referenced by HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalHistoSeedingImpl::fillHistoClusters(), and HGCalConcentratorProcessorSelection::run().
|
inline |
|
inline |
Definition at line 46 of file HGCalTriggerTools.h.
References ecaldqm::zside().
Referenced by HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), layerWithOffset(), HGCalConcentratorThresholdImpl::select(), thicknessIndex(), 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(), HGCalTriggerNtupleHGCTriggerCells::fill(), layerWithOffset(), and HGCalVFESummationImpl::triggerCellSums().
|
inline |
Definition at line 55 of file HGCalTriggerTools.h.
References position.
Referenced by HGCalHistoClusteringImpl::eventSetup(), HGCalTriggerNtupleGen::fill(), and HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
Definition at line 53 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(), layers(), and HGCalShowerShape::percentileLayer().
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(), cmsLHEtoEOSManager::l, and layer().
Referenced by HGCalTriggerValidator::analyze(), HGCalTowerMap2DImpl::buildTowerMap2D(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), HGCalClusteringDummyImpl::calibratePt(), HGCalClusteringImpl::calibratePt(), HGCalHistoClusteringImpl::clusterSeedMulticluster(), HGCalShowerShape::eMax(), HGCalTriggerNtupleHGCClusters::fill(), HGCalTriggerNtupleHGCDigis::fill(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalShowerShape::firstLayer(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalShowerShape::lastLayer(), HGCalShowerShape::maxLayer(), HGCalShowerShape::sigmaEtaEtaMax(), HGCalShowerShape::sigmaPhiPhiMax(), HGCalShowerShape::sigmaRRMax(), HGCalShowerShape::sigmaRRMean(), and HGCalClusteringImpl::triggerCellReshuffling().
|
private |
Definition at line 308 of file HGCalTriggerTools.cc.
References HGCalTopology::dddConstants(), HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), geom_, HGCEE, HGCHEF, Calorimetry_cff::thickness, and HGCalDDDConstants::waferTypeL().
Referenced by thicknessIndex().
DetId HGCalTriggerTools::simToReco | ( | const DetId & | simid, |
const HGCalTopology & | topo | ||
) | const |
Definition at line 274 of file HGCalTriggerTools.cc.
References HGCalTopology::dddConstants(), HGCalTopology::detectorType(), HGCalGeometryMode::Hexagon8, HGCalGeometryMode::Hexagon8Full, layer(), fileinputsource_cfi::sec, DetId::subdetId(), HGCalGeometryMode::Trapezoid, and HGCalTestNumbering::unpackHexagonIndex().
Referenced by CaloTruthCellsProducer::makeHitMap(), HGCalTriggerNtupleHGCDigis::simhits(), and HGCalTriggerNtupleHGCTriggerCells::simhits().
DetId HGCalTriggerTools::simToReco | ( | const DetId & | simid, |
const HcalTopology & | topo | ||
) | const |
Definition at line 299 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::det(), Exception, DetId::Forward, geom_, HGCalTriggerGeometryBase::getCellsFromTriggerCell(), DetId::HGCalEE, DetId::HGCalHSi, DetId::HGCalTrigger, isScintillator(), kScintillatorPseudoThicknessIndex_, mps_monitormerge::occurences, sensorCellThicknessV8(), Calorimetry_cff::thickness, HGCalTriggerDetId::type(), and HGCSiliconDetId::type().
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalConcentratorCoarsenerImpl::coarsen(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalConcentratorProcessorSelection::run(), and HGCalVFESummationImpl::triggerCellSums().
|
inline |
Definition at line 82 of file HGCalTriggerTools.h.
Referenced by HGCalTriggerClusterInterpretationEM::interpret().
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(), HGCalTriggerNtupleHGCTriggerCells::fill(), HGCalHistoSeedingImpl::fillHistoClusters(), HGCalTriggerTowerGeometryHelper::HGCalTriggerTowerGeometryHelper(), HGCalMulticlusteringImpl::isPertinent(), HGCalClusteringImpl::isPertinent(), and HGCalClusteringImpl::triggerCellReshuffling().
|
private |
Definition at line 90 of file HGCalTriggerTools.h.
Referenced by eventSetup(), and layers().
|
private |
Definition at line 88 of file HGCalTriggerTools.h.
Referenced by eventSetup(), layers(), and layerWithOffset().
|
private |
Definition at line 89 of file HGCalTriggerTools.h.
Referenced by eventSetup(), layers(), and layerWithOffset().
|
private |
Definition at line 87 of file HGCalTriggerTools.h.
Referenced by eventSetup(), getLayerZ(), getTCPosition(), layerWithOffset(), sensorCellThicknessV8(), and thicknessIndex().
|
static |
Definition at line 84 of file HGCalTriggerTools.h.
Referenced by thicknessIndex().
|
private |
Definition at line 91 of file HGCalTriggerTools.h.
Referenced by eventSetup(), and layers().