CMS 3D CMS Logo

Public Member Functions

DTSuperLayerId Class Reference

#include <DTSuperLayerId.h>

Inheritance diagram for DTSuperLayerId:
DTChamberId DetId DTLayerId DTWireId

List of all members.

Public Member Functions

DTChamberId chamberId () const
 Return the corresponding ChamberId.
 DTSuperLayerId (const DTSuperLayerId &slId)
 DTSuperLayerId ()
 DTSuperLayerId (uint32_t id)
 DTSuperLayerId (const DTChamberId &chId, int superlayer)
 Constructor from a DTChamberId and SL number.
 DTSuperLayerId (int wheel, int station, int sector, int superlayer)
int superlayer () const
 Return the superlayer number (deprecated method name)
int superLayer () const
 Return the superlayer number.

Detailed Description

DetUnit identifier for DT SuperLayers (SL)

Date:
2006/04/12 17:52:39
Revision:
1.4
Author:
G. Cerminara - INFN Torino

Definition at line 15 of file DTSuperLayerId.h.


Constructor & Destructor Documentation

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().

: 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_.

                                          {
  id_ = id & slIdMask_; // Mask the bits outside DTSuperLayerId fields
  checkMuonId();        // Check this is a valid id for muon DTs.
}
DTSuperLayerId::DTSuperLayerId ( int  wheel,
int  station,
int  sector,
int  superlayer 
)

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 Exception, DetId::id_, DTChamberId::maxSuperLayerId, DTChamberId::slayerStartBit_, and DTChamberId::slMask_.

                               : DTChamberId(wheel, station, sector) {
                 if(superlayer < minSuperLayerId || superlayer > maxSuperLayerId) {
                   throw cms::Exception("InvalidDetId") << "DTSuperLayerId ctor:" 
                                                        << " Invalid parameters: " 
                                                        << " Wh:"<< wheel
                                                        << " St:"<< station
                                                        << " Se:"<< sector
                                                        << " Sl:"<< superlayer
                                                        << std::endl;
                 }
                 id_ |= (superlayer & slMask_) << slayerStartBit_;
               }
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_.

                                                         {
  // The mask is required for proper slicing, i.e. if slId is
  // actually a derived class.
  id_ = (slId.rawId() &  slIdMask_);                                             
}
DTSuperLayerId::DTSuperLayerId ( const DTChamberId chId,
int  superlayer 
)

Constructor from a DTChamberId and SL number.

Definition at line 53 of file DTSuperLayerId.cc.

References Exception, DetId::id_, DTChamberId::maxSuperLayerId, DTChamberId::slayerStartBit_, and DTChamberId::slMask_.

                                                                      : DTChamberId(chId) {
  if(superlayer < minSuperLayerId || superlayer > maxSuperLayerId) {
    throw cms::Exception("InvalidDetId") << "DTSuperLayerId ctor:" 
                                         << " Invalid parameter: " 
                                         << " Sl:"<< superlayer
                                         << std::endl;
  }
  id_ |= (superlayer & slMask_) << slayerStartBit_;
}

Member Function Documentation

DTChamberId DTSuperLayerId::chamberId ( ) const [inline]
int DTSuperLayerId::superLayer ( ) const [inline]
int DTSuperLayerId::superlayer ( ) const [inline]

Return the superlayer number (deprecated method name)

Definition at line 57 of file DTSuperLayerId.h.

References superLayer().

Referenced by DTPreCalibrationTask::analyze(), DTResolutionAnalysisTask::analyze(), DTEfficiencyTask::analyze(), DTDigiTask::analyze(), DTDigiForNoiseTask::bookHistos(), DTEfficiencyTask::bookHistos(), DTDeadChannelTest::bookHistos(), DTt0DBValidation::bookHistos(), DTCalibValidation::bookHistos(), DTNoiseTask::bookHistos(), DTEfficiencyTest::bookHistos(), DTAlbertoBenvenutiTask::bookHistos(), DTResolutionAnalysisTask::bookHistos(), DTResidualCalibration::bookHistos(), DTCalibrationMap::checkGranularity(), DTRecHitSegmentResidual::compute(), DTRecHitQuality::compute(), DTCalibValidation::compute(), DTDigiToRaw::createFedBuffers(), DTCreateSummaryHistos::endJob(), DTEfficiencyTest::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTResolutionAnalysisTest::endRun(), DTNoiseCalibration::getChannelName(), DTT0Calibration::getHistoName(), DTTPAnalyzer::getHistoName(), DTTTrigResidualCorrection::getHistoName(), DTT0CalibrationNew::getHistoName(), DTNoiseComputation::getLayerName(), DTResolutionTest::getMEName(), DTNoiseTest::getMEName(), DTResolutionAnalysisTest::getMEName(), DTResolutionTest::getMEName2D(), DTTTrigCalibration::getOccupancyName(), DTNoiseComputation::getSuperLayerName(), DTTTrigCalibration::getTBoxName(), DTTTrigWriter::getTBoxName(), MuonChamberResidual::hitlayer(), DTBtiCard::loadBTI(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonSimHitProducer::produce(), DTResidualCalibration::segmentToWireDistance(), and DTBtiId::superlayer().

                         {
    return superLayer();
  }