#include <HGCalTriggerTools.h>
Public Types | |
enum | SubDetectorType { hgcal_silicon_CEE, hgcal_silicon_CEH, hgcal_scintillator } |
Public Member Functions | |
template<typename T > | |
std::vector< T > | bxVectorToVector (const BXVector< T > &inputBXVector) |
void | eventSetup (const edm::EventSetup &, const edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > &) |
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 |
SubDetectorType | getSubDetectorType (const DetId &id) 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 | isNose (const DetId &) const |
bool | isScintillator (const DetId &id) const |
bool | isSilicon (const DetId &) const |
unsigned | lastLayer (bool nose=false) const |
unsigned | lastLayerBH () const |
unsigned | lastLayerEE (bool nose=false) const |
unsigned | lastLayerFH () const |
unsigned | lastLayerNose () const |
unsigned | layer (const DetId &) const |
unsigned | layers (ForwardSubdetector type) const |
unsigned | layers (DetId::Detector type) const |
unsigned | layerWithOffset (const DetId &) const |
void | setGeometry (const HGCalTriggerGeometryBase *const) |
DetId | simToReco (const DetId &, const HGCalTopology &) const |
int | thicknessIndex (const DetId &) const |
unsigned | triggerLayer (const unsigned id) const |
int | zside (const DetId &) const |
~HGCalTriggerTools () | |
Static Public Attributes | |
static constexpr unsigned | kScintillatorPseudoThicknessIndex_ = 3 |
Private Attributes | |
unsigned | bhLayers_ |
unsigned | eeLayers_ |
unsigned | fhLayers_ |
const HGCalTriggerGeometryBase * | geom_ |
unsigned | noseLayers_ |
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.
Enumerator | |
---|---|
hgcal_silicon_CEE | |
hgcal_silicon_CEH | |
hgcal_scintillator |
Definition at line 89 of file HGCalTriggerTools.h.
|
inline |
Definition at line 34 of file HGCalTriggerTools.h.
|
inline |
Definition at line 35 of file HGCalTriggerTools.h.
|
inline |
Definition at line 77 of file HGCalTriggerTools.h.
References BXVector< T >::begin(), and BXVector< T >::end().
void HGCalTriggerTools::eventSetup | ( | const edm::EventSetup & | es, |
const edm::ESGetToken< HGCalTriggerGeometryBase, CaloGeometryRecord > & | token | ||
) |
Definition at line 34 of file HGCalTriggerTools.cc.
References edm::EventSetup::getHandle(), edm::ESHandle< T >::product(), setGeometry(), and unpackBuffers-CaloStage2::token.
float HGCalTriggerTools::getEta | ( | const GlobalPoint & | position, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 244 of file HGCalTriggerTools.cc.
References PV3DBase< T, PVType, FrameType >::eta(), and position.
Referenced by getPt(), and getTCEta().
float HGCalTriggerTools::getLayerZ | ( | const unsigned & | layerWithOffset | ) | const |
Definition at line 275 of file HGCalTriggerTools.cc.
References HcalEndcap, HGCEE, HGCHEF, lastLayerEE(), lastLayerFH(), layerWithOffset(), and hltrates_dqm_sourceclient-live_cfg::offset.
float HGCalTriggerTools::getLayerZ | ( | const int & | subdet, |
const unsigned & | layer | ||
) | const |
Definition at line 289 of file HGCalTriggerTools.cc.
References HGCalTopology::dddConstants(), HGCalTriggerGeometryBase::eeTopology(), HGCalTriggerGeometryBase::fhTopology(), geom_, HFNose, DetId::HGCalEE, DetId::HGCalHSc, DetId::HGCalHSi, HGCEE, HGCHEB, HGCHEF, HGCalTriggerGeometryBase::hscTopology(), layer(), HGCalTriggerGeometryBase::noseTopology(), and HGCalDDDConstants::waferZ().
float HGCalTriggerTools::getPhi | ( | const GlobalPoint & | position | ) | const |
float HGCalTriggerTools::getPt | ( | const GlobalPoint & | position, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 264 of file HGCalTriggerTools.cc.
References PVValHelper::eta, getEta(), position, and DiDispStaMuonMonitor_cfi::pt.
Referenced by getTCPt().
HGCalTriggerTools::SubDetectorType HGCalTriggerTools::getSubDetectorType | ( | const DetId & | id | ) | const |
Definition at line 188 of file HGCalTriggerTools.cc.
References hgcal_scintillator, hgcal_silicon_CEE, hgcal_silicon_CEH, isEm(), and isScintillator().
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), and HGCalConcentratorProcessorSelection::run().
float HGCalTriggerTools::getTCEta | ( | const DetId & | id, |
const float & | vertex_z = 0. |
||
) | const |
Definition at line 249 of file HGCalTriggerTools.cc.
References getEta(), getTCPosition(), and position.
float HGCalTriggerTools::getTCPhi | ( | const DetId & | id | ) | const |
Definition at line 259 of file HGCalTriggerTools.cc.
References getPhi(), getTCPosition(), and position.
GlobalPoint HGCalTriggerTools::getTCPosition | ( | const DetId & | id | ) | const |
Definition at line 51 of file HGCalTriggerTools.cc.
References Exception, geom_, HGCalTriggerGeometryBase::getTriggerCellPosition(), DetId::HGCalEE, and position.
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellPosition(), getTCEta(), getTCPhi(), getTCPt(), and HGCalConcentratorAutoEncoderImpl::select().
float HGCalTriggerTools::getTCPt | ( | const DetId & | id, |
const float & | hitEnergy, | ||
const float & | vertex_z = 0. |
||
) | const |
Definition at line 270 of file HGCalTriggerTools.cc.
References getPt(), getTCPosition(), and position.
|
inline |
Definition at line 71 of file HGCalTriggerTools.h.
References geom_.
Referenced by HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), HGCalConcentratorTrigSumImpl::doSum(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalCoarseTriggerCellMapping::getRepresentativeDetId(), HGCalConcentratorAutoEncoderImpl::select(), and HGCalVFESummationImpl::triggerCellSums().
bool HGCalTriggerTools::isEm | ( | const DetId & | id | ) | const |
Definition at line 141 of file HGCalTriggerTools.cc.
References DetId::Forward, HFNose, HFNoseTrigger, DetId::HGCalEE, HGCalEETrigger, DetId::HGCalTrigger, HGCTrigger, HGCalTriggerModuleDetId::isEE(), HFNoseTriggerDetId::isEE(), and HFNoseDetId::isEE().
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalHistoSeedingImpl::fillHistoClusters(), getSubDetectorType(), isHad(), HGCalVFEProcessorSums::run(), and HGCalConcentratorProcessorSelection::run().
|
inline |
Definition at line 48 of file HGCalTriggerTools.h.
References isEm().
Referenced by layerWithOffset().
bool HGCalTriggerTools::isNose | ( | const DetId & | id | ) | const |
Definition at line 160 of file HGCalTriggerTools.cc.
References DetId::Forward, HFNose, HFNoseTrigger, and DetId::HGCalTrigger.
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalTowerMap2DImpl::buildTowerMap2D(), HGCalClusteringDummyImpl::calibratePt(), HGCalShowerShape::coreShowerLength(), layerWithOffset(), HGCalShowerShape::percentileLayer(), and HGCalVFEProcessorSums::run().
|
inline |
Definition at line 50 of file HGCalTriggerTools.h.
References isSilicon().
Referenced by HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), getSubDetectorType(), HGCalConcentratorThresholdImpl::select(), HGCalConcentratorAutoEncoderImpl::select(), thicknessIndex(), and HGCalVFESummationImpl::triggerCellSums().
bool HGCalTriggerTools::isSilicon | ( | const DetId & | id | ) | const |
Definition at line 171 of file HGCalTriggerTools.cc.
References DetId::Forward, HFNoseTrigger, DetId::HGCalEE, HGCalEETrigger, HGCalHScTrigger, DetId::HGCalHSi, HGCalHSiTrigger, DetId::HGCalTrigger, HGCTrigger, HGCalTriggerDetId::subdet(), and HGCalTriggerModuleDetId::triggerSubdetId().
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalTriggerCellCalibration::calibrateInMipT(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), isScintillator(), HGCalVFEProcessorSums::run(), and HGCalVFESummationImpl::triggerCellSums().
|
inline |
Definition at line 59 of file HGCalTriggerTools.h.
References noseLayers_, and totalLayers_.
Referenced by HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
Definition at line 57 of file HGCalTriggerTools.h.
References totalLayers_.
Referenced by HGCalHistoClusteringWrapper::configure(), and HGCalHistoClusteringImpl::setGeometry().
|
inline |
Definition at line 55 of file HGCalTriggerTools.h.
References eeLayers_, and HFNoseDetId::HFNoseLayerEEmax.
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D(), getLayerZ(), and HGCalTowerMap2DImpl::newTowerMaps().
|
inline |
Definition at line 56 of file HGCalTriggerTools.h.
References eeLayers_, and fhLayers_.
Referenced by getLayerZ().
|
inline |
unsigned HGCalTriggerTools::layer | ( | const DetId & | id | ) | const |
Definition at line 108 of file HGCalTriggerTools.cc.
References DetId::Forward, HFNose, HFNoseTrigger, DetId::HGCalEE, HGCalEETrigger, DetId::HGCalHSc, DetId::HGCalHSi, HGCalHSiTrigger, DetId::HGCalTrigger, HGCTrigger, HGCScintillatorDetId::layer(), HGCalTriggerDetId::layer(), HFNoseTriggerDetId::layer(), HGCSiliconDetId::layer(), HFNoseDetId::layer(), HGCalTriggerModuleDetId::layer(), and SiStripPI::max.
Referenced by getLayerZ(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), HGCalClusteringImpl::isPertinent(), and layerWithOffset().
unsigned HGCalTriggerTools::layers | ( | ForwardSubdetector | type | ) | const |
Definition at line 62 of file HGCalTriggerTools.cc.
References bhLayers_, eeLayers_, fhLayers_, ForwardEmpty, HFNose, HGCEE, HGCHEB, HGCHEF, noseLayers_, and totalLayers_.
Referenced by HGCalClusteringImpl::clusterizeNN(), HGCalShowerShape::coreShowerLength(), layers(), and HGCalShowerShape::percentileLayer().
unsigned HGCalTriggerTools::layers | ( | DetId::Detector | type | ) | const |
Definition at line 86 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 129 of file HGCalTriggerTools.cc.
References eeLayers_, isHad(), isNose(), cmsLHEtoEOSManager::l, and layer().
Referenced by HGCalTowerMap2DImpl::buildTowerMap2D(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), HGCalClusteringDummyImpl::calibratePt(), HGCalClusteringImpl::calibratePt(), HGCalHistoClusteringImpl::clusterSeedMulticluster(), HGCalStage1TruncationWrapper::convertCMSSWInputs(), HGCalSortingTruncationWrapper::convertCMSSWInputs(), HGCalHistoClusteringWrapper::convertCMSSWInputs(), HGCalShowerShape::eMax(), HGCalShowerShape::firstLayer(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), getLayerZ(), HGCalShowerShape::lastLayer(), HGCalShowerShape::maxLayer(), HGCalShowerShape::sigmaEtaEtaMax(), HGCalShowerShape::sigmaPhiPhiMax(), HGCalShowerShape::sigmaRRMax(), HGCalShowerShape::sigmaRRMean(), and HGCalClusteringImpl::triggerCellReshuffling().
void HGCalTriggerTools::setGeometry | ( | const HGCalTriggerGeometryBase * const | geom | ) |
Definition at line 40 of file HGCalTriggerTools.cc.
References bhLayers_, HGCalTopology::dddConstants(), eeLayers_, HGCalTriggerGeometryBase::eeTopology(), fhLayers_, HGCalTriggerGeometryBase::fhTopology(), relativeConstraints::geom, geom_, HGCalTriggerGeometryBase::hscTopology(), HGCalTriggerGeometryBase::isWithNoseGeometry(), HGCalDDDConstants::layers(), noseLayers_, HGCalTriggerGeometryBase::noseTopology(), and totalLayers_.
Referenced by eventSetup(), CaloTruthCellsProducer::produce(), HGCalVFEProcessorSums::run(), HGCalConcentratorProcessorSelection::run(), HGCalTriggerCellCalibration::setGeometry(), HGCalTriggerClusterInterpretationEM::setGeometry(), HGCalStage1TruncationImpl::setGeometry(), HGCalConcentratorCoarsenerImpl::setGeometry(), HGCalVFESummationImpl::setGeometry(), HGCalConcentratorThresholdImpl::setGeometry(), HGCalClusteringDummyImpl::setGeometry(), HGCalCoarseTriggerCellMapping::setGeometry(), HGCalMulticlusteringImpl::setGeometry(), HGCalConcentratorTrigSumImpl::setGeometry(), HGCalHistoClusteringImpl::setGeometry(), HGCalConcentratorBestChoiceImpl::setGeometry(), HGCalConcentratorSuperTriggerCellImpl::setGeometry(), HGCalShowerShape::setGeometry(), HGCalConcentratorAutoEncoderImpl::setGeometry(), HGCalClusteringImpl::setGeometry(), HGCalStage1TruncationWrapper::setGeometry(), HGCalSortingTruncationWrapper::setGeometry(), HGCalTriggerTowerGeometryHelper::setGeometry(), HGCalHistoClusteringWrapper::setGeometry(), HGCalTowerMap2DImpl::setGeometry(), and HGCalHistoSeedingImpl::setGeometry().
DetId HGCalTriggerTools::simToReco | ( | const DetId & | simid, |
const HGCalTopology & | topo | ||
) | const |
Definition at line 303 of file HGCalTriggerTools.cc.
References HGCalTopology::dddConstants().
Referenced by CaloTruthCellsProducer::makeHitMap().
int HGCalTriggerTools::thicknessIndex | ( | const DetId & | id | ) | const |
Definition at line 221 of file HGCalTriggerTools.cc.
References DetId::Forward, HFNose, HFNoseTrigger, DetId::HGCalEE, HGCalEETrigger, DetId::HGCalHSi, HGCalHSiTrigger, DetId::HGCalTrigger, HGCTrigger, isScintillator(), kScintillatorPseudoThicknessIndex_, Calorimetry_cff::thickness, HFNoseTriggerDetId::type(), HGCalTriggerDetId::type(), HFNoseDetId::type(), HGCSiliconDetId::type(), and HGCalTriggerModuleDetId::type().
Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalTriggerCellCalibration::calibrateInMipT(), HGCalTriggerCellCalibration::calibrateMipTinGeV(), HGCalConcentratorCoarsenerImpl::coarsen(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId(), HGCalCoarseTriggerCellMapping::getConstituentTriggerCells(), HGCalVFEProcessorSums::run(), HGCalConcentratorProcessorSelection::run(), and HGCalVFESummationImpl::triggerCellSums().
|
inline |
Definition at line 85 of file HGCalTriggerTools.h.
References geom_, and HGCalTriggerGeometryBase::triggerLayer().
Referenced by HGCalTriggerClusterInterpretationEM::interpret().
int HGCalTriggerTools::zside | ( | const DetId & | id | ) | const |
Definition at line 200 of file HGCalTriggerTools.cc.
References DetId::Forward, HFNose, HFNoseTrigger, DetId::HGCalEE, HGCalEETrigger, DetId::HGCalHSc, DetId::HGCalHSi, HGCalHSiTrigger, DetId::HGCalTrigger, HGCTrigger, HGCScintillatorDetId::zside(), HGCalTriggerDetId::zside(), HFNoseTriggerDetId::zside(), HFNoseDetId::zside(), HGCSiliconDetId::zside(), and HGCalTriggerModuleDetId::zside().
Referenced by HGCalMulticlusteringImpl::clusterizeDBSCAN(), HGCalHistoClusteringImpl::clusterSeedMulticluster(), HGCalStage1TruncationWrapper::convertCMSSWInputs(), HGCalSortingTruncationWrapper::convertCMSSWInputs(), HGCalHistoClusteringWrapper::convertCMSSWInputs(), HGCalHistoSeedingImpl::fillHistoClusters(), HGCalTriggerTowerGeometryHelper::HGCalTriggerTowerGeometryHelper(), HGCalMulticlusteringImpl::isPertinent(), HGCalClusteringImpl::isPertinent(), and HGCalClusteringImpl::triggerCellReshuffling().
|
private |
Definition at line 100 of file HGCalTriggerTools.h.
Referenced by layers(), and setGeometry().
|
private |
Definition at line 98 of file HGCalTriggerTools.h.
Referenced by lastLayerEE(), lastLayerFH(), layers(), layerWithOffset(), and setGeometry().
|
private |
Definition at line 99 of file HGCalTriggerTools.h.
Referenced by lastLayerFH(), layers(), and setGeometry().
|
private |
Definition at line 97 of file HGCalTriggerTools.h.
Referenced by getLayerZ(), getTCPosition(), getTriggerGeometry(), setGeometry(), and triggerLayer().
|
static |
Definition at line 87 of file HGCalTriggerTools.h.
Referenced by thicknessIndex().
|
private |
Definition at line 101 of file HGCalTriggerTools.h.
Referenced by lastLayer(), lastLayerNose(), layers(), and setGeometry().
|
private |
Definition at line 102 of file HGCalTriggerTools.h.
Referenced by lastLayer(), lastLayerBH(), layers(), and setGeometry().