![]() |
![]() |
#include <HcalDetId.h>
Public Member Functions | |
int | crystal_ieta_high () const |
get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) | |
int | crystal_ieta_low () const |
get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) | |
int | crystal_iphi_high () const |
get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) | |
int | crystal_iphi_low () const |
get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) | |
int | depth () const |
get the tower depth | |
HcalDetId () | |
HcalDetId (const DetId &id) | |
HcalDetId (uint32_t rawid) | |
HcalDetId (HcalSubdetector subdet, int tower_ieta, int tower_iphi, int depth) | |
int | ieta () const |
get the cell ieta | |
int | ietaAbs () const |
get the absolute value of the cell ieta | |
int | iphi () const |
get the cell iphi | |
HcalDetId & | operator= (const DetId &id) |
HcalSubdetector | subdet () const |
get the subdetector | |
int | zside () const |
get the z-side of the cell (1/-1) | |
Static Public Attributes | |
static const HcalDetId | Undefined |
Cell identifier class for the HCAL subdetectors, precision readout cells only
Rev.1.11: A.Kubik,R.Ofierzynski: add the hashed_index
Definition at line 18 of file HcalDetId.h.
HcalDetId::HcalDetId | ( | ) |
HcalDetId::HcalDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 10 of file HcalDetId.cc.
: DetId(rawid) { }
HcalDetId::HcalDetId | ( | HcalSubdetector | subdet, |
int | tower_ieta, | ||
int | tower_iphi, | ||
int | depth | ||
) |
Constructor from subdetector, signed tower ieta,iphi,and depth
Definition at line 13 of file HcalDetId.cc.
References DetId::id_.
HcalDetId::HcalDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 20 of file HcalDetId.cc.
References DetId::det(), Exception, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().
{ if (!gen.null()) { HcalSubdetector subdet=(HcalSubdetector(gen.subdetId())); if (gen.det()!=Hcal || (subdet!=HcalBarrel && subdet!=HcalEndcap && subdet!=HcalOuter && subdet!=HcalForward )) { throw cms::Exception("Invalid DetId") << "Cannot initialize HcalDetId from " << std::hex << gen.rawId() << std::dec; } } id_=gen.rawId(); }
int HcalDetId::crystal_ieta_high | ( | ) | const [inline] |
get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 46 of file HcalDetId.h.
References ieta(), and zside().
Referenced by CaloTowerConstituentsMap::constituentsOf().
int HcalDetId::crystal_ieta_low | ( | ) | const [inline] |
get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 44 of file HcalDetId.h.
References ieta(), and zside().
Referenced by CaloTowerConstituentsMap::constituentsOf().
int HcalDetId::crystal_iphi_high | ( | ) | const |
get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 52 of file HcalDetId.cc.
References iphi().
Referenced by CaloTowerConstituentsMap::constituentsOf().
{ int simple_iphi=((iphi()-1)*5)+5; simple_iphi+=10; return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi)); }
int HcalDetId::crystal_iphi_low | ( | ) | const |
get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 46 of file HcalDetId.cc.
References iphi().
Referenced by CaloTowerConstituentsMap::constituentsOf().
{ int simple_iphi=((iphi()-1)*5)+1; simple_iphi+=10; return ((simple_iphi>360)?(simple_iphi-360):(simple_iphi)); }
int HcalDetId::depth | ( | ) | const [inline] |
get the tower depth
Definition at line 42 of file HcalDetId.h.
References DetId::id_.
Referenced by HcalTriggerPrimitiveAlgo::addSignal(), CaloHitResponse::analogSignalAmplitude(), HCALRecHitAnalyzer::analyze(), HFLightCalRand::analyze(), DQMHcalPhiSymAlCaReco::analyze(), cms::DiJetAnalyzer::analyze(), HFLightCal::analyze(), JetToDigiDump::analyze(), cms::HcalConstantsASCIIWriter::analyze(), cms::Analyzer_minbias::analyze(), HFPreLightCal::analyze(), CaloTowersCreationAlgo::assignHit(), CaloRecHitCandidateProducer::cellTresholdAndWeight(), HcalDetDiagLEDMonitor::CheckStatus(), HcalDetDiagPedestalMonitor::CheckStatus(), reco::helper::JetIDHelper::classifyJetComponents(), Digi2Raw2Digi::compare(), HcalTopology::detId2denseId(), HcalTopology::detId2denseIdHB(), HcalTopology::detId2denseIdHE(), HcalTopology::detId2denseIdHF(), HcalTopology::detId2denseIdPreLS1(), cond::HcalValidationCorrsDataRepr::doFillIn(), cond::HcalPedestalsDataRepr::doFillIn(), cond::HcalGainWidthsDataRepr::doFillIn(), cond::HcalLUTCorrsDataRepr::doFillIn(), cond::HcalLutMetadataDataRepr::doFillIn(), cond::HcalRespCorrsDataRepr::doFillIn(), cond::HcalPFCorrsDataRepr::doFillIn(), cond::HcalTimeCorrsDataRepr::doFillIn(), cond::HcalQIEDataDataRepr::doFillIn(), cond::HcalZSThresholdsDataRepr::doFillIn(), cms::MinBias::endJob(), ChannelPattern::Fill_by_hand(), HcalFlexiHardcodeGeometryLoader::fillHBHO(), HcalDetDiagLEDMonitor::fillHistos(), HcalObjRepresent::fillOneGain(), HcalDetDiagLaserMonitor::fillProblems(), CaloGeometryHelper::getClosestCell(), HcalChannelIterator::getDepth(), HcalLedAnalysis::GetLedConst(), HcaluLUTTPGCoder::getLUTId(), ParticleTowerProducer::getNearestTower(), CaloTowersCreationAlgo::getThresholdAndWeight(), CalorimetryManager::HDShowerSimulation(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HcalTopology::incrementDepth(), fireworks::info(), DetIdInfo::info(), HcalText2DetIdConverter::init(), HcalLedAnalysis::LedTrendings(), CastorDbHardcode::makeGain(), CaloTowersCreationAlgo::makeHcalDropChMap(), HcalRawDataClient::mapChannproblem(), HcalRawDataMonitor::mapChannproblem(), HcalRawDataMonitor::mapDCCproblem(), HcalRawDataClient::mapDCCproblem(), HcalRawDataMonitor::mapHTRproblem(), HcalRawDataClient::mapHTRproblem(), CastorDbASCIIIO::DetIdLess::operator()(), HcalPedestalAnalysis::per2CapsHists(), cond::PayLoadInspector< DataT >::plot(), HOHXLogicalMapEntry::printLMapLine(), HBHEHFLogicalMapEntry::printLMapLine(), printTableLine(), HcalCableMapper::process(), HcalDigiMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalHardcodeCalibrations::produceRespCorrs(), HcalDigiTester::reco(), HcalDigisValidation::reco(), CaloTowersCreationAlgo::rescale(), ParticleTowerProducer::resetTowers(), HcalDetDiagPedestalMonitor::SaveReference(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagLaserMonitor::SaveReference(), HcalLedAnalysis::SetupLEDHists(), HcalSimParameterMap::simParameters(), hcalCalib::Terminate(), HcalTrigTowerGeometry::towerIds(), and HcalPedestalAnalysis::Trendings().
{ return (id_>>14)&0x1F; }
int HcalDetId::ieta | ( | ) | const [inline] |
get the cell ieta
Definition at line 38 of file HcalDetId.h.
References ietaAbs(), and zside().
Referenced by HcalGeometry::alignmentBarEndForIndexLocal(), HcalGeometry::alignmentOuterIndexLocal(), CaloHitResponse::analogSignalAmplitude(), HCALRecHitAnalyzer::analyze(), HFLightCalRand::analyze(), IsoTrig::analyze(), IsolatedTracksHcalScale::analyze(), HcalIsoTrkAnalyzer::analyze(), DQMHcalPhiSymAlCaReco::analyze(), cms::DiJetAnalyzer::analyze(), HcalCorrPFCalculation::analyze(), HFLightCal::analyze(), JetToDigiDump::analyze(), HcalNoiseMonitor::analyze(), cms::HcalConstantsASCIIWriter::analyze(), cms::Analyzer_minbias::analyze(), ValidIsoTrkCalib::analyze(), HFPreLightCal::analyze(), myJetAna::analyze(), MuonHOAcceptance::buildDeadAreas(), MuonHOAcceptance::buildSiPMAreas(), HcalHaloAlgo::Calculate(), HcalDetDiagLEDMonitor::CheckStatus(), HcalDetDiagPedestalMonitor::CheckStatus(), reco::helper::JetIDHelper::classifyJetComponents(), PFClusterAlgo::cleanRBXAndHPD(), crystal_ieta_high(), crystal_ieta_low(), HcalTopology::detId2denseId(), HcalTopology::detId2denseIdHB(), HcalTopology::detId2denseIdHE(), cms::MinBias::endJob(), HCALRecHitAnalyzer::FillGeometry(), HcalFlexiHardcodeGeometryLoader::fillHBHO(), HcalDetDiagLEDMonitor::fillHistos(), HcalObjRepresent::fillOneGain(), HcalDetDiagLaserMonitor::fillProblems(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), reco::CentralityProducer::filter(), TrackDetMatchInfo::findMaxDeposition(), CaloGeometryHelper::getClosestCell(), hcalCalib::GetCoefFromMtrxInvOfAve(), HBHEHitMapOrganizer::getHPDNeighbors(), HcalChannelIterator::getIeta(), HcaluLUTTPGCoder::getLUTId(), CaloTowersCreationAlgo::getThresholdAndWeight(), HBHEHitMapOrganizer::HBHEHitMapOrganizer(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HcalTopology::incrementDepth(), fireworks::info(), DetIdInfo::info(), HcalText2DetIdConverter::init(), HcalRecHitsMaker::init(), HcalLedAnalysis::LedTrendings(), HFClusterAlgo::makeCluster(), HcalRawDataClient::mapChannproblem(), HcalRawDataMonitor::mapChannproblem(), HcalRawDataMonitor::mapDCCproblem(), HcalRawDataClient::mapDCCproblem(), HcalRawDataMonitor::mapHTRproblem(), HcalRawDataClient::mapHTRproblem(), HcalRecHitsMaker::noiseInfCfromDB(), TrackDetMatchInfo::nXnEnergy(), HcalPedestalAnalysis::per2CapsHists(), cond::PayLoadInspector< DataT >::plot(), printTableLine(), HcalDeadCellMonitor::process_RecHit(), HcalDigiMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalBeamMonitor::processEvent(), HcalRecHitMonitor::processEvent_rechit(), HcalHotCellMonitor::processEvent_rechitenergy(), HcalHotCellMonitor::processHit_rechitNeighbors(), AlCaHOCalibProducer::produce(), HcalHardcodeCalibrations::produceRespCorrs(), HcalDigisValidation::reco(), HcalDigiTester::reco(), HcalSimpleRecAlgoImpl::reco(), HcalDetDiagPedestalMonitor::SaveReference(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagLaserMonitor::SaveReference(), HcalLedAnalysis::SetupLEDHists(), hcalCalib::Terminate(), HcalTrigTowerGeometry::towerIds(), CaloTowerConstituentsMap::towerOf(), HcalPedestalAnalysis::Trendings(), and HcalUnpacker::unpack().
int HcalDetId::ietaAbs | ( | ) | const [inline] |
get the absolute value of the cell ieta
Definition at line 36 of file HcalDetId.h.
References DetId::id_.
Referenced by CaloTowersCreationAlgo::assignHit(), HBHEHitMap::calcHits_(), CaloRecHitCandidateProducer::cellTresholdAndWeight(), HcalTopology::detId2denseIdHB(), HcalTopology::detId2denseIdHE(), HcalTopology::detId2denseIdHF(), HcalTopology::detId2denseIdHO(), HcalTopology::detId2denseIdPreLS1(), ChannelPattern::Fill_by_hand(), CaloGeometryHelper::getClosestCell(), HcalLedAnalysis::GetLedConst(), CaloTowersCreationAlgo::getThresholdAndWeight(), CalorimetryManager::HDShowerSimulation(), ieta(), HcalTopology::incrementDepth(), HFClusterAlgo::makeCluster(), CaloTowersCreationAlgo::makeHcalDropChMap(), CastorDbASCIIIO::DetIdLess::operator()(), HcalSimParameters::photoelectronsToAnalog(), HOHXLogicalMapEntry::printLMapLine(), HBHEHFLogicalMapEntry::printLMapLine(), HcalCableMapper::process(), HcalSimParameters::samplingFactor(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), hcalCalib::Terminate(), HcalTrigTowerGeometry::towerIds(), CaloTowerConstituentsMap::towerOf(), and ObjectValidator::validHit().
{ return (id_>>7)&0x3f; }
int HcalDetId::iphi | ( | ) | const [inline] |
get the cell iphi
Definition at line 40 of file HcalDetId.h.
References DetId::id_.
Referenced by HcalGeometry::alignmentBarEndForIndexLocal(), HcalGeometry::alignmentOuterIndexLocal(), CaloHitResponse::analogSignalAmplitude(), HCALRecHitAnalyzer::analyze(), HFLightCalRand::analyze(), IsolatedTracksHcalScale::analyze(), HcalIsoTrkAnalyzer::analyze(), DQMHcalPhiSymAlCaReco::analyze(), HFLightCal::analyze(), HcalCorrPFCalculation::analyze(), cms::DiJetAnalyzer::analyze(), JetToDigiDump::analyze(), cms::Analyzer_minbias::analyze(), cms::HcalConstantsASCIIWriter::analyze(), HFPreLightCal::analyze(), ValidIsoTrkCalib::analyze(), MuonHOAcceptance::buildDeadAreas(), MuonHOAcceptance::buildSiPMAreas(), HcalDetDiagLEDMonitor::CheckStatus(), HcalDetDiagPedestalMonitor::CheckStatus(), PFClusterAlgo::cleanRBXAndHPD(), crystal_iphi_high(), crystal_iphi_low(), HcalTopology::detId2denseId(), HcalTopology::detId2denseIdHB(), HcalTopology::detId2denseIdHE(), HcalTopology::detId2denseIdHF(), HcalTopology::detId2denseIdHO(), HcalTopology::detId2denseIdPreLS1(), cms::MinBias::endJob(), ChannelPattern::Fill_by_hand(), HcalFlexiHardcodeGeometryLoader::fillHBHO(), HcalDetDiagLEDMonitor::fillHistos(), HcalObjRepresent::fillOneGain(), HcalDetDiagLaserMonitor::fillProblems(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), TrackDetMatchInfo::findMaxDeposition(), CaloGeometryHelper::getClosestCell(), HBHEHitMapOrganizer::getHPDNeighbors(), HcalChannelIterator::getIphi(), HcalLedAnalysis::GetLedConst(), HcaluLUTTPGCoder::getLUTId(), HBHEHitMapOrganizer::HBHEHitMapOrganizer(), HcalHF_PETalgorithm::HFSetFlagFromPET(), HcalHF_S9S1algorithm::HFSetFlagFromS9S1(), HcalTopology::incrementDepth(), fireworks::info(), DetIdInfo::info(), HcalText2DetIdConverter::init(), HcalLedAnalysis::LedTrendings(), HFClusterAlgo::makeCluster(), HcalRawDataClient::mapChannproblem(), HcalRawDataMonitor::mapChannproblem(), HcalRawDataMonitor::mapDCCproblem(), HcalRawDataClient::mapDCCproblem(), HcalRawDataMonitor::mapHTRproblem(), HcalRawDataClient::mapHTRproblem(), TrackDetMatchInfo::nXnEnergy(), CastorDbASCIIIO::DetIdLess::operator()(), HcalPedestalAnalysis::per2CapsHists(), cond::PayLoadInspector< DataT >::plot(), HOHXLogicalMapEntry::printLMapLine(), HBHEHFLogicalMapEntry::printLMapLine(), printTableLine(), HcalCableMapper::process(), HcalDigiMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalBeamMonitor::processEvent(), AlCaHOCalibProducer::produce(), HcalDetDiagPedestalMonitor::SaveReference(), HcalDetDiagLEDMonitor::SaveReference(), HcalDetDiagLaserMonitor::SaveReference(), HcalLedAnalysis::SetupLEDHists(), hcalCalib::Terminate(), HcalTrigTowerGeometry::towerIds(), CaloTowerConstituentsMap::towerOf(), HcalPedestalAnalysis::Trendings(), and HcalUnpacker::unpack().
{ return id_&0x7F; }
Assignment from a generic cell id
Definition at line 32 of file HcalDetId.cc.
References DetId::det(), Exception, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, DetId::id_, DetId::null(), DetId::rawId(), subdet(), and DetId::subdetId().
{ if (!gen.null()) { HcalSubdetector subdet=(HcalSubdetector(gen.subdetId())); if (gen.det()!=Hcal || (subdet!=HcalBarrel && subdet!=HcalEndcap && subdet!=HcalOuter && subdet!=HcalForward )) { throw cms::Exception("Invalid DetId") << "Cannot assign HcalDetId from " << std::hex << gen.rawId() << std::dec; } } id_=gen.rawId(); return (*this); }
HcalSubdetector HcalDetId::subdet | ( | ) | const [inline] |
get the subdetector
Definition at line 32 of file HcalDetId.h.
References DetId::subdetId().
Referenced by HFHitFilter::accepts(), HcalGeometry::alignmentTransformIndexLocal(), CaloHitResponse::analogSignalAmplitude(), HFLightCalRand::analyze(), HCALRecHitAnalyzer::analyze(), HFLightCal::analyze(), CaloTowersValidation::analyze(), JetToDigiDump::analyze(), HcalRecHitsValidation::analyze(), CaloTowersAnalyzer::analyze(), HFPreLightCal::analyze(), CaloTowersCreationAlgo::assignHit(), CaloRecHitCandidateProducer::cellTresholdAndWeight(), reco::helper::JetIDHelper::classifyJetComponents(), reco::helper::JetIDHelper::classifyJetTowers(), CaloTowersCreationAlgo::convert(), HcalPulseShapes::defaultShape(), HcalTimeSlewSim::delay(), HcalTopology::detId2denseId(), HcalTopology::detId2denseIdPreLS1(), cms::MinBias::endJob(), ChannelPattern::Fill_by_hand(), HcalObjRepresent::fillOneGain(), HcalLaserHBHEHFFilter2012::filter(), HcalLaserHBHEFilter2012::filter(), HcalChannelIterator::getHcalSubdetector(), HcalLedAnalysis::GetLedConst(), HcaluLUTTPGCoder::getLUTId(), CaloTowersCreationAlgo::getThresholdAndWeight(), CaloTowersCreationAlgo::hadShwrPos(), HcalDetId(), HcalTopology::incrementDepth(), fireworks::info(), DetIdInfo::info(), HcalRecHitsMaker::loadHcalRecHits(), HcalGeometry::localCorners(), HcalDDDGeometryLoader::makeCell(), CaloTowersCreationAlgo::makeHcalDropChMap(), SignCaloSpecificAlgo::makeVectorOutOfCaloTowers(), HcalRawDataClient::mapChannproblem(), HcalRawDataMonitor::mapChannproblem(), HcalRawDataMonitor::mapDCCproblem(), HcalRawDataClient::mapDCCproblem(), HcalRawDataMonitor::mapHTRproblem(), HcalRawDataClient::mapHTRproblem(), HcalRecHitsMaker::noiseInfCfromDB(), operator=(), cond::PayLoadInspector< DataT >::plot(), HOHXLogicalMapEntry::printLMapLine(), HBHEHFLogicalMapEntry::printLMapLine(), HcalCableMapper::process(), HcalDigiMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalDigiTester::reco(), HcalDigisValidation::reco(), CaloTowersCreationAlgo::rescale(), CaloTowersCreationAlgo::rescaleTowers(), HcalSimParameterMap::setFrameSize(), HcalZSAlgoRealistic::shouldKeep(), HcalTBSimParameterMap::simParameters(), HcalSimParameterMap::simParameters(), hcalCalib::Terminate(), HcalTrigTowerGeometry::towerIds(), CaloTowerConstituentsMap::towerOf(), CaloSpecificAlgo::update_HadEtInHB_HadEtInHE_HadEtInHO_HadEtInHF_EmEtInHF(), CaloSpecificAlgo::update_MaxTowerEm_MaxTowerHad(), CaloSpecificAlgo::update_sumEtInpHF_MExInpHF_MEyInpHF_sumEtInmHF_MExInmHF_MEyInmHF(), CaloSpecificAlgo::update_totalEt_totalEm(), and ObjectValidator::validHit().
{ return (HcalSubdetector)(subdetId()); }
int HcalDetId::zside | ( | ) | const [inline] |
get the z-side of the cell (1/-1)
Definition at line 34 of file HcalDetId.h.
References DetId::id_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), crystal_ieta_high(), crystal_ieta_low(), HcalTopology::detId2denseIdHB(), HcalTopology::detId2denseIdHE(), HcalTopology::detId2denseIdHF(), HcalTopology::detId2denseIdHO(), HcalTopology::detId2denseIdPreLS1(), ChannelPattern::Fill_by_hand(), HcalLedAnalysis::GetLedConst(), HLTHcalSimpleRecHitFilter::hltFilter(), ieta(), HcalDDDGeometryLoader::makeCell(), HFClusterAlgo::makeCluster(), CastorDbASCIIIO::DetIdLess::operator()(), HOHXLogicalMapEntry::printLMapLine(), HBHEHFLogicalMapEntry::printLMapLine(), HcalTrigTowerGeometry::towerIds(), and CaloTowerConstituentsMap::towerOf().
{ return (id_&0x2000)?(1):(-1); }
const HcalDetId HcalDetId::Undefined [static] |
Definition at line 52 of file HcalDetId.h.
Referenced by HcalRawDataMonitor::HashToHDI(), HcalRawDataClient::HashToHDI(), HcalText2DetIdConverter::init(), CastorText2DetIdConverter::init(), CastorDbHardcode::makeHardcodeMap(), HcalRawDataClient::mapChannproblem(), HcalRawDataMonitor::mapChannproblem(), HcalRawDataMonitor::mapDCCproblem(), HcalRawDataClient::mapDCCproblem(), HcalRawDataMonitor::mapHTRproblem(), HcalRawDataClient::mapHTRproblem(), HcalRawDataMonitor::reset(), and HcalRawDataMonitor::unpack().