CMS 3D CMS Logo

Enumerations | Functions
HcalDetIdTransform Namespace Reference

Enumerations

enum  {
  RAWID = 0, IETA, IETAABS, SUBDET,
  IETADEPTH, IETAABSDEPTH, N_TRANSFORMS
}
 

Functions

unsigned transform (const HcalDetId &id, unsigned transformCode)
 
void validateCode (unsigned transformCode)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RAWID 
IETA 
IETAABS 
SUBDET 
IETADEPTH 
IETAABSDEPTH 
N_TRANSFORMS 

Definition at line 10 of file HcalDetIdTransform.h.

10  {
11  RAWID = 0, // Raw detector id
12  IETA, // ieta() + shift
13  IETAABS, // ietaAbs()
14  SUBDET, // subdetId()
15  IETADEPTH, // maps ieta() and depth() into a unique number
16  IETAABSDEPTH, // maps ietaAbs() and depth() into a unique number
18  };

Function Documentation

◆ transform()

unsigned HcalDetIdTransform::transform ( const HcalDetId id,
unsigned  transformCode 
)

Definition at line 7 of file HcalDetIdTransform.cc.

References hcalRecHitTable_cff::depth, Exception, IETA, IETAABS, IETAABSDEPTH, IETADEPTH, N_TRANSFORMS, RAWID, SUBDET, and submitPVValidationJobs::t.

Referenced by algorithm(), AlignableDet::alignments(), AlignableBeamSpot::alignments(), AlignableDetUnit::alignments(), AlphaT::AlphaT(), l1tVertexFinder::AnalysisSettings::AnalysisSettings(), FastSiPixelFEDChannelContainerFromQuality::analyze(), edm::ContainerMask< T >::applyOrTo(), edm::ScheduleInfo::availableModuleLabels(), edm::StreamSchedule::availablePaths(), TrackerParametersFromDD::build(), CSCGeometryParsFromDD::build(), ticl::TracksterP4FromEnergySum::calcP4(), HeterogeneousHGCalHEBConditionsWrapper::calculate_memory_bytes(), HeterogeneousHGCalEEConditionsWrapper::calculate_memory_bytes(), HeterogeneousHGCalHEFCellPositionsConditions::calculate_memory_bytes_(), HeterogeneousHGCalHEFConditionsWrapper::calculate_memory_bytes_params_(), SiPixelPI::checkAnswerOK(), SiStripHitEfficiencyHarvester::checkMapsValidity(), reco::helper::JetIDHelper::classifyJetComponents(), reco::helper::JetIDHelper::classifyJetTowers(), TkGluedMeasurementDet::collectRecHits(), TCMETAlgo::configure(), edm::ParameterTypeTraits< std::vector< std::pair< std::string, T > > >::convert(), SiStripRawProcessingAlgorithms::convertVirginRawToHybrid(), edmNew::copyDetSetRange(), ConstrainedTreeBuilder::covarianceMatrix(), ConstrainedTreeBuilderT::covarianceMatrix(), FastCircle::createCircleParameters(), SiStripAPVRestorer::createCMMapCMstored(), align::createPoints(), TGeoMgrFromDdd::createShape(), trackerTFP::DataFormats::DataFormats(), DeepTauIdBase< TritonEDProducer<> >::DeepTauIdBase(), JME::JetResolutionObject::Definition::Definition(), FWDetailViewManager::detailViewsFor(), Pixel3DDigitizerAlgorithm::diffusion(), LowPtGsfElectronIDProducer::doWork(), SiPixelLorentzAnglePCLHarvester::dqmEndJob(), ElectronHEEPIDValueMapProducer::ElectronHEEPIDValueMapProducer(), L1SCJetEmu::emulateEvent(), egammaTools::EgammaDNNHelper::evaluate(), l1tVertexFinder::VertexFinder::fastHisto(), l1t::OnlineDBqueryHelper::fetch(), trackerTFP::ZHoughTransform::fill(), trackerTFP::MiniHoughTransform::fill(), SiStripHitEffData::fillMapFromTkMap(), MuDigiBaseProducer< DETECTOR_T, DIGI_T >::fillTable(), SiStripCondVisualizer::fillTheQualityMap(), edm::FwdPtrCollectionFilter< T, S, H >::filter(), HLTLogMonitorFilter::filter(), FWDetailViewManager::findViewersFor(), edm::Schedule::finishSetup(), Phase2TrackerDigitizerAlgorithm::fluctuateEloss(), emtf::Forest::Forest(), FWEveViewManager::FWEveViewManager(), SiPixelVCal::getAllOffsets(), DropBoxMetadata::getAllRecords(), DBoxMetadataHelper::getAllRecords(), SiPixelVCal::getAllSlopes(), GEMDQMEfficiencySourceBase::getChamberRange(), metsig::METSignificance::getCovariance(), GEMDQMEfficiencySourceBase::getEtaPartitionRange(), EcalFedMap::getFedFromSlice(), edm::DetSetVector< TotemRPLocalTrack::FittedRecHit >::getIds(), HcalItemCollById< HFPhase1PMTData >::getIndex(), CSCStripElectronicsSim::getKeyStripsFromMC(), TrackerDetToDTCELinkCablingMap::getKnownDTCELinkIds(), reco::TaggingVariableList::getList(), edm::ParameterSet::getParameterNames(), l1t::Parameter::getTableColumn(), cms::DDCompactView::getVector(), HGCalVFESummationImpl::HGCalVFESummationImpl(), SeedingLayerSetsHits::hits(), htmht(), SiPixelDigitizerAlgorithm::init(), Herwig7Interface::initRepository(), pat::JetCorrFactors::jecFlavor(), JetTagProducer::JetTagProducer(), L1TUtmTriggerMenuInspectorHelper::L1UtmTriggerMenuInfo::listOfAlgos(), L1SCJetEmu::makeJet_HW(), L1SeedConePFJetProducer::makeJet_SW(), reco::MaskCollection< Object >::mask(), MuDigiBaseProducer< DETECTOR_T, DIGI_T >::MuDigiBaseProducer(), cms::MuonTCMETValueMapProducer::MuonTCMETValueMapProducer(), MuonTypeByOrCut::MuonTypeByOrCut(), DQMRootOutputModule::openFile(), alpha_T::operator()(), ThirdHitRZPrediction< Propagator >::operator()(), CSCStripData::operator*=(), emtf::Forest::operator=(), BTagEntry::Parameters::Parameters(), gen::JetMatchingMGFastJet::parseParameter(), gen::JetMatchingMadgraph::parseParameter(), pat::PATLostTracks::PATLostTracks(), GaussianSumUtilities1D::pdfComponents(), VectorHit::phase2clusterGlobalPosErr(), edm::PileUp::PileUp(), placeAssembly(), SiStripProcessedRawDigiProducer::pr_process(), L1NNTauProducer::process_HW(), MultiClustersFromTrackstersProducer::produce(), trackerTFP::GeometricProcessor::produce(), SiStripClusterizerConditionsESProducer::produce(), trackerTFP::ProducerZHTout::produce(), trackerDTC::DTC::produce(), trklet::ProducerTBout::produce(), pat::MatcherByPulls< T >::produce(), HiFJRhoFlowModulationProducer::produce(), EcalTrivialConditionRetriever::produceEcalAlignmentEB(), EcalTrivialConditionRetriever::produceEcalAlignmentEE(), EcalTrivialConditionRetriever::produceEcalAlignmentES(), QualityCutsAnalyzer::QualityCutsAnalyzer(), l1t::LUT::read(), l1t::demo::readEMPFileV1(), l1t::demo::readEMPFileV2(), DQMRootSource::readFile_(), trackerTFP::HoughTransform::readOut(), MP7FileReader::readRows(), trklet::DRin::redigi(), MiniFloatConverter::reduceMantissaToNbitsRounding(), Phase1PixelMaps::rescaleAllBarrel(), Phase1PixelMaps::rescaleAllForward(), edm::eventsetup::EventSetupRecordProvider::resolverProviderDescriptions(), MP7FileReader::searchLinks(), LMFColoredTable::setColor(), ODSRPConfig::setParameters(), gen::Pythia6Service::setSLHAFromHeader(), LMFPnPrimDat::setSystem(), LMFColoredTable::setSystem(), SiStripLorentzAngleFakeESSource::SiStripLorentzAngleFakeESSource(), PrimaryVertexResolution::sortTracksByPt(), trackerDTC::DTC::split(), RectangularEtaPhiTrackingRegion::stringToUseMeasurementTracker(), SiStripRawProcessingAlgorithms::suppressHybridData(), SiStripRawProcessingAlgorithms::suppressProcessedRawData(), SiStripRawProcessingAlgorithms::suppressVirginRawData(), TrackerGeometryCompare::surveyToTracker(), TauDiscriminationProducerBase< TauType, TauDiscriminator >::TauDiscriminationProducerBase(), to_lower(), trackerStablePhiSort(), L1TMuonEndCapForestESProducer::traverse(), upcaseString(), TrackingMaterialProducer::update(), progressbar.FormatLabel::update(), cms::DDNamespace::vecFloat(), magneticfield::volumeHandle::volumeHandle(), and sistrip::FEDEmulator::zeroSuppress().

7  {
8  static const int ietaShift = 1024;
9  static const int maxHcalDepth = 64;
10 
11  if (transformCode >= N_TRANSFORMS)
12  throw cms::Exception(
13  "In HcalDetIdTransform::transform:"
14  " invalid transform code");
15  unsigned t = 0;
16  switch (transformCode) {
17  case RAWID:
18  t = id.rawId();
19  break;
20 
21  case IETA:
22  t = id.ieta() + ietaShift;
23  break;
24 
25  case IETAABS:
26  t = id.ietaAbs();
27  break;
28 
29  case SUBDET:
30  t = id.subdetId();
31  break;
32 
33  case IETADEPTH:
34  t = (id.ieta() + ietaShift) * maxHcalDepth + id.depth();
35  break;
36 
37  case IETAABSDEPTH:
38  t = id.ietaAbs() * maxHcalDepth + id.depth();
39  break;
40 
41  default:
42  throw cms::Exception(
43  "In HcalDetIdTransform::transform:"
44  " unhandled switch clause. This is a bug."
45  " Please report.");
46  }
47  return t;
48  }

◆ validateCode()

void HcalDetIdTransform::validateCode ( unsigned  transformCode)

Definition at line 50 of file HcalDetIdTransform.cc.

References Exception, and N_TRANSFORMS.

Referenced by HcalItemCollById< HFPhase1PMTData >::HcalItemCollById().

50  {
51  if (transformCode >= N_TRANSFORMS)
52  throw cms::Exception(
53  "In HcalDetIdTransform::validateCode:"
54  " invalid transform code");
55  }