#include <DTWireId.h>
Public Member Functions | |
DTWireId () | |
DTWireId (uint32_t id) | |
DTWireId (const DTWireId &wireId) | |
Copy Constructor. | |
DTWireId (const DTLayerId &layerId, int wire) | |
Constructor from a layerId and a wire number. | |
DTWireId (const DTSuperLayerId &slId, int layer, int wire) | |
Constructor from a SuperLayerId and layer and wire numbers. | |
DTWireId (const DTChamberId &chId, int superlayer, int layer, int wire) | |
Constructor from a CamberId and SL, layer and wire numbers. | |
DTWireId (int wheel, int station, int sector, int superlayer, int layer, int wire) | |
DTLayerId | layerId () const |
Return the corresponding LayerId. | |
int | wire () const |
Return the wire number. |
DetUnit identifier for DT wires
Definition at line 15 of file DTWireId.h.
DTWireId::DTWireId | ( | ) |
Default constructor. Fills the common part in the base and leaves 0 in all other fields
Definition at line 16 of file DTWireId.cc.
: DTLayerId() {}
DTWireId::DTWireId | ( | 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. No check is done on the vaildity of the values.
Definition at line 20 of file DTWireId.cc.
References DTChamberId::checkMuonId(), and DetId::id_.
{ id_= id; checkMuonId(); // Check this is a valid id for muon DTs. }
DTWireId::DTWireId | ( | int | wheel, |
int | station, | ||
int | sector, | ||
int | superlayer, | ||
int | layer, | ||
int | wire | ||
) |
Construct from fully qualified identifier. Input values are required to be within legal ranges, otherwise an exception is thrown.
Definition at line 27 of file DTWireId.cc.
References Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
: DTLayerId(wheel, station, sector, superlayer, layer) { if (wire < minWireId || wire > maxWireId) { throw cms::Exception("InvalidDetId") << "DTWireId ctor:" << " Invalid parameters: " << " Wh:"<< wheel << " St:"<< station << " Se:"<< sector << " Sl:"<< superlayer << " La:"<< layer << " Wi:"<< wire << std::endl; } id_ |= (wire & wireMask_) << wireStartBit_; }
DTWireId::DTWireId | ( | const DTWireId & | wireId | ) |
Copy Constructor.
Definition at line 51 of file DTWireId.cc.
References DetId::id_, and DetId::rawId().
DTWireId::DTWireId | ( | const DTChamberId & | chId, |
int | superlayer, | ||
int | layer, | ||
int | wire | ||
) |
Constructor from a CamberId and SL, layer and wire numbers.
Definition at line 58 of file DTWireId.cc.
References Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
: DTLayerId(chId, superlayer, layer) { if (wire < minWireId || wire > maxWireId) { throw cms::Exception("InvalidDetId") << "DTWireId ctor:" << " Invalid parameters: " << " Wi:"<< wire << std::endl; } id_ |= (wire & wireMask_) << wireStartBit_; }
DTWireId::DTWireId | ( | const DTSuperLayerId & | slId, |
int | layer, | ||
int | wire | ||
) |
Constructor from a SuperLayerId and layer and wire numbers.
Definition at line 73 of file DTWireId.cc.
References Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
: DTLayerId(slId, layer) { if (wire < minWireId || wire > maxWireId) { throw cms::Exception("InvalidDetId") << "DTWireId ctor:" << " Invalid parameters: " << " Wi:"<< wire << std::endl; } id_ |= (wire & wireMask_) << wireStartBit_; }
DTWireId::DTWireId | ( | const DTLayerId & | layerId, |
int | wire | ||
) |
Constructor from a layerId and a wire number.
Definition at line 88 of file DTWireId.cc.
References Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
: DTLayerId(layerId) { if (wire < minWireId || wire > maxWireId) { throw cms::Exception("InvalidDetId") << "DTWireId ctor:" << " Invalid parameters: " << " Wi:"<< wire << std::endl; } id_ |= (wire & wireMask_) << wireStartBit_; }
DTLayerId DTWireId::layerId | ( | ) | const [inline] |
Return the corresponding LayerId.
Definition at line 64 of file DTWireId.h.
References DTLayerId::DTLayerId(), DetId::id_, and DTChamberId::layerIdMask_.
Referenced by DTEfficiencyTask::analyze(), DTResolutionAnalysisTask::analyze(), DTResidualCalibration::analyze(), DTnoiseDBValidation::beginRun(), DTAlbertoBenvenutiTask::bookHistos(), FWDTRecHitProxyBuilder::buildViewType(), cond::service::DTHVCheckWithHysteresis::checkCurrentStatus(), cond::service::DTHVCheckByAbsoluteValues::checkCurrentStatus(), DTRecHitSegmentResidual::compute(), DTTPAnalyzer::endJob(), DTVDriftCalibration::endJob(), DTHitQualityUtils::findMuSimSegment(), DTRecHit1DPair::geographicalId(), DTMeantimerPatternReco::geometryFilter(), DTCalibrationMap::getKey(), DTTMax::InfoLayer::InfoLayer(), DTROS25Unpacker::interpretRawData(), DTDigitizer::produce(), DTResidualCalibration::segmentToWireDistance(), and DTDigitizer::storeDigis().
{ return DTLayerId(id_ & layerIdMask_); }
int DTWireId::wire | ( | ) | const [inline] |
Return the wire number.
Definition at line 58 of file DTWireId.h.
References DetId::id_, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
Referenced by DTResolutionAnalysisTask::analyze(), DTnoiseDBValidation::beginRun(), cond::service::DTHVCheckWithHysteresis::checkCurrentStatus(), cond::service::DTHVCheckByAbsoluteValues::checkCurrentStatus(), DTCalibrationMap::checkGranularity(), DTHVStatusHandler::checkStatusChange(), DTRecHitSegmentResidual::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), DTCalibValidation::compute(), DTDigitizer::computeTime(), DTHVStatusHandler::createSnapshot(), DTDigiSyncTOFCorr::digitizerOffset(), DTHVStatusHandler::dumpSnapshot(), DTTPAnalyzer::endJob(), DTMeantimerPatternReco::geometryFilter(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTNoiseCalibration::getChannelName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTTMax::InfoLayer::InfoLayer(), DTMeantimerPatternReco::initHits(), DTROS25Unpacker::interpretRawData(), DTHVStatusHandler::offlineList(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), DTRecHitQuality::recHitDistFromWire(), GlobalRecHitsProducer::recHitDistFromWire(), GlobalRecHitsAnalyzer::recHitDistFromWire(), DTCalibValidation::recHitDistFromWire(), DTResidualCalibration::segmentToWireDistance(), DTTtrig::set(), DTMtime::set(), DTRecHitQuality::simHitDistFromWire(), GlobalRecHitsProducer::simHitDistFromWire(), GlobalRecHitsAnalyzer::simHitDistFromWire(), and DTDigitizer::storeDigis().
{ return ((id_>>wireStartBit_)&wireMask_); }