#include <DTSuperLayerId.h>
Public Member Functions | |
DTChamberId | chamberId () const |
Return the corresponding ChamberId. | |
DTSuperLayerId (const DTSuperLayerId &slId) | |
DTSuperLayerId () | |
DTSuperLayerId (uint32_t id) | |
DTSuperLayerId (const DTChamberId &chId, int superlayer) | |
Constructor from a DTChamberId and SL number. | |
DTSuperLayerId (int wheel, int station, int sector, int superlayer) | |
int | superlayer () const |
Return the superlayer number (deprecated method name) | |
int | superLayer () const |
Return the superlayer number. |
DetUnit identifier for DT SuperLayers (SL)
Definition at line 15 of file DTSuperLayerId.h.
DTSuperLayerId::DTSuperLayerId | ( | ) |
Default constructor. It fills the common part in the base and leaves 0 in all other fields
Definition at line 15 of file DTSuperLayerId.cc.
Referenced by DTLayerId::superlayerId().
: DTChamberId() {}
DTSuperLayerId::DTSuperLayerId | ( | uint32_t | id | ) | [explicit] |
Construct from a packed id. It is required that the packed id represents a valid DT DetId (proper Detector and SubDet fields), otherwise an exception is thrown. Any bits outside the DTSuperLayerId fields are zeroed; apart for this, no check is done on the vaildity of the values.
Definition at line 19 of file DTSuperLayerId.cc.
References DTChamberId::checkMuonId(), DetId::id_, and DTChamberId::slIdMask_.
{ id_ = id & slIdMask_; // Mask the bits outside DTSuperLayerId fields checkMuonId(); // Check this is a valid id for muon DTs. }
DTSuperLayerId::DTSuperLayerId | ( | int | wheel, |
int | station, | ||
int | sector, | ||
int | superlayer | ||
) |
Construct from indexes. Input values are required to be within legal ranges, otherwise an exception is thrown.
Definition at line 25 of file DTSuperLayerId.cc.
References Exception, DetId::id_, DTChamberId::maxSuperLayerId, DTChamberId::slayerStartBit_, and DTChamberId::slMask_.
: DTChamberId(wheel, station, sector) { if(superlayer < minSuperLayerId || superlayer > maxSuperLayerId) { throw cms::Exception("InvalidDetId") << "DTSuperLayerId ctor:" << " Invalid parameters: " << " Wh:"<< wheel << " St:"<< station << " Se:"<< sector << " Sl:"<< superlayer << std::endl; } id_ |= (superlayer & slMask_) << slayerStartBit_; }
DTSuperLayerId::DTSuperLayerId | ( | const DTSuperLayerId & | slId | ) |
Copy Constructor. Any bits outside the DTChamberId fields are zeroed; apart for this, no check is done on the vaildity of the values.
Definition at line 44 of file DTSuperLayerId.cc.
References DetId::id_, DetId::rawId(), and DTChamberId::slIdMask_.
DTSuperLayerId::DTSuperLayerId | ( | const DTChamberId & | chId, |
int | superlayer | ||
) |
Constructor from a DTChamberId and SL number.
Definition at line 53 of file DTSuperLayerId.cc.
References Exception, DetId::id_, DTChamberId::maxSuperLayerId, DTChamberId::slayerStartBit_, and DTChamberId::slMask_.
: DTChamberId(chId) { if(superlayer < minSuperLayerId || superlayer > maxSuperLayerId) { throw cms::Exception("InvalidDetId") << "DTSuperLayerId ctor:" << " Invalid parameter: " << " Sl:"<< superlayer << std::endl; } id_ |= (superlayer & slMask_) << slayerStartBit_; }
DTChamberId DTSuperLayerId::chamberId | ( | ) | const [inline] |
Return the corresponding ChamberId.
Definition at line 63 of file DTSuperLayerId.h.
References DTChamberId::chamberIdMask_, DTChamberId::DTChamberId(), and DetId::id_.
Referenced by DTT0CalibrationNew::analyze(), DTTTrigCalibration::analyze(), DTT0Calibration::analyze(), DTDigiTask::analyze(), DTnoiseDBValidation::beginRun(), DTNoiseComputation::beginRun(), DTDigiForNoiseTask::bookHistos(), DTEfficiencyTask::bookHistos(), DTt0DBValidation::bookHistos(), DTNoiseTask::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTSLRecSegment2D::chamberId(), DTRecHitSegmentResidual::compute(), DTTTrigMatchRPhi::correction(), DTDigiToRaw::createFedBuffers(), DTT0CalibrationNew::endJob(), DTT0Calibration::endJob(), DTSegmentUpdator::fit(), DTConfigManager::getDTConfigBti(), DTTTrigT0SegCorrection::getHistoName(), DTVDriftSegment::getHistoName(), DTCalibrationMap::getKey(), DTNoiseComputation::getLayerName(), DTConfigPedestals::getOffset(), DTNoiseComputation::getSuperLayerName(), DTResidualCalibration::segmentToWireDistance(), DTConfigManager::setDTConfigBti(), and DTTrig::triggerReco().
{ return DTChamberId(id_ & chamberIdMask_); }
int DTSuperLayerId::superLayer | ( | ) | const [inline] |
Return the superlayer number.
Definition at line 51 of file DTSuperLayerId.h.
References DetId::id_, DTChamberId::slayerStartBit_, and DTChamberId::slMask_.
Referenced by DTVDriftCalibration::analyze(), DTnoiseDBValidation::beginRun(), FWDTRecHitProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), DTLinearDriftFromDBAlgo::compute(), DTVDriftMeanTimer::compute(), DTRecHitQuality::compute(), DTVDriftSegment::compute(), DTTTrigResidualCorrection::correction(), DTTTrigMatchRPhi::correction(), DTHVStatusHandler::createSnapshot(), DTHVStatusHandler::dumpSnapshot(), DTVDriftCalibration::endJob(), DTtTrigCalibrationTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTNoiseTest::endLuminosityBlock(), DTResolutionAnalysisTest::endRun(), DTCombinatorialExtendedPatternReco::extendCandidates(), DTMeantimerPatternReco::geometryFilter(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTTTrigT0SegCorrection::getHistoName(), DTVDriftSegment::getHistoName(), DTHVStatusHandler::layerId(), DTHVStatusHandler::offlineList(), DTTtrig::set(), DTMtime::set(), and superlayer().
{ return ((id_>>slayerStartBit_)&slMask_); }
int DTSuperLayerId::superlayer | ( | ) | const [inline] |
Return the superlayer number (deprecated method name)
Definition at line 57 of file DTSuperLayerId.h.
References superLayer().
Referenced by DTPreCalibrationTask::analyze(), DTResolutionAnalysisTask::analyze(), DTEfficiencyTask::analyze(), DTDigiTask::analyze(), DTDigiForNoiseTask::bookHistos(), DTEfficiencyTask::bookHistos(), DTDeadChannelTest::bookHistos(), DTt0DBValidation::bookHistos(), DTCalibValidation::bookHistos(), DTNoiseTask::bookHistos(), DTEfficiencyTest::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTResidualCalibration::bookHistos(), DTCalibrationMap::checkGranularity(), DTRecHitSegmentResidual::compute(), DTRecHitQuality::compute(), DTCalibValidation::compute(), DTDigiToRaw::createFedBuffers(), DTCreateSummaryHistos::endJob(), DTEfficiencyTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTResolutionAnalysisTest::endRun(), DTNoiseCalibration::getChannelName(), DTT0Calibration::getHistoName(), DTTPAnalyzer::getHistoName(), DTTTrigResidualCorrection::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseComputation::getLayerName(), DTResolutionTest::getMEName(), DTNoiseTest::getMEName(), DTResolutionAnalysisTest::getMEName(), DTResolutionTest::getMEName2D(), DTTTrigCalibration::getOccupancyName(), DTNoiseComputation::getSuperLayerName(), DTTTrigCalibration::getTBoxName(), DTTTrigWriter::getTBoxName(), MuonChamberResidual::hitlayer(), DTBtiCard::loadBTI(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonSimHitProducer::produce(), DTResidualCalibration::segmentToWireDistance(), and DTBtiId::superlayer().
{ return superLayer(); }