#include <DataFormats/MuonDetId/interface/DTSuperLayerId.h>
Public Member Functions | |
DTChamberId | chamberId () const |
Return the corresponding ChamberId. | |
DTSuperLayerId (const DTChamberId &chId, int superlayer) | |
Constructor from a DTChamberId and SL number. | |
DTSuperLayerId (const DTSuperLayerId &slId) | |
Copy Constructor. | |
DTSuperLayerId (int wheel, int station, int sector, int superlayer) | |
Construct from indexes. | |
DTSuperLayerId (uint32_t id) | |
Construct from a packed id. | |
DTSuperLayerId () | |
Default constructor. | |
int | superlayer () const |
Return the superlayer number (deprecated method name). | |
int | superLayer () const |
Return the superlayer number. |
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().
00015 : 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_.
00019 { 00020 id_ = id & slIdMask_; // Mask the bits outside DTSuperLayerId fields 00021 checkMuonId(); // Check this is a valid id for muon DTs. 00022 }
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 lat::endl(), Exception, DetId::id_, DTChamberId::maxSuperLayerId, DTChamberId::slayerStartBit_, and DTChamberId::slMask_.
00028 : DTChamberId(wheel, station, sector) { 00029 if(superlayer < minSuperLayerId || superlayer > maxSuperLayerId) { 00030 throw cms::Exception("InvalidDetId") << "DTSuperLayerId ctor:" 00031 << " Invalid parameters: " 00032 << " Wh:"<< wheel 00033 << " St:"<< station 00034 << " Se:"<< sector 00035 << " Sl:"<< superlayer 00036 << std::endl; 00037 } 00038 id_ |= (superlayer & slMask_) << slayerStartBit_; 00039 }
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_.
00044 { 00045 // The mask is required for proper slicing, i.e. if slId is 00046 // actually a derived class. 00047 id_ = (slId.rawId() & slIdMask_); 00048 }
DTSuperLayerId::DTSuperLayerId | ( | const DTChamberId & | chId, | |
int | superlayer | |||
) |
Constructor from a DTChamberId and SL number.
Definition at line 53 of file DTSuperLayerId.cc.
References lat::endl(), Exception, DetId::id_, DTChamberId::maxSuperLayerId, DTChamberId::slayerStartBit_, and DTChamberId::slMask_.
00053 : DTChamberId(chId) { 00054 if(superlayer < minSuperLayerId || superlayer > maxSuperLayerId) { 00055 throw cms::Exception("InvalidDetId") << "DTSuperLayerId ctor:" 00056 << " Invalid parameter: " 00057 << " Sl:"<< superlayer 00058 << std::endl; 00059 } 00060 id_ |= (superlayer & slMask_) << slayerStartBit_; 00061 }
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(), DTAlbertoBenvenutiTask::analyze(), VisDTDigi::analyze(), DTT0Calibration::analyze(), DTNoiseCalibration::analyze(), DTDigiTask::analyze(), DTNoiseComputation::beginJob(), DTDigiForNoiseTask::bookHistos(), DTEfficiencyTask::bookHistos(), DTt0DBValidation::bookHistos(), DTNoiseTask::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTSLRecSegment2D::chamberId(), DTDigiToRaw::createFedBuffers(), DTSegmentUpdator::fit(), DTNoiseComputation::getChamberName(), DTConfigManager::getDTConfigBti(), DTCalibrationMap::getKey(), DTNoiseCalibration::getLayerName(), DTNoiseComputation::getLayerName(), DTNoiseCalibration::getSuperLayerName(), DTNoiseComputation::getSuperLayerName(), DTConfigManager::setDTConfigBti(), and DTTrig::triggerReco().
00063 { 00064 return DTChamberId(id_ & chamberIdMask_); 00065 }
int DTSuperLayerId::superlayer | ( | ) | const [inline] |
Return the superlayer number (deprecated method name).
Definition at line 57 of file DTSuperLayerId.h.
References superLayer().
Referenced by DTAlbertoBenvenutiTask::analyze(), DTEfficiencyTask::analyze(), DTResolutionAnalysisTask::analyze(), DTDigiTask::analyze(), DTDigiForNoiseTask::bookHistos(), DTDeadChannelTest::bookHistos(), DTEfficiencyTask::bookHistos(), DTt0DBValidation::bookHistos(), DTCalibValidation::bookHistos(), DTEfficiencyTest::bookHistos(), DTNoiseTask::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTCalibrationMap::checkGranularity(), DTParametrizedDriftAlgo::compute(), DTRecHitQuality::compute(), DTCalibValidation::compute(), DTDigiToRaw::createFedBuffers(), DTCreateSummaryHistos::endJob(), DTEfficiencyTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseCalibration::getLayerName(), DTNoiseComputation::getLayerName(), DTtTrigCalibrationTest::getMEName(), DTResolutionTest::getMEName(), DTNoiseTest::getMEName(), DTResolutionAnalysisTest::getMEName(), DTResolutionTest::getMEName2D(), DTTTrigCalibration::getOccupancyName(), DTNoiseCalibration::getSuperLayerName(), DTNoiseComputation::getSuperLayerName(), DTTTrigCalibration::getTBoxName(), DTTTrigWriter::getTBoxName(), DTBtiCard::loadBTI(), MuonSimHitProducer::produce(), and DTBtiId::superlayer().
00057 { 00058 return superLayer(); 00059 }
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 DTVDriftWriter::analyze(), VisDTDigi::analyze(), DTVDriftCalibration::analyze(), DTRecHitQuality::compute(), AlignmentMonitorMuonHIP::createPythonGeometry(), DTVDriftCalibration::endJob(), DTtTrigCalibrationTest::endLuminosityBlock(), DTResolutionAnalysisTest::endLuminosityBlock(), DTNoiseTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTMeantimerPatternReco::geometryFilter(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTTtrig::set(), DTMtime::set(), and superlayer().
00051 { 00052 return ((id_>>slayerStartBit_)&slMask_); 00053 }