CMS 3D CMS Logo

Public Member Functions

DTWireId Class Reference

#include <DTWireId.h>

Inheritance diagram for DTWireId:
DTLayerId DTSuperLayerId DTChamberId DetId

List of all members.

Public Member Functions

 DTWireId ()
 DTWireId (uint32_t id)
 DTWireId (const DTWireId &wireId)
 Copy Constructor.
 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 (int wheel, int station, int sector, int superlayer, int layer, int wire)
DTLayerId layerId () const
 Return the corresponding LayerId.
int wire () const
 Return the wire number.

Detailed Description

DetUnit identifier for DT wires

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

Definition at line 15 of file DTWireId.h.


Constructor & Destructor Documentation

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.

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

                              {
  id_= id;
  checkMuonId(); // Check this is a valid id for muon DTs.
}
DTWireId::DTWireId ( int  wheel,
int  station,
int  sector,
int  superlayer,
int  layer,
int  wire 
)

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 Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.

                             : DTLayerId(wheel, station, sector, superlayer, layer) {
                     if (wire < minWireId || wire > maxWireId) {
                       throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 
                                                            << " Invalid parameters: " 
                                                            << " Wh:"<< wheel
                                                            << " St:"<< station
                                                            << " Se:"<< sector
                                                            << " Sl:"<< superlayer
                                                            << " La:"<< layer
                                                            << " Wi:"<< wire
                                                            << std::endl;
                     }
      
                     id_ |= (wire & wireMask_) << wireStartBit_;
                   }
DTWireId::DTWireId ( const DTWireId wireId)

Copy Constructor.

Definition at line 51 of file DTWireId.cc.

References DetId::id_, and DetId::rawId().

                                         {
  id_ = wireId.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 Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.

                                                                               :
  DTLayerId(chId, superlayer, layer) {
    if (wire < minWireId || wire > maxWireId) {
      throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 
                                           << " Invalid parameters: " 
                                           << " Wi:"<< wire
                                           << std::endl;
    }
      
    id_ |= (wire & wireMask_) << wireStartBit_;
  }
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 Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.

                                                                  :
  DTLayerId(slId, layer) {
    if (wire < minWireId || wire > maxWireId) {
      throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 
                                           << " Invalid parameters: " 
                                           << " Wi:"<< wire
                                           << std::endl;
    }
    
    id_ |= (wire & wireMask_) << wireStartBit_;
  }
DTWireId::DTWireId ( const DTLayerId layerId,
int  wire 
)

Constructor from a layerId and a wire number.

Definition at line 88 of file DTWireId.cc.

References Exception, DetId::id_, DTChamberId::maxWireId, DTChamberId::wireMask_, and DTChamberId::wireStartBit_.

                                                     : DTLayerId(layerId) {
  if (wire < minWireId || wire > maxWireId) {
    throw cms::Exception("InvalidDetId") << "DTWireId ctor:" 
                                         << " Invalid parameters: " 
                                         << " Wi:"<< wire
                                         << std::endl;
  }
    
  id_ |= (wire & wireMask_) << wireStartBit_;
}

Member Function Documentation

DTLayerId DTWireId::layerId ( ) const [inline]
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 DTResolutionAnalysisTask::analyze(), DTnoiseDBValidation::beginRun(), cond::service::DTHVCheckWithHysteresis::checkCurrentStatus(), cond::service::DTHVCheckByAbsoluteValues::checkCurrentStatus(), DTCalibrationMap::checkGranularity(), DTHVStatusHandler::checkStatusChange(), DTRecHitSegmentResidual::compute(), DTLinearDriftFromDBAlgo::compute(), DTNoDriftAlgo::compute(), DTLinearDriftAlgo::compute(), DTCalibValidation::compute(), DTDigitizer::computeTime(), DTHVStatusHandler::createSnapshot(), DTDigiSyncTOFCorr::digitizerOffset(), DTHVStatusHandler::dumpSnapshot(), DTTPAnalyzer::endJob(), DTMeantimerPatternReco::geometryFilter(), DTReadOutMapping::geometryToReadOut(), DTTtrig::get(), DTMtime::get(), DTNoiseCalibration::getChannelName(), DTT0Calibration::getHistoName(), DTT0CalibrationNew::getHistoName(), DTTMax::InfoLayer::InfoLayer(), DTMeantimerPatternReco::initHits(), DTROS25Unpacker::interpretRawData(), DTHVStatusHandler::offlineList(), DTTTrigSyncTOFCorr::offset(), DTTTrigSyncFromDB::offset(), DTRecHitQuality::recHitDistFromWire(), GlobalRecHitsProducer::recHitDistFromWire(), GlobalRecHitsAnalyzer::recHitDistFromWire(), DTCalibValidation::recHitDistFromWire(), DTResidualCalibration::segmentToWireDistance(), DTTtrig::set(), DTMtime::set(), DTRecHitQuality::simHitDistFromWire(), GlobalRecHitsProducer::simHitDistFromWire(), GlobalRecHitsAnalyzer::simHitDistFromWire(), and DTDigitizer::storeDigis().

                   {
    return ((id_>>wireStartBit_)&wireMask_);
  }