CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
}
 
- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

DetUnit identifier for DT chambers.

Date:
2007/08/07 22:41:15
Revision:
1.9
Author
Stefano ARGIRO & G. Cerminara

Definition at line 16 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 16 of file DTChamberId.cc.

Referenced by DTSuperLayerId::chamberId().

DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
static const int DT
Definition: MuonSubdetId.h:14
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 19 of file DTChamberId.cc.

References checkMuonId().

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

Definition at line 23 of file DTChamberId.cc.

References checkMuonId().

23  :
24  DetId(id.rawId() & chamberIdMask_) { // Mask the bits outside DTChamberId fields
25  checkMuonId(); // Check this is a valid id for muon DTs.
26 }
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
void checkMuonId()
Definition: DTChamberId.cc:59
static const uint32_t chamberIdMask_
Definition: DTChamberId.h:121
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 30 of file DTChamberId.cc.

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

30  :
32  // Check that arguments are within the range
33  if (wheel < minWheelId || wheel > maxWheelId ||
34  station < minStationId || station > maxStationId ||
35  sector < minSectorId || sector > maxSectorId) {
36  throw cms::Exception("InvalidDetId") << "DTChamberId ctor:"
37  << " Invalid parameters: "
38  << " Wh:"<< wheel
39  << " St:"<< station
40  << " Se:"<< sector
41  << std::endl;
42  }
43 
44  int tmpwheelid = wheel- minWheelId +1;
45  id_ |= (tmpwheelid& wheelMask_) << wheelStartBit_ |
48 
49 }
static const int sectorStartBit_
Definition: DTChamberId.h:105
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:28
static const int wheelStartBit_
Definition: DTChamberId.h:103
static const uint32_t stationMask_
Definition: DTChamberId.h:112
static const uint32_t sectorMask_
Definition: DTChamberId.h:113
static const int maxStationId
highest station id
Definition: DTChamberId.h:71
static const int minWheelId
lowest wheel number
Definition: DTChamberId.h:77
static const int maxWheelId
highest wheel number
Definition: DTChamberId.h:79
uint32_t id_
Definition: DetId.h:57
int sector() const
Definition: DTChamberId.h:63
static const uint32_t wheelMask_
Definition: DTChamberId.h:111
static const int DT
Definition: MuonSubdetId.h:14
static const int stationStartBit_
Definition: DTChamberId.h:108
int station() const
Return the station number.
Definition: DTChamberId.h:53
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:47
static const int maxSectorId
highest sector id.
Definition: DTChamberId.h:75
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 53 of file DTChamberId.cc.

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

Member Function Documentation

void DTChamberId::checkMuonId ( )
protected

Definition at line 59 of file DTChamberId.cc.

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

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

59  {
61  throw cms::Exception("InvalidDetId") << "DTChamberId ctor:"
62  << " det: " << det()
63  << " subdet: " << subdetId()
64  << " is not a valid DT id";
65  }
66 }
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
static const int DT
Definition: MuonSubdetId.h:14
Detector det() const
get the detector field from this detid
Definition: DetId.h:37
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 63 of file DTChamberId.h.

References DetId::id_, sectorMask_, and sectorStartBit_.

Referenced by DTT0Calibration::analyze(), DTT0CalibrationNew::analyze(), DTVDriftCalibration::analyze(), DTNoiseCalibration::analyze(), MuonAlignmentAnalyzer::analyze(), DTChamberEfficiencyTask::analyze(), DTChamberEfficiency::analyze(), DTLocalTriggerSynchTask::analyze(), DTDigiTask::analyze(), DTTriggerEfficiencyTask::analyze(), MuonAlignment::analyze(), RPCEfficiency::analyze(), DTTriggerEfficiencyTask::bookChamberHistos(), DTTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerSynchTest::bookChambHistos(), DTVDriftSegmentCalibration::bookHistos(), DTTTrigOffsetCalibration::bookHistos(), DTResidualCalibration::bookHistos(), DTt0DBValidation::bookHistos(), DTTestPulsesTask::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTDigiForNoiseTask::bookHistos(), DTNoiseTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), DTResolutionTest::bookHistos(), DTLocalTriggerTask::bookHistos(), DTtTrigCalibrationTest::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTEfficiencyTest::bookHistos(), DTDeadChannelTest::bookHistos(), DTEfficiencyTask::bookHistos(), DTChamberEfficiencyTask::bookHistos(), DTSegmentAnalysisTask::bookHistos(), DTCalibValidation::bookHistos(), DTConfigTrivialProducer::buildManager(), DTTracoChip::calculateAngles(), DTCombinatorialExtendedPatternReco::closeSL(), DTSectCollPhCand::CoarseSync(), DTVDriftMeanTimer::compute(), DTTrigGeomUtils::computeSCCoordinates(), DTConfigDBProducer::configFromCfg(), DTTrig::constTrigUnit(), DTTTrigResidualCorrection::correction(), DTDigiToRaw::createFedBuffers(), DTHVStatusHandler::createSnapshot(), DTTrig::createTUs(), DTSegtoRPC::DTSegtoRPC(), DTTracoChip::DTTracoChip(), DTConfigManager::dumpLUTParam(), DTHVStatusHandler::dumpSnapshot(), DTVDriftCalibration::endJob(), DTCreateSummaryHistos::endJob(), DTOccupancyTest::endLuminosityBlock(), DTNoiseAnalysisTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTEfficiencyTest::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), DTResolutionAnalysisTest::endRun(), DTSegmentAnalysisTask::fillHistos(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTNoiseComputation::getChamberName(), DTPosNeg::getCT(), DTPosNegType::getCT(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigBtiMap(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTracoMap(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), DTLocalTriggerSynchTest::getFloatFromME(), DTVDriftSegment::getHistoName(), DTTPAnalyzer::getHistoName(), DTTTrigT0SegCorrection::getHistoName(), DTTTrigResidualCorrection::getHistoName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseComputation::getLayerName(), DTNoiseCalibration::getLayerName(), DTResolutionAnalysisTest::getMEName(), DTSegmentAnalysisTest::getMEName(), DTNoiseAnalysisTest::getMEName(), DTResolutionTest::getMEName(), DTDeadChannelTest::getMEName(), DTOccupancyTest::getMEName(), DTtTrigCalibrationTest::getMEName(), DTChamberEfficiencyTest::getMEName(), DTEfficiencyTest::getMEName(), DTNoiseTest::getMEName(), DTResolutionTest::getMEName2D(), TrackerMuonHitExtractor::getMuonHits(), DTTTrigCalibration::getOccupancyName(), DTPosNegType::getPN(), DTPosNeg::getPN(), DTNoiseComputation::getSuperLayerName(), DTNoiseCalibration::getSuperLayerName(), DTTTrigWriter::getTBoxName(), DTTTrigCalibration::getTBoxName(), geometryXMLparser.DTAlignable::index(), DetIdInfo::info(), TAMuonChamberMatch::info(), fireworks::info(), TrackerMuonHitExtractor::init(), DTHVStatusHandler::layerId(), DTConfigTrivialProducer::mapEntryName(), DTConfigDBProducer::mapEntryName(), DTHVStatusHandler::offlineList(), DTBlockedROChannelsTest::performClientDiagnostic(), DTSegmentAnalysisTest::performClientDiagnostic(), MuonTrackProducer::produce(), MuonSimHitProducer::produce(), DTConfigDBProducer::readDTCCBConfig(), DTFineDelayCorr::runClientDiagnostic(), DTOccupancyTest::runOccupancyTest(), DTTrigData::sector(), DTTracoId::sector(), DTTrigGeom::sector(), DTBtiId::sector(), MuonIdProducer::sectorPhi(), DTTtrig::set(), DTMtime::set(), MuonAlignmentFromReference::terminate(), and TracktoRPC::TracktoRPC().

63  {
64  return ((id_>>sectorStartBit_)& sectorMask_);
65  }
static const int sectorStartBit_
Definition: DTChamberId.h:105
static const uint32_t sectorMask_
Definition: DTChamberId.h:113
uint32_t id_
Definition: DetId.h:57
int DTChamberId::station ( ) const
inline

Return the station number.

Definition at line 53 of file DTChamberId.h.

References DetId::id_, stationMask_, and stationStartBit_.

Referenced by DTVDriftCalibration::analyze(), DTPreCalibrationTask::analyze(), MuonAlignmentAnalyzer::analyze(), DTChamberEfficiencyTask::analyze(), DTChamberEfficiency::analyze(), DTLocalTriggerSynchTask::analyze(), DTDigiTask::analyze(), MuonAlignment::analyze(), RPCEfficiency::analyze(), DTResolutionAnalysisTask::beginRun(), DTNoiseComputation::beginRun(), DTTriggerEfficiencyTask::bookChamberHistos(), DTTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerSynchTest::bookChambHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), DTVDriftSegmentCalibration::bookHistos(), DTTTrigOffsetCalibration::bookHistos(), DTResidualCalibration::bookHistos(), DTt0DBValidation::bookHistos(), DTTestPulsesTask::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTDigiForNoiseTask::bookHistos(), DTNoiseTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), DTLocalTriggerTask::bookHistos(), DTtTrigCalibrationTest::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTEfficiencyTest::bookHistos(), DTDeadChannelTest::bookHistos(), DTEfficiencyTask::bookHistos(), DTChamberEfficiencyTask::bookHistos(), DTSegmentAnalysisTask::bookHistos(), DTCalibValidation::bookHistos(), AlignableMuon::buildDTBarrel(), DTConfigTrivialProducer::buildManager(), GlobalMuonRefitter::checkMuonHits(), DTTrig::chThetaSegm(), DTSectCollThCand::CoarseSync(), DTSectCollPhCand::CoarseSync(), ResidualRefitting::CollectTrackHits(), DTVDriftMeanTimer::compute(), DTLinearDriftFromDBAlgo::compute(), DTTrigGeomUtils::computeSCCoordinates(), DTConfigDBProducer::configFromCfg(), DTTrig::constTrigUnit(), DTTTrigResidualCorrection::correction(), DTDigiToRaw::createFedBuffers(), DTHVStatusHandler::createSnapshot(), DTSegtoRPC::DTSegtoRPC(), DTTracoChip::DTTracoChip(), DTConfigManager::dumpLUTParam(), DTHVStatusHandler::dumpSnapshot(), DTTTrigOffsetCalibration::endJob(), DTVDriftCalibration::endJob(), DTCreateSummaryHistos::endJob(), DTOccupancyTest::endLuminosityBlock(), DTNoiseAnalysisTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), DTEfficiencyTest::endLuminosityBlock(), DTResolutionAnalysisTest::endRun(), AlignmentMonitorMuonResiduals::event(), DTSegmentAnalysisTask::fillHistos(), DTTimingExtractor::fillTiming(), HLTDTActivityFilter::filter(), DynamicTruncation::filteringAlgo(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTNoiseComputation::getChamberName(), DTPosNeg::getCT(), DTPosNegType::getCT(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigBtiMap(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTracoMap(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), DTLocalTriggerSynchTest::getFloatFromME(), DTVDriftSegment::getHistoName(), DTTPAnalyzer::getHistoName(), DTTTrigT0SegCorrection::getHistoName(), DTTTrigResidualCorrection::getHistoName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseComputation::getLayerName(), DTNoiseCalibration::getLayerName(), DTNoiseComputation::getMaxNumBins(), DTResolutionAnalysisTest::getMEName(), DTSegmentAnalysisTest::getMEName(), DTNoiseAnalysisTest::getMEName(), DTResolutionTest::getMEName(), DTOccupancyTest::getMEName(), DTDeadChannelTest::getMEName(), DTtTrigCalibrationTest::getMEName(), DTEfficiencyTest::getMEName(), DTChamberEfficiencyTest::getMEName(), DTNoiseTest::getMEName(), DTResolutionTest::getMEName2D(), TrackerMuonHitExtractor::getMuonHits(), DTTTrigCalibration::getOccupancyName(), DTPosNeg::getPN(), DTPosNegType::getPN(), GlobalMuonRefitter::getRidOfSelectStationHits(), DTNoiseComputation::getSuperLayerName(), DTNoiseCalibration::getSuperLayerName(), DTTTrigWriter::getTBoxName(), DTTTrigCalibration::getTBoxName(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), TAMuonChamberMatch::info(), fireworks::info(), TrackerMuonHitExtractor::init(), DTChamberEfficiencyTask::isGoodSegment(), DTHVStatusHandler::layerId(), DTConfigTrivialProducer::mapEntryName(), DTConfigDBProducer::mapEntryName(), TrackTransformerForGlobalCosmicMuons::MuonKeep(), DTHVStatusHandler::offlineList(), DTChamberIdDetLayerComparator::operator()(), DTBlockedROChannelsTest::performClientDiagnostic(), DTSegmentAnalysisTest::performClientDiagnostic(), MuonTrackProducer::produce(), MuonSimHitProducer::produce(), MuonSeedPtExtractor::pT_extract(), DTConfigDBProducer::readDTCCBConfig(), ResidualRefitting::ReturnSector(), ResidualRefitting::ReturnStation(), DTFineDelayCorr::runClientDiagnostic(), DTOccupancyTest::runOccupancyTest(), DTChamberEfficiency::segQualityCut(), GlobalMuonRefitter::selectMuonHits(), DTTtrig::set(), DTMtime::set(), SETSeedFinder::sortByLayer(), TAMuonChamberMatch::station(), reco::MuonChamberMatch::station(), DTTrigData::station(), DTTrigGeom::station(), DTTracoId::station(), DTBtiId::station(), MuonSeedPtExtractor::stationCode(), and MuonAlignmentFromReference::terminate().

53  {
54  return ((id_>>stationStartBit_) & stationMask_);
55  }
static const uint32_t stationMask_
Definition: DTChamberId.h:112
uint32_t id_
Definition: DetId.h:57
static const int stationStartBit_
Definition: DTChamberId.h:108
int DTChamberId::wheel ( ) const
inline

Return the wheel number.

Definition at line 47 of file DTChamberId.h.

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

Referenced by AlignmentMonitorMuonResiduals::afterAlignment(), DTT0Calibration::analyze(), DTT0CalibrationNew::analyze(), DTVDriftCalibration::analyze(), DTNoiseCalibration::analyze(), MuonAlignmentAnalyzer::analyze(), DTChamberEfficiencyTask::analyze(), MuonIdVal::analyze(), DTChamberEfficiency::analyze(), DTLocalTriggerSynchTask::analyze(), DTDigiTask::analyze(), DTTriggerEfficiencyTask::analyze(), MuonAlignment::analyze(), RPCEfficiency::analyze(), DTNoiseComputation::beginRun(), DTTriggerEfficiencyTask::bookChamberHistos(), DTTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerEfficiencyTest::bookChambHistos(), DTLocalTriggerSynchTest::bookChambHistos(), DTVDriftSegmentCalibration::bookHistos(), DTTTrigOffsetCalibration::bookHistos(), DTResidualCalibration::bookHistos(), DTt0DBValidation::bookHistos(), DTTestPulsesTask::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTDigiForNoiseTask::bookHistos(), DTNoiseTask::bookHistos(), DTLocalTriggerSynchTask::bookHistos(), DTResolutionTest::bookHistos(), DTLocalTriggerTask::bookHistos(), DTtTrigCalibrationTest::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTChamberEfficiencyTest::bookHistos(), DTEfficiencyTest::bookHistos(), DTDeadChannelTest::bookHistos(), DTEfficiencyTask::bookHistos(), DTChamberEfficiencyTask::bookHistos(), DTSegmentAnalysisTask::bookHistos(), DTCalibValidation::bookHistos(), AlignableMuon::buildDTBarrel(), DTConfigTrivialProducer::buildManager(), DTTracoChip::calculateAngles(), DTCombinatorialExtendedPatternReco::closeSL(), DTVDriftMeanTimer::compute(), DTLinearDriftFromDBAlgo::compute(), DTRecHitQuality::compute(), DTConfigDBProducer::configFromCfg(), DTTrig::constTrigUnit(), DTTTrigResidualCorrection::correction(), DTDigiToRaw::createFedBuffers(), DTHVStatusHandler::createSnapshot(), DTTrig::createTUs(), DTSegtoRPC::DTSegtoRPC(), DTTracoChip::DTTracoChip(), DTConfigManager::dumpLUTParam(), DTHVStatusHandler::dumpSnapshot(), DTVDriftCalibration::endJob(), DTCreateSummaryHistos::endJob(), DTOccupancyTest::endLuminosityBlock(), DTNoiseAnalysisTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), DTEfficiencyTest::endLuminosityBlock(), DTResolutionAnalysisTest::endRun(), AlignmentMonitorMuonResiduals::event(), DTSegmentAnalysisTask::fillHistos(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTNoiseComputation::getChamberName(), DTPosNegType::getCT(), DTPosNeg::getCT(), DTConfigManager::getDTConfigBti(), DTConfigManager::getDTConfigBtiMap(), DTConfigManager::getDTConfigLUTs(), DTConfigManager::getDTConfigTraco(), DTConfigManager::getDTConfigTracoMap(), DTConfigManager::getDTConfigTrigUnit(), DTConfigManager::getDTConfigTSPhi(), DTConfigManager::getDTConfigTSTheta(), DTLocalTriggerSynchTest::getFloatFromME(), DTVDriftSegment::getHistoName(), DTTPAnalyzer::getHistoName(), DTTTrigT0SegCorrection::getHistoName(), DTTTrigResidualCorrection::getHistoName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseComputation::getLayerName(), DTNoiseCalibration::getLayerName(), DTResolutionAnalysisTest::getMEName(), DTSegmentAnalysisTest::getMEName(), DTNoiseAnalysisTest::getMEName(), DTResolutionTest::getMEName(), DTOccupancyTest::getMEName(), DTDeadChannelTest::getMEName(), DTtTrigCalibrationTest::getMEName(), DTEfficiencyTest::getMEName(), DTChamberEfficiencyTest::getMEName(), DTNoiseTest::getMEName(), DTResolutionTest::getMEName2D(), TrackerMuonHitExtractor::getMuonHits(), DTTTrigCalibration::getOccupancyName(), DTPosNeg::getPN(), DTPosNegType::getPN(), MuonSeedPtExtractor::getPt(), GlobalMuonRefitter::getRidOfSelectStationHits(), DTNoiseComputation::getSuperLayerName(), DTNoiseCalibration::getSuperLayerName(), DTTTrigWriter::getTBoxName(), DTTTrigCalibration::getTBoxName(), geometryXMLparser.DTAlignable::index(), DetIdInfo::info(), TAMuonChamberMatch::info(), fireworks::info(), TrackerMuonHitExtractor::init(), DTHVStatusHandler::layerId(), DTConfigTrivialProducer::mapEntryName(), DTConfigDBProducer::mapEntryName(), TrackTransformerForGlobalCosmicMuons::MuonKeep(), DTHVStatusHandler::offlineList(), DTBlockedROChannelsTest::performClientDiagnostic(), DTSegmentAnalysisTest::performClientDiagnostic(), MuonTrackProducer::produce(), MuonSimHitProducer::produce(), MuonSeedPtExtractor::pT_extract(), DTConfigDBProducer::readDTCCBConfig(), DTLocalTriggerLutTest::runClientDiagnostic(), DTFineDelayCorr::runClientDiagnostic(), DTOccupancyTest::runOccupancyTest(), DTLocalTriggerTask::runSegmentAnalysis(), DTTtrig::set(), DTMtime::set(), MuonAlignmentFromReference::terminate(), TracktoRPC::TracktoRPC(), DTTrigData::wheel(), DTTrigGeom::wheel(), DTTracoId::wheel(), DTBtiId::wheel(), and MuonAlignmentOutputXML::writeComponents().

47  {
48  return int((id_>>wheelStartBit_) & wheelMask_)+ minWheelId -1;
49  }
static const int wheelStartBit_
Definition: DTChamberId.h:103
static const int minWheelId
lowest wheel number
Definition: DTChamberId.h:77
uint32_t id_
Definition: DetId.h:57
static const uint32_t wheelMask_
Definition: DTChamberId.h:111

Member Data Documentation

const uint32_t DTChamberId::chamberIdMask_
staticprotected
Initial value:

Definition at line 121 of file DTChamberId.h.

Referenced by DTSuperLayerId::chamberId().

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

Definition at line 118 of file DTChamberId.h.

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

const int DTChamberId::layerNumBits_ = 3
staticprotected

Definition at line 98 of file DTChamberId.h.

const int DTChamberId::layerStartBit_ = wireStartBit_ + wireNumBits_
staticprotected

Definition at line 99 of file DTChamberId.h.

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

const uint32_t DTChamberId::lMask_ = 0x7
staticprotected

Definition at line 115 of file DTChamberId.h.

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

const int DTChamberId::maxLayerId = 4
static

highest layer id

Definition at line 87 of file DTChamberId.h.

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

const int DTChamberId::maxSectorId = 14
static

highest sector id.

Definition at line 75 of file DTChamberId.h.

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

const int DTChamberId::maxStationId = 4
static

highest station id

Definition at line 71 of file DTChamberId.h.

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

const int DTChamberId::maxSuperLayerId = 3
static

highest superlayer id

Definition at line 83 of file DTChamberId.h.

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

const int DTChamberId::maxWheelId = 2
static

highest wheel number

Definition at line 79 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 91 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 85 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 73 of file DTChamberId.h.

Referenced by MuonDTDetLayerGeometryBuilder::buildLayers().

const int DTChamberId::minStationId = 1
static

lowest station id

Definition at line 69 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 81 of file DTChamberId.h.

Referenced by MuonShowerInformationFiller::fillHitsByStation().

const int DTChamberId::minWheelId = -2
static

lowest wheel number

Definition at line 77 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 89 of file DTChamberId.h.

const uint32_t DTChamberId::sectorMask_ = 0xf
staticprotected

Definition at line 113 of file DTChamberId.h.

Referenced by DTChamberId(), and sector().

const int DTChamberId::sectorNumBits_ = 4
staticprotected

Definition at line 104 of file DTChamberId.h.

const int DTChamberId::sectorStartBit_ = wheelStartBit_ + wheelNumBits_
staticprotected

Definition at line 105 of file DTChamberId.h.

Referenced by DTChamberId(), and sector().

const int DTChamberId::slayerNumBits_ = 2
staticprotected

Definition at line 100 of file DTChamberId.h.

const int DTChamberId::slayerStartBit_ = layerStartBit_+ layerNumBits_
staticprotected

Definition at line 101 of file DTChamberId.h.

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

const uint32_t DTChamberId::slIdMask_
staticprotected
Initial value:

Definition at line 119 of file DTChamberId.h.

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

const uint32_t DTChamberId::slMask_ = 0x3
staticprotected

Definition at line 114 of file DTChamberId.h.

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

const uint32_t DTChamberId::stationMask_ = 0x7
staticprotected

Definition at line 112 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 107 of file DTChamberId.h.

const int DTChamberId::stationStartBit_ = sectorStartBit_ + sectorNumBits_
staticprotected

Definition at line 108 of file DTChamberId.h.

Referenced by DTChamberId(), and station().

const uint32_t DTChamberId::wheelMask_ = 0x7
staticprotected

Definition at line 111 of file DTChamberId.h.

Referenced by DTChamberId(), and wheel().

const int DTChamberId::wheelNumBits_ = 3
staticprotected

Definition at line 102 of file DTChamberId.h.

const int DTChamberId::wheelStartBit_ = slayerStartBit_ + slayerNumBits_
staticprotected

Definition at line 103 of file DTChamberId.h.

Referenced by DTChamberId(), and wheel().

const uint32_t DTChamberId::wireMask_ = 0x7f
staticprotected

Definition at line 116 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 96 of file DTChamberId.h.

const int DTChamberId::wireStartBit_ = 3
staticprotected

Definition at line 97 of file DTChamberId.h.

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