#include <DTLayerId.h>
Public Member Functions | |
DTLayerId () | |
DTLayerId (uint32_t id) | |
DTLayerId (const DTLayerId &layerId) | |
DTLayerId (const DTSuperLayerId &slId, int layer) | |
Constructor from a SuperLayerId and layer number. | |
DTLayerId (const DTChamberId &chId, int superlayer, int layer) | |
Constructor from a camberId and SL and layer numbers. | |
DTLayerId (int wheel, int station, int sector, int superlayer, int layer) | |
int | layer () const |
Return the layer number. | |
DTSuperLayerId | superlayerId () const |
Return the corresponding SuperLayerId. |
DetUnit identifier for DT layers
Definition at line 14 of file DTLayerId.h.
DTLayerId::DTLayerId | ( | ) |
Default constructor. Fills the common part in the base and leaves 0 in all other fields
Definition at line 15 of file DTLayerId.cc.
Referenced by DTWireId::layerId().
: DTSuperLayerId() {}
DTLayerId::DTLayerId | ( | 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 DTLayerId fields are zeroed; apart for this, no check is done on the vaildity of the values.
Definition at line 18 of file DTLayerId.cc.
References DTChamberId::checkMuonId(), DetId::id_, and DTChamberId::layerIdMask_.
{ // Mask the bits outside DTLayerId fields (notably, the wire number) id_ = id & layerIdMask_; // Check this is a valid id for muon DTs. checkMuonId(); }
DTLayerId::DTLayerId | ( | int | wheel, |
int | station, | ||
int | sector, | ||
int | superlayer, | ||
int | layer | ||
) |
Construct from indexes. Input values are required to be within legal ranges, otherwise an exception is thrown.
Definition at line 63 of file DTLayerId.cc.
References Exception, DetId::id_, DTChamberId::layerStartBit_, DTChamberId::lMask_, and DTChamberId::maxLayerId.
: DTSuperLayerId(wheel, station, sector, superlayer) { if (layer < minLayerId || layer > maxLayerId) { throw cms::Exception("InvalidDetId") << "DTLayerId ctor:" << " Invalid parameters: " << " Wh:"<< wheel << " St:"<< station << " Se:"<< sector << " Sl:"<< superlayer << " La:"<< layer << std::endl; } id_ |= (layer & lMask_) << layerStartBit_; }
DTLayerId::DTLayerId | ( | const DTLayerId & | layerId | ) |
Copy Constructor. Any bits outside the DTLayerId fields are zeroed; apart for this, no check is done on the vaildity of the values.
Definition at line 28 of file DTLayerId.cc.
References DetId::id_, DTChamberId::layerIdMask_, and DetId::rawId().
{ // The mask is required for proper slicing, i.e. if layerId is // actually a derived class. id_ = (layerId.rawId() & layerIdMask_); }
DTLayerId::DTLayerId | ( | const DTChamberId & | chId, |
int | superlayer, | ||
int | layer | ||
) |
Constructor from a camberId and SL and layer numbers.
Definition at line 37 of file DTLayerId.cc.
References Exception, DetId::id_, DTChamberId::layerStartBit_, DTChamberId::lMask_, and DTChamberId::maxLayerId.
: DTSuperLayerId(chId, superlayer) { if (layer < minLayerId || layer > maxLayerId) { throw cms::Exception("InvalidDetId") << "DTLayerId ctor:" << " Invalid parameters: " << " La:"<< layer << std::endl; } id_ |= (layer & lMask_) << layerStartBit_; }
DTLayerId::DTLayerId | ( | const DTSuperLayerId & | slId, |
int | layer | ||
) |
Constructor from a SuperLayerId and layer number.
Definition at line 50 of file DTLayerId.cc.
References Exception, DetId::id_, DTChamberId::layerStartBit_, DTChamberId::lMask_, and DTChamberId::maxLayerId.
: DTSuperLayerId(slId) { if (layer < minLayerId || layer > maxLayerId) { throw cms::Exception("InvalidDetId") << "DTLayerId ctor:" << " Invalid parameters: " << " La:"<< layer << std::endl; } id_ |= (layer & lMask_) << layerStartBit_; }
int DTLayerId::layer | ( | ) | const [inline] |
Return the layer number.
Definition at line 55 of file DTLayerId.h.
References DetId::id_, DTChamberId::layerStartBit_, and DTChamberId::lMask_.
Referenced by DTSuperLayer::add(), DTPreCalibrationTask::analyze(), DTnoiseDBValidation::beginRun(), DTDigiForNoiseTask::bookHistos(), DTt0DBValidation::bookHistos(), DTDeadChannelTest::bookHistos(), DTEfficiencyTask::bookHistos(), DTEfficiencyTest::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTResidualCalibration::bookHistos(), DTCalibrationMap::checkGranularity(), DTChamber::component(), DTDigiToRaw::createFedBuffers(), DTHVStatusHandler::createSnapshot(), DTHVStatusHandler::dumpSnapshot(), DTNoiseComputation::endJob(), DTCreateSummaryHistos::endJob(), DTEfficiencyTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTMeantimerPatternReco::geometryFilter(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTNoiseCalibration::getChannelName(), DTT0Calibration::getHistoName(), DTTPAnalyzer::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseComputation::getLayerName(), DTNoiseTest::getMEName(), DTTTrigCalibration::getOccupancyName(), DTTMax::getTMax(), MuonChamberResidual::hitlayer(), DTMeantimerPatternReco::initHits(), DTHVStatusHandler::layerId(), DTHVStatusHandler::offlineList(), MuonSimHitProducer::produce(), DTTtrig::set(), and DTMtime::set().
{ return ((id_>>layerStartBit_)&lMask_); }
DTSuperLayerId DTLayerId::superlayerId | ( | ) | const [inline] |
Return the corresponding SuperLayerId.
Definition at line 61 of file DTLayerId.h.
References DTSuperLayerId::DTSuperLayerId(), DetId::id_, and DTChamberId::slIdMask_.
Referenced by DTT0CalibrationNew::analyze(), DTTTrigCalibration::analyze(), DTResolutionAnalysisTask::analyze(), DTEfficiencyTask::analyze(), DTT0Calibration::analyze(), DTVDriftCalibration::analyze(), DTResidualCalibration::analyze(), DTnoiseDBValidation::beginRun(), DTNoiseComputation::beginRun(), DTDigiForNoiseTask::bookHistos(), DTEfficiencyTask::bookHistos(), DTDeadChannelTest::bookHistos(), DTt0DBValidation::bookHistos(), DTEfficiencyTest::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), FWDTRecHitProxyBuilder::buildViewType(), FWDTDigiProxyBuilder::buildViewType(), DTLinearDriftFromDBAlgo::compute(), DTDigiToRaw::createFedBuffers(), DTTTrigSyncFromDB::emulatorOffset(), DTMeantimerPatternReco::geometryFilter(), DTCalibrationMap::getKey(), DTNoiseComputation::getLayerName(), DTTTrigSyncFromDB::offset(), DTClusterer::produce(), DTRecSegment2DProducer::produce(), DTRecSegment2DExtendedProducer::produce(), and DTTrig::triggerReco().
{ return DTSuperLayerId(id_ & slIdMask_); }