CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Attributes
DTChamberId Class Reference

#include <DTChamberId.h>

Inheritance diagram for DTChamberId:
DetId DTSuperLayerId DTLayerId DTWireId

Public Member Functions

 DTChamberId ()
 
 DTChamberId (uint32_t id)
 
 DTChamberId (DetId id)
 
 DTChamberId (int wheel, int station, int sector)
 
 DTChamberId (const DTChamberId &chId)
 
int sector () const
 
int station () const
 Return the station number. More...
 
int wheel () const
 Return the wheel number. More...
 
- Public Member Functions inherited from DetId
Detector det () const
 get the detector field from this detid More...
 
 DetId ()
 Create an empty or null id (also for persistence) More...
 
 DetId (uint32_t id)
 Create an id from a raw number. More...
 
 DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
bool null () const
 is this a null id ? More...
 
 operator uint32_t () const
 
bool operator!= (DetId id) const
 inequality More...
 
uint32_t operator() () const
 
bool operator< (DetId id) const
 comparison More...
 
bool operator== (DetId id) const
 equality More...
 
uint32_t rawId () const
 get the raw id More...
 
int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

Static Public Attributes

static const int maxLayerId = 4
 highest layer id More...
 
static const int maxSectorId = 14
 highest sector id. More...
 
static const int maxStationId = 4
 highest station id More...
 
static const int maxSuperLayerId = 3
 highest superlayer id More...
 
static const int maxWheelId = 2
 highest wheel number More...
 
static const int maxWireId = 97
 highest wire id (chambers have 48 to 96 wires) More...
 
static const int minLayerId = 0
 lowest layer id. 0 indicates a full SL More...
 
static const int minSectorId = 0
 lowest sector id. 0 indicates all sectors (a station) More...
 
static const int minStationId = 1
 lowest station id More...
 
static const int minSuperLayerId = 0
 loweset super layer id. 0 indicates a full chamber More...
 
static const int minWheelId = -2
 lowest wheel number More...
 
static const int minWireId = 0
 lowest wire id (numbering starts from 1 or 2). 0 indicates a full layer More...
 
- Static Public Attributes inherited from DetId
static const int kDetOffset = 28
 
static const int kSubdetOffset = 25
 

Protected Member Functions

void checkMuonId ()
 

Static Protected Attributes

static const uint32_t chamberIdMask_
 
static const uint32_t layerIdMask_ = ~(wireMask_<<wireStartBit_)
 
static const int layerNumBits_ = 3
 
static const int layerStartBit_ = wireStartBit_ + wireNumBits_
 
static const uint32_t lMask_ = 0x7
 
static const uint32_t sectorMask_ = 0xf
 
static const int sectorNumBits_ = 4
 
static const int sectorStartBit_ = wheelStartBit_ + wheelNumBits_
 
static const int slayerNumBits_ = 2
 
static const int slayerStartBit_ = layerStartBit_+ layerNumBits_
 
static const uint32_t slIdMask_
 
static const uint32_t slMask_ = 0x3
 
static const uint32_t stationMask_ = 0x7
 
static const int stationNumBits_ = 3
 two bits would be enough, but we could use the number "0" as a wildcard More...
 
static const int stationStartBit_ = sectorStartBit_ + sectorNumBits_
 
static const uint32_t wheelMask_ = 0x7
 
static const int wheelNumBits_ = 3
 
static const int wheelStartBit_ = slayerStartBit_ + slayerNumBits_
 
static const uint32_t wireMask_ = 0x7f
 
static const int wireNumBits_ = 7
 two bits would be enough, but we could use the number "0" as a wildcard More...
 
static const int wireStartBit_ = 3
 

Additional Inherited Members

- Public Types inherited from DetId
enum  Detector {
  Tracker =1, Muon =2, Ecal =3, Hcal =4,
  Calo =5, Forward =6, VeryForward =7
}
 
- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

DetUnit identifier for DT chambers.

Author
Stefano ARGIRO & G. Cerminara

Definition at line 14 of file DTChamberId.h.

Constructor & Destructor Documentation

DTChamberId::DTChamberId ( )

Default constructor. Fills the common part in the base and leaves 0 in all other fields

Definition at line 14 of file DTChamberId.cc.

Referenced by DTSuperLayerId::chamberId().

DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
static const int DT
Definition: MuonSubdetId.h:12
DTChamberId::DTChamberId ( uint32_t  id)

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 DTChamberId fields are zeroed; apart for this, no check is done on the vaildity of the values.

Definition at line 17 of file DTChamberId.cc.

References checkMuonId().

17  :
18  DetId(id & chamberIdMask_) { // Mask the bits outside DTChamberId fields
19  checkMuonId(); // Check this is a valid id for muon DTs.
20 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
void checkMuonId()
Definition: DTChamberId.cc:57
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:119
DTChamberId::DTChamberId ( DetId  id)

Definition at line 21 of file DTChamberId.cc.

References checkMuonId().

21  :
22  DetId(id.rawId() & chamberIdMask_) { // Mask the bits outside DTChamberId fields
23  checkMuonId(); // Check this is a valid id for muon DTs.
24 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
void checkMuonId()
Definition: DTChamberId.cc:57
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:119
DTChamberId::DTChamberId ( int  wheel,
int  station,
int  sector 
)

Construct from indexes. Input values are required to be within legal ranges, otherwise an exception is thrown.

Definition at line 28 of file DTChamberId.cc.

References Exception, DetId::id_, maxSectorId, maxStationId, maxWheelId, minWheelId, sectorMask_, sectorStartBit_, stationMask_, stationStartBit_, wheelMask_, and wheelStartBit_.

28  :
30  // Check that arguments are within the range
31  if (wheel < minWheelId || wheel > maxWheelId ||
32  station < minStationId || station > maxStationId ||
33  sector < minSectorId || sector > maxSectorId) {
34  throw cms::Exception("InvalidDetId") << "DTChamberId ctor:"
35  << " Invalid parameters: "
36  << " Wh:"<< wheel
37  << " St:"<< station
38  << " Se:"<< sector
39  << std::endl;
40  }
41 
42  int tmpwheelid = wheel- minWheelId +1;
43  id_ |= (tmpwheelid& wheelMask_) << wheelStartBit_ |
46 
47 }
static const int sectorStartBit_
Definition: DTChamberId.h:103
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
static const int wheelStartBit_
Definition: DTChamberId.h:101
static const uint32_t stationMask_
Definition: DTChamberId.h:110
static const uint32_t sectorMask_
Definition: DTChamberId.h:111
static const int maxStationId
highest station id
Definition: DTChamberId.h:69
static const int minWheelId
lowest wheel number
Definition: DTChamberId.h:75
static const int maxWheelId
highest wheel number
Definition: DTChamberId.h:77
uint32_t id_
Definition: DetId.h:55
int sector() const
Definition: DTChamberId.h:61
static const uint32_t wheelMask_
Definition: DTChamberId.h:109
static const int DT
Definition: MuonSubdetId.h:12
static const int stationStartBit_
Definition: DTChamberId.h:106
int station() const
Return the station number.
Definition: DTChamberId.h:51
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:45
static const int maxSectorId
highest sector id.
Definition: DTChamberId.h:73
DTChamberId::DTChamberId ( const DTChamberId chId)

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 51 of file DTChamberId.cc.

51  :
52  DetId(chId.rawId() & chamberIdMask_) { // The mask is required for proper slicing, i.e. if chId is actually a derived class.
53 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:119

Member Function Documentation

void DTChamberId::checkMuonId ( )
protected

Definition at line 57 of file DTChamberId.cc.

References DetId::det(), MuonSubdetId::DT, Exception, DetId::Muon, and DetId::subdetId().

Referenced by DTChamberId(), DTLayerId::DTLayerId(), DTSuperLayerId::DTSuperLayerId(), and DTWireId::DTWireId().

57  {
59  throw cms::Exception("InvalidDetId") << "DTChamberId ctor:"
60  << " det: " << det()
61  << " subdet: " << subdetId()
62  << " is not a valid DT id";
63  }
64 }
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
static const int DT
Definition: MuonSubdetId.h:12
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
int DTChamberId::sector ( ) const
inline

Return the sector number. Sectors are numbered from 1 to 12, starting at phi=0 and increasing with phi. In station 4, where the top and bottom setcors are made of two chambers, two additional sector numbers are used, 13 (after sector 4, top) and 14 (after sector 10, bottom).

Definition at line 61 of file DTChamberId.h.

References DetId::id_, sectorMask_, and sectorStartBit_.

Referenced by OMTFinputMaker::acceptDigi(), DTT0Calibration::analyze(), DTT0CalibrationNew::analyze(), DTVDriftCalibration::analyze(), MuonAlignmentAnalyzer::analyze(), DTChamberEfficiencyTask::analyze(), DTChamberEfficiency::analyze(), DTLocalTriggerSynchTask::analyze(), MuonAlignment::analyze(), DTDigiTask::analyze(), RPCEfficiency::analyze(), DTDigiTask::beginLuminosityBlock(), DTTriggerEfficiencyTask::bookChamberHistos(), DTRunConditionVar::bookChamberHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerSynchTest::bookChambHistos(), DTTriggerEfficiencyTest::bookChambHistos(), DTnoiseDBValidation::bookHisto(), DTEfficiencyTask::bookHistograms(), DTCalibValidation::bookHistograms(), DTVDriftSegmentCalibration::bookHistos(), DTTTrigOffsetCalibration::bookHistos(), DTResidualCalibration::bookHistos(), DTt0DBValidation::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTResolutionTest::bookHistos(), DTEfficiencyTest::bookHistos(), DTNoiseTask::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), DTLocalTriggerTask::bookHistos(), DTChamberEfficiencyTask::bookHistos(), DTLocalTriggerLutTask::bookHistos(), DTSegmentAnalysisTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), DTConfigTrivialProducer::buildManager(), DTTracoChip::calculateAngles(), MuonAlignmentFromReference::chamberPrettyNameFromId(), DTDigiTask::channelsMap(), DTCombinatorialExtendedPatternReco::closeSL(), DTSectCollPhCand::CoarseSync(), dtCalibration::DTVDriftMeanTimer::compute(), DTTrigGeomUtils::computeSCCoordinates(), DTConfigDBProducer::configFromCfg(), DTTrig::constTrigUnit(), dtCalibration::DTT0FEBPathCorrection::correction(), dtCalibration::DTTTrigResidualCorrection::correction(), DTDigiToRaw::createFedBuffers(), DTHVStatusHandler::createSnapshot(), DTTrig::createTUs(), DTResolutionAnalysisTest::dqmEndJob(), DTNoiseAnalysisTest::dqmEndLuminosityBlock(), DTOccupancyTest::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), DTSegtoRPC::DTSegtoRPC(), DTTracoChip::DTTracoChip(), DTConfigManager::dumpLUTParam(), DTHVStatusHandler::dumpSnapshot(), DTVDriftCalibration::endJob(), DTSegmentAnalysisTask::fillHistos(), MuonAlignmentFromReference::fitAndAlign(), DTLocalTriggerBaseTest::fullName(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTRunConditionVarClient::getChamberHistos(), DTNoiseCalibration::getChamberName(), DTNoiseComputation::getChamberName(), DTNoiseCalibration::getChannelName(), DTPosNegType::getCT(), DTPosNeg::getCT(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigBtiMap(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTracoMap(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), DTLocalTriggerSynchTest::getFloatFromME(), DTTPAnalyzer::getHistoName(), dtCalibration::DTVDriftSegment::getHistoName(), dtCalibration::DTTTrigT0SegCorrection::getHistoName(), dtCalibration::DTTTrigResidualCorrection::getHistoName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), OMTFinputMaker::getInputNumber(), DTNoiseCalibration::getLayerName(), DTNoiseComputation::getLayerName(), DTResolutionAnalysisTest::getMEName(), DTSegmentAnalysisTest::getMEName(), DTNoiseAnalysisTest::getMEName(), DTChamberEfficiencyTest::getMEName(), DTResolutionTest::getMEName(), DTOccupancyTest::getMEName(), DTEfficiencyTest::getMEName(), DTResolutionTest::getMEName2D(), TrackerMuonHitExtractor::getMuonHits(), DTTTrigCalibration::getOccupancyName(), DTPosNegType::getPN(), DTPosNeg::getPN(), DTNoiseCalibration::getSuperLayerName(), DTNoiseComputation::getSuperLayerName(), DTTTrigWriter::getTBoxName(), DTTTrigCalibration::getTBoxName(), geometryXMLparser.DTAlignable::index(), DetIdInfo::info(), TAMuonChamberMatch::info(), fireworks::info(), TrackerMuonHitExtractor::init(), DTHVStatusHandler::layerId(), DTConfigTrivialProducer::mapEntryName(), DTConfigDBProducer::mapEntryName(), L1TwinMux::MBLTCollection::MBLTCollection(), DTHVStatusHandler::offlineList(), DTBlockedROChannelsTest::performClientDiagnostic(), DTSegmentAnalysisTest::performClientDiagnostic(), MuonTrackProducer::produce(), MuonSimHitProducer::produce(), DTConfigDBProducer::readDTCCBConfig(), DTLocalTriggerBaseTask::runDDUvsTMAnalysis(), DTOccupancyTest::runOccupancyTest(), DTTrigData::sector(), csctf::TrackStub::sector(), DTTrigGeom::sector(), DTTracoId::sector(), DTBtiId::sector(), MuonIdProducer::sectorPhi(), DTTtrig::set(), DTMtime::set(), csctf::TrackStub::subsector(), and TracktoRPC::TracktoRPC().

61  {
62  return ((id_>>sectorStartBit_)& sectorMask_);
63  }
static const int sectorStartBit_
Definition: DTChamberId.h:103
static const uint32_t sectorMask_
Definition: DTChamberId.h:111
uint32_t id_
Definition: DetId.h:55
int DTChamberId::station ( ) const
inline

Return the station number.

Definition at line 51 of file DTChamberId.h.

References DetId::id_, stationMask_, and stationStartBit_.

Referenced by DTPreCalibrationTask::analyze(), DTVDriftCalibration::analyze(), MuonAlignmentAnalyzer::analyze(), DTSegment4DQuality::analyze(), DTChamberEfficiencyTask::analyze(), DTLocalTriggerLutTask::analyze(), DTChamberEfficiency::analyze(), DTLocalTriggerSynchTask::analyze(), MuonAlignment::analyze(), DTDigiTask::analyze(), RPCEfficiency::analyze(), DTDigiTask::beginLuminosityBlock(), DTNoiseComputation::beginRun(), DTTriggerEfficiencyTask::bookChamberHistos(), DTRunConditionVar::bookChamberHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerSynchTest::bookChambHistos(), DTTriggerEfficiencyTest::bookChambHistos(), DTnoiseDBValidation::bookHisto(), DTResolutionAnalysisTask::bookHistograms(), DTEfficiencyTask::bookHistograms(), DTCalibValidation::bookHistograms(), DTVDriftSegmentCalibration::bookHistos(), DTTTrigOffsetCalibration::bookHistos(), DTResidualCalibration::bookHistos(), DTt0DBValidation::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTEfficiencyTest::bookHistos(), DTNoiseTask::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), DTLocalTriggerTask::bookHistos(), DTChamberEfficiencyTask::bookHistos(), DTLocalTriggerLutTask::bookHistos(), DTSegmentAnalysisTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), AlignableMuon::buildDTBarrel(), DTConfigTrivialProducer::buildManager(), L1TMuon::GeometryTranslator::calcDTSpecificPoint(), MuonAlignmentFromReference::chamberPrettyNameFromId(), DTDigiTask::channelsMap(), DTTrig::chThetaSegm(), DTSectCollThCand::CoarseSync(), DTSectCollPhCand::CoarseSync(), dtCalibration::DTVDriftMeanTimer::compute(), DTLinearDriftFromDBAlgo::compute(), DTRecHitQuality::compute(), DTTrigGeomUtils::computeSCCoordinates(), DTConfigDBProducer::configFromCfg(), DTTrig::constTrigUnit(), dtCalibration::DTT0FEBPathCorrection::correction(), dtCalibration::DTTTrigResidualCorrection::correction(), DTDigiToRaw::createFedBuffers(), DTHVStatusHandler::createSnapshot(), DTResolutionAnalysisTest::dqmEndJob(), DTNoiseAnalysisTest::dqmEndLuminosityBlock(), DTOccupancyTest::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), DTSegtoRPC::DTSegtoRPC(), DTTracoChip::DTTracoChip(), DTConfigManager::dumpLUTParam(), DTHVStatusHandler::dumpSnapshot(), reco::HitPattern::encode(), DTTTrigOffsetCalibration::endJob(), DTVDriftCalibration::endJob(), AlignmentMonitorMuonResiduals::event(), DTSegmentAnalysisTask::fillHistos(), DTTimingExtractor::fillTiming(), MuonAlignmentFromReference::fitAndAlign(), DTLocalTriggerBaseTest::fullName(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTRunConditionVarClient::getChamberHistos(), DTNoiseCalibration::getChamberName(), DTNoiseComputation::getChamberName(), DTNoiseCalibration::getChannelName(), DTPosNegType::getCT(), DTPosNeg::getCT(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigBtiMap(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTracoMap(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), GlobalMuonRefitter::getFirstHits(), DTLocalTriggerSynchTest::getFloatFromME(), DTTPAnalyzer::getHistoName(), dtCalibration::DTVDriftSegment::getHistoName(), dtCalibration::DTTTrigT0SegCorrection::getHistoName(), dtCalibration::DTTTrigResidualCorrection::getHistoName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseCalibration::getLayerName(), DTNoiseComputation::getLayerName(), OMTFConfiguration::getLayerNumber(), DTNoiseComputation::getMaxNumBins(), DTResolutionAnalysisTest::getMEName(), DTSegmentAnalysisTest::getMEName(), DTNoiseAnalysisTest::getMEName(), DTChamberEfficiencyTest::getMEName(), DTResolutionTest::getMEName(), DTOccupancyTest::getMEName(), DTEfficiencyTest::getMEName(), DTResolutionTest::getMEName2D(), TrackerMuonHitExtractor::getMuonHits(), DTTTrigCalibration::getOccupancyName(), DTPosNegType::getPN(), DTPosNeg::getPN(), GlobalMuonRefitter::getRidOfSelectStationHits(), DTNoiseCalibration::getSuperLayerName(), DTNoiseComputation::getSuperLayerName(), DTTTrigWriter::getTBoxName(), DTTTrigCalibration::getTBoxName(), HLTDTActivityFilter::hltFilter(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), TAMuonChamberMatch::info(), fireworks::info(), TrackerMuonHitExtractor::init(), DTChamberEfficiencyTask::isGoodSegment(), DTHVStatusHandler::layerId(), DTConfigTrivialProducer::mapEntryName(), DTConfigDBProducer::mapEntryName(), L1TwinMux::MBLTCollection::MBLTCollection(), TrackTransformerForGlobalCosmicMuons::MuonKeep(), DTHVStatusHandler::offlineList(), DTChamberIdDetLayerComparator::operator()(), DTBlockedROChannelsTest::performClientDiagnostic(), DTSegmentAnalysisTest::performClientDiagnostic(), MuonTrackProducer::produce(), MuonSimHitProducer::produce(), MuonSeedPtExtractor::pT_extract(), DTConfigDBProducer::readDTCCBConfig(), DTLocalTriggerBaseTask::runDDUvsTMAnalysis(), DTOccupancyTest::runOccupancyTest(), DTChamberEfficiency::segQualityCut(), DTTtrig::set(), DTMtime::set(), SETSeedFinder::sortByLayer(), TAMuonChamberMatch::station(), reco::MuonChamberMatch::station(), DTTrigData::station(), csctf::TrackStub::station(), DTTrigGeom::station(), DTTracoId::station(), DTBtiId::station(), MuonSeedPtExtractor::stationCode(), and DynamicTruncation::stationfromDet().

51  {
52  return ((id_>>stationStartBit_) & stationMask_);
53  }
static const uint32_t stationMask_
Definition: DTChamberId.h:110
uint32_t id_
Definition: DetId.h:55
static const int stationStartBit_
Definition: DTChamberId.h:106
int DTChamberId::wheel ( ) const
inline

Return the wheel number.

Definition at line 45 of file DTChamberId.h.

References DetId::id_, createfilelist::int, minWheelId, wheelMask_, and wheelStartBit_.

Referenced by OMTFinputMaker::acceptDigi(), AlignmentMonitorMuonResiduals::afterAlignment(), DTT0Calibration::analyze(), DTT0CalibrationNew::analyze(), DTVDriftCalibration::analyze(), MuonAlignmentAnalyzer::analyze(), DTSegment4DQuality::analyze(), DTChamberEfficiencyTask::analyze(), DTLocalTriggerLutTask::analyze(), DTChamberEfficiency::analyze(), DTLocalTriggerSynchTask::analyze(), MuonAlignment::analyze(), DTDigiTask::analyze(), RPCEfficiency::analyze(), DTDigiTask::beginLuminosityBlock(), DTNoiseComputation::beginRun(), DTTriggerEfficiencyTask::bookChamberHistos(), DTRunConditionVar::bookChamberHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerSynchTest::bookChambHistos(), DTTriggerEfficiencyTest::bookChambHistos(), DTnoiseDBValidation::bookHisto(), DTEfficiencyTask::bookHistograms(), DTCalibValidation::bookHistograms(), DTVDriftSegmentCalibration::bookHistos(), DTTTrigOffsetCalibration::bookHistos(), DTResidualCalibration::bookHistos(), DTt0DBValidation::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTResolutionTest::bookHistos(), DTEfficiencyTest::bookHistos(), DTNoiseTask::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), DTLocalTriggerTask::bookHistos(), DTChamberEfficiencyTask::bookHistos(), DTLocalTriggerLutTask::bookHistos(), DTSegmentAnalysisTask::bookHistos(), DTLocalTriggerBaseTask::bookHistos(), AlignableMuon::buildDTBarrel(), DTConfigTrivialProducer::buildManager(), DTTracoChip::calculateAngles(), MuonAlignmentFromReference::chamberPrettyNameFromId(), DTDigiTask::channelsMap(), DTCombinatorialExtendedPatternReco::closeSL(), dtCalibration::DTVDriftMeanTimer::compute(), DTLinearDriftFromDBAlgo::compute(), DTRecHitQuality::compute(), DTConfigDBProducer::configFromCfg(), DTTrig::constTrigUnit(), dtCalibration::DTT0FEBPathCorrection::correction(), dtCalibration::DTTTrigResidualCorrection::correction(), DTDigiToRaw::createFedBuffers(), DTHVStatusHandler::createSnapshot(), DTTrig::createTUs(), DTResolutionAnalysisTest::dqmEndJob(), DTNoiseAnalysisTest::dqmEndLuminosityBlock(), DTOccupancyTest::dqmEndLuminosityBlock(), DTChamberEfficiencyTest::dqmEndLuminosityBlock(), DTResolutionTest::dqmEndLuminosityBlock(), DTEfficiencyTest::dqmEndLuminosityBlock(), DTSegtoRPC::DTSegtoRPC(), DTTracoChip::DTTracoChip(), DTConfigManager::dumpLUTParam(), DTHVStatusHandler::dumpSnapshot(), csctf::TrackStub::endcap(), DTVDriftCalibration::endJob(), AlignmentMonitorMuonResiduals::event(), DTSegmentAnalysisTask::fillHistos(), MuonAlignmentFromReference::fitAndAlign(), DTLocalTriggerBaseTest::fullName(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTRunConditionVarClient::getChamberHistos(), DTNoiseCalibration::getChamberName(), DTNoiseComputation::getChamberName(), DTNoiseCalibration::getChannelName(), DTPosNegType::getCT(), DTPosNeg::getCT(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigBtiMap(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTracoMap(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), DTLocalTriggerSynchTest::getFloatFromME(), DTTPAnalyzer::getHistoName(), dtCalibration::DTVDriftSegment::getHistoName(), dtCalibration::DTTTrigT0SegCorrection::getHistoName(), dtCalibration::DTTTrigResidualCorrection::getHistoName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseCalibration::getLayerName(), DTNoiseComputation::getLayerName(), DTResolutionAnalysisTest::getMEName(), DTSegmentAnalysisTest::getMEName(), DTNoiseAnalysisTest::getMEName(), DTChamberEfficiencyTest::getMEName(), DTResolutionTest::getMEName(), DTOccupancyTest::getMEName(), DTEfficiencyTest::getMEName(), DTResolutionTest::getMEName2D(), TrackerMuonHitExtractor::getMuonHits(), DTTTrigCalibration::getOccupancyName(), DTPosNegType::getPN(), DTPosNeg::getPN(), MuonSeedPtExtractor::getPt(), DTNoiseCalibration::getSuperLayerName(), DTNoiseComputation::getSuperLayerName(), DTTTrigWriter::getTBoxName(), DTTTrigCalibration::getTBoxName(), geometryXMLparser.DTAlignable::index(), DetIdInfo::info(), TAMuonChamberMatch::info(), fireworks::info(), TrackerMuonHitExtractor::init(), DTHVStatusHandler::layerId(), DTConfigTrivialProducer::mapEntryName(), DTConfigDBProducer::mapEntryName(), L1TwinMux::MBLTCollection::MBLTCollection(), TrackTransformerForGlobalCosmicMuons::MuonKeep(), DTHVStatusHandler::offlineList(), DTBlockedROChannelsTest::performClientDiagnostic(), DTSegmentAnalysisTest::performClientDiagnostic(), MuonTrackProducer::produce(), MuonSimHitProducer::produce(), MuonSeedPtExtractor::pT_extract(), DTConfigDBProducer::readDTCCBConfig(), DTLocalTriggerLutTest::runClientDiagnostic(), DTTriggerLutTest::runClientDiagnostic(), DTLocalTriggerBaseTask::runDDUvsTMAnalysis(), DTTtrig::set(), DTMtime::set(), DTParametrizedDriftAlgo::setES(), TracktoRPC::TracktoRPC(), DTTrigData::wheel(), DTTrigGeom::wheel(), DTTracoId::wheel(), and DTBtiId::wheel().

45  {
46  return int((id_>>wheelStartBit_) & wheelMask_)+ minWheelId -1;
47  }
static const int wheelStartBit_
Definition: DTChamberId.h:101
static const int minWheelId
lowest wheel number
Definition: DTChamberId.h:75
uint32_t id_
Definition: DetId.h:55
static const uint32_t wheelMask_
Definition: DTChamberId.h:109

Member Data Documentation

const uint32_t DTChamberId::chamberIdMask_
staticprotected
Initial value:

Definition at line 119 of file DTChamberId.h.

Referenced by DTSuperLayerId::chamberId().

const uint32_t DTChamberId::layerIdMask_ = ~(wireMask_<<wireStartBit_)
staticprotected

Definition at line 116 of file DTChamberId.h.

Referenced by DTLayerId::DTLayerId(), and DTWireId::layerId().

const int DTChamberId::layerNumBits_ = 3
staticprotected

Definition at line 96 of file DTChamberId.h.

const int DTChamberId::layerStartBit_ = wireStartBit_ + wireNumBits_
staticprotected

Definition at line 97 of file DTChamberId.h.

Referenced by DTLayerId::DTLayerId(), and DTLayerId::layer().

const uint32_t DTChamberId::lMask_ = 0x7
staticprotected

Definition at line 113 of file DTChamberId.h.

Referenced by DTLayerId::DTLayerId(), and DTLayerId::layer().

const int DTChamberId::maxLayerId = 4
static

highest layer id

Definition at line 85 of file DTChamberId.h.

Referenced by DTLayerId::DTLayerId(), and MuonShowerInformationFiller::fillHitsByStation().

const int DTChamberId::maxSectorId = 14
static

highest sector id.

Definition at line 73 of file DTChamberId.h.

Referenced by MuonDTDetLayerGeometryBuilder::buildLayers(), and DTChamberId().

const int DTChamberId::maxStationId = 4
static

highest station id

Definition at line 69 of file DTChamberId.h.

Referenced by MuonDTDetLayerGeometryBuilder::buildLayers(), and DTChamberId().

const int DTChamberId::maxSuperLayerId = 3
static

highest superlayer id

Definition at line 81 of file DTChamberId.h.

Referenced by DTSuperLayerId::DTSuperLayerId(), and MuonShowerInformationFiller::fillHitsByStation().

const int DTChamberId::maxWheelId = 2
static

highest wheel number

Definition at line 77 of file DTChamberId.h.

Referenced by MuonDTDetLayerGeometryBuilder::buildLayers(), and DTChamberId().

const int DTChamberId::maxWireId = 97
static

highest wire id (chambers have 48 to 96 wires)

Definition at line 89 of file DTChamberId.h.

Referenced by DTWireId::DTWireId().

const int DTChamberId::minLayerId = 0
static

lowest layer id. 0 indicates a full SL

Definition at line 83 of file DTChamberId.h.

Referenced by MuonShowerInformationFiller::fillHitsByStation().

const int DTChamberId::minSectorId = 0
static

lowest sector id. 0 indicates all sectors (a station)

Definition at line 71 of file DTChamberId.h.

Referenced by MuonDTDetLayerGeometryBuilder::buildLayers().

const int DTChamberId::minStationId = 1
static

lowest station id

Definition at line 67 of file DTChamberId.h.

Referenced by MuonDTDetLayerGeometryBuilder::buildLayers().

const int DTChamberId::minSuperLayerId = 0
static

loweset super layer id. 0 indicates a full chamber

Definition at line 79 of file DTChamberId.h.

Referenced by MuonShowerInformationFiller::fillHitsByStation().

const int DTChamberId::minWheelId = -2
static

lowest wheel number

Definition at line 75 of file DTChamberId.h.

Referenced by MuonDTDetLayerGeometryBuilder::buildLayers(), DTChamberId(), and wheel().

const int DTChamberId::minWireId = 0
static

lowest wire id (numbering starts from 1 or 2). 0 indicates a full layer

Definition at line 87 of file DTChamberId.h.

const uint32_t DTChamberId::sectorMask_ = 0xf
staticprotected

Definition at line 111 of file DTChamberId.h.

Referenced by DTChamberId(), and sector().

const int DTChamberId::sectorNumBits_ = 4
staticprotected

Definition at line 102 of file DTChamberId.h.

const int DTChamberId::sectorStartBit_ = wheelStartBit_ + wheelNumBits_
staticprotected

Definition at line 103 of file DTChamberId.h.

Referenced by DTChamberId(), and sector().

const int DTChamberId::slayerNumBits_ = 2
staticprotected

Definition at line 98 of file DTChamberId.h.

const int DTChamberId::slayerStartBit_ = layerStartBit_+ layerNumBits_
staticprotected

Definition at line 99 of file DTChamberId.h.

Referenced by DTSuperLayerId::DTSuperLayerId(), and DTSuperLayerId::superLayer().

const uint32_t DTChamberId::slIdMask_
staticprotected
Initial value:

Definition at line 117 of file DTChamberId.h.

Referenced by DTSuperLayerId::DTSuperLayerId(), and DTLayerId::superlayerId().

const uint32_t DTChamberId::slMask_ = 0x3
staticprotected

Definition at line 112 of file DTChamberId.h.

Referenced by DTSuperLayerId::DTSuperLayerId(), and DTSuperLayerId::superLayer().

const uint32_t DTChamberId::stationMask_ = 0x7
staticprotected

Definition at line 110 of file DTChamberId.h.

Referenced by DTChamberId(), and station().

const int DTChamberId::stationNumBits_ = 3
staticprotected

two bits would be enough, but we could use the number "0" as a wildcard

Definition at line 105 of file DTChamberId.h.

const int DTChamberId::stationStartBit_ = sectorStartBit_ + sectorNumBits_
staticprotected

Definition at line 106 of file DTChamberId.h.

Referenced by DTChamberId(), and station().

const uint32_t DTChamberId::wheelMask_ = 0x7
staticprotected

Definition at line 109 of file DTChamberId.h.

Referenced by DTChamberId(), and wheel().

const int DTChamberId::wheelNumBits_ = 3
staticprotected

Definition at line 100 of file DTChamberId.h.

const int DTChamberId::wheelStartBit_ = slayerStartBit_ + slayerNumBits_
staticprotected

Definition at line 101 of file DTChamberId.h.

Referenced by DTChamberId(), and wheel().

const uint32_t DTChamberId::wireMask_ = 0x7f
staticprotected

Definition at line 114 of file DTChamberId.h.

Referenced by DTWireId::DTWireId(), and DTWireId::wire().

const int DTChamberId::wireNumBits_ = 7
staticprotected

two bits would be enough, but we could use the number "0" as a wildcard

Definition at line 94 of file DTChamberId.h.

const int DTChamberId::wireStartBit_ = 3
staticprotected

Definition at line 95 of file DTChamberId.h.

Referenced by DTWireId::DTWireId(), and DTWireId::wire().