CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
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

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

Definition at line 7 of file HcalDetIdTransform.cc.

References HLT_FULL_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(), deep_tau::DeepTauBase::DeepTauBase(), JME::JetResolutionObject::Definition::Definition(), FWDetailViewManager::detailViewsFor(), Pixel3DDigitizerAlgorithm::diffusion(), LowPtGsfElectronIDProducer::doWork(), SiPixelLorentzAnglePCLHarvester::dqmEndJob(), ElectronHEEPIDValueMapProducer::ElectronHEEPIDValueMapProducer(), egammaTools::EgammaDNNHelper::evaluate(), l1t::OnlineDBqueryHelper::fetch(), HGCalTriggerNtupleHGCMulticlusters::fill(), HGCalTriggerNtupleHGCClusters::fill(), edm::FwdPtrCollectionFilter< T, S, H >::filter(), HLTLogMonitorFilter::filter(), FWDetailViewManager::findViewersFor(), Phase2TrackerDigitizerAlgorithm::fluctuateEloss(), emtf::Forest::Forest(), FWEveViewManager::FWEveViewManager(), SiPixelVCal::getAllOffsets(), DropBoxMetadata::getAllRecords(), DBoxMetadataHelper::getAllRecords(), SiPixelVCal::getAllSlopes(), metsig::METSignificance::getCovariance(), EcalFedMap::getFedFromSlice(), edm::DetSetVector< T >::getIds(), HcalItemCollById< HFPhase1PMTData >::getIndex(), CSCStripElectronicsSim::getKeyStripsFromMC(), TrackerDetToDTCELinkCablingMap::getKnownDTCELinkIds(), reco::TaggingVariableList::getList(), edm::ParameterSet::getParameterNames(), l1t::Parameter::getTableColumn(), cms::DDCompactView::getVector(), HGCalVFESummationImpl::HGCalVFESummationImpl(), SeedingLayerSetsHits::hits(), PSFitter::HybridMinimizer::HybridMinimizer(), SiPixelDigitizerAlgorithm::init(), Herwig7Interface::initRepository(), pat::JetCorrFactors::jecFlavor(), JetTagProducer::JetTagProducer(), L1TkMuonProducer::L1TkMuonProducer(), reco::MaskCollection< Object >::mask(), 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(), placeAssembly(), SiStripProcessedRawDigiProducer::pr_process(), MultiClustersFromTrackstersProducer::produce(), SiStripClusterizerConditionsESProducer::produce(), trackerDTC::DTC::produce(), HiFJRhoFlowModulationProducer::produce(), pat::MatcherByPulls< T >::produce(), EcalTrivialConditionRetriever::produceEcalAlignmentEB(), EcalTrivialConditionRetriever::produceEcalAlignmentEE(), EcalTrivialConditionRetriever::produceEcalAlignmentES(), edm::eventsetup::EventSetupRecordProvider::proxyProviderDescriptions(), QualityCutsAnalyzer::QualityCutsAnalyzer(), l1t::LUT::read(), DQMRootSource::readFile_(), MP7FileReader::readRows(), MiniFloatConverter::reduceMantissaToNbitsRounding(), Phase1PixelMaps::rescaleAllBarrel(), Phase1PixelMaps::rescaleAllForward(), MP7FileReader::searchLinks(), LMFColoredTable::setColor(), ODSRPConfig::setParameters(), gen::Pythia6Service::setSLHAFromHeader(), Herwig6Hadronizer::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, TauDiscriminatorDataType, ConsumeType >::TauDiscriminationProducerBase(), edm::tns(), 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  }
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  }