#include <DataFormats/MuonDetId/interface/DTWireId.h>
Public Member Functions | |
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 (const DTWireId &wireId) | |
Copy Constructor. | |
DTWireId (int wheel, int station, int sector, int superlayer, int layer, int wire) | |
Construct from fully qualified identifier. | |
DTWireId (uint32_t id) | |
Construct from a packed id. | |
DTWireId () | |
Default constructor. | |
DTLayerId | layerId () const |
Return the corresponding LayerId. | |
int | wire () const |
Return the wire number. |
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.
00016 : 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_.
00020 { 00021 id_= id; 00022 checkMuonId(); // Check this is a valid id for muon DTs. 00023 }
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 lat::endl(), Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
00032 : DTLayerId(wheel, station, sector, superlayer, layer) { 00033 if (wire < minWireId || wire > maxWireId) { 00034 throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 00035 << " Invalid parameters: " 00036 << " Wh:"<< wheel 00037 << " St:"<< station 00038 << " Se:"<< sector 00039 << " Sl:"<< superlayer 00040 << " La:"<< layer 00041 << " Wi:"<< wire 00042 << std::endl; 00043 } 00044 00045 id_ |= (wire & wireMask_) << wireStartBit_; 00046 }
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 lat::endl(), Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
00058 : 00059 DTLayerId(chId, superlayer, layer) { 00060 if (wire < minWireId || wire > maxWireId) { 00061 throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 00062 << " Invalid parameters: " 00063 << " Wi:"<< wire 00064 << std::endl; 00065 } 00066 00067 id_ |= (wire & wireMask_) << wireStartBit_; 00068 }
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 lat::endl(), Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
00073 : 00074 DTLayerId(slId, layer) { 00075 if (wire < minWireId || wire > maxWireId) { 00076 throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 00077 << " Invalid parameters: " 00078 << " Wi:"<< wire 00079 << std::endl; 00080 } 00081 00082 id_ |= (wire & wireMask_) << wireStartBit_; 00083 }
Constructor from a layerId and a wire number.
Definition at line 88 of file DTWireId.cc.
References lat::endl(), Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.
00088 : DTLayerId(layerId) { 00089 if (wire < minWireId || wire > maxWireId) { 00090 throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 00091 << " Invalid parameters: " 00092 << " Wi:"<< wire 00093 << std::endl; 00094 } 00095 00096 id_ |= (wire & wireMask_) << wireStartBit_; 00097 }
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 VisDTRecHitsTwig::addWire(), DTResolutionAnalysisTask::analyze(), DTEfficiencyTask::analyze(), DTAlbertoBenvenutiTask::bookHistos(), DTHitPairForFit::DTHitPairForFit(), DTVDriftCalibration::endJob(), DTRecHit1DPair::geographicalId(), DTMeantimerPatternReco::geometryFilter(), DTCalibrationMap::getKey(), DTTMax::InfoLayer::InfoLayer(), DTROS25Unpacker::interpretRawData(), DTDigitizer::produce(), and DTDigitizer::storeDigis().
00064 { 00065 return DTLayerId(id_ & layerIdMask_); 00066 }
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 VisDTRecHitsTwig::addWire(), DTResolutionAnalysisTask::analyze(), DTCalibrationMap::checkGranularity(), DTLinearDriftFromDBAlgo::compute(), DTParametrizedDriftAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), DTCalibValidation::compute(), DTDigitizer::computeTime(), DTDigiSyncTOFCorr::digitizerOffset(), DTMeantimerPatternReco::geometryFilter(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTTMax::InfoLayer::InfoLayer(), DTROS25Unpacker::interpretRawData(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), DTRecHitQuality::recHitDistFromWire(), GlobalRecHitsProducer::recHitDistFromWire(), GlobalRecHitsAnalyzer::recHitDistFromWire(), DTCalibValidation::recHitDistFromWire(), DTTtrig::set(), DTMtime::set(), DTRecHitQuality::simHitDistFromWire(), GlobalRecHitsProducer::simHitDistFromWire(), GlobalRecHitsAnalyzer::simHitDistFromWire(), and DTDigitizer::storeDigis().
00058 { 00059 return ((id_>>wireStartBit_)&wireMask_); 00060 }