CMS 3D CMS Logo

Public Member Functions | Static Private Attributes

TIDDetId Class Reference

#include <TIDDetId.h>

Inheritance diagram for TIDDetId:
SiStripDetId DetId

List of all members.

Public Member Functions

unsigned int diskNumber () const
bool isBackRing () const
bool isDoubleSide () const
bool isFrontRing () const
bool isRPhi ()
bool isStereo ()
bool isZMinusSide () const
bool isZPlusSide () const
std::vector< unsigned int > module () const
 det id
unsigned int moduleNumber () const
unsigned int order () const
unsigned int ring () const
 ring id
unsigned int ringNumber () const
unsigned int side () const
 positive or negative id
 TIDDetId (const DetId &id)
 TIDDetId (uint32_t side, uint32_t wheel, uint32_t ring, uint32_t module_fw_bw, uint32_t module, uint32_t ster)
 TIDDetId (uint32_t rawid)
 TIDDetId ()
unsigned int wheel () const
 wheel id

Static Private Attributes

static const unsigned int module_fw_bwMask_ = 0x3
static const unsigned int module_fw_bwStartBit_ = 7
static const unsigned int moduleMask_ = 0x1F
static const unsigned int moduleStartBit_ = 2
static const unsigned int ringMask_ = 0x3
static const unsigned int ringStartBit_ = 9
static const unsigned int sideMask_ = 0x3
 two bits would be enough, but we could use the number "0" as a wildcard
static const unsigned int sideStartBit_ = 13
 two bits would be enough, but we could use the number "0" as a wildcard
static const unsigned int sterMask_ = 0x3
static const unsigned int sterStartBit_ = 0
static const unsigned int wheelMask_ = 0x3
static const unsigned int wheelStartBit_ = 11

Detailed Description

Definition at line 16 of file TIDDetId.h.


Constructor & Destructor Documentation

TIDDetId::TIDDetId ( )

Constructor of a null id

Definition at line 3 of file TIDDetId.cc.

                   : SiStripDetId() {
}
TIDDetId::TIDDetId ( uint32_t  rawid)

Constructor from a raw value

Definition at line 5 of file TIDDetId.cc.

                                 : SiStripDetId(rawid) {
}
TIDDetId::TIDDetId ( const DetId id)

Construct from generic DetId

Definition at line 7 of file TIDDetId.cc.

                                  : SiStripDetId(id.rawId()) {
}
TIDDetId::TIDDetId ( uint32_t  side,
uint32_t  wheel,
uint32_t  ring,
uint32_t  module_fw_bw,
uint32_t  module,
uint32_t  ster 
) [inline]

Member Function Documentation

unsigned int TIDDetId::diskNumber ( ) const [inline]
bool TIDDetId::isBackRing ( ) const [inline]

Returns true if the ring is mounted on the disk back (not facing impact point)

Definition at line 85 of file TIDDetId.h.

References order().

Referenced by TkLayerMap::getXY_TID(), and isFrontRing().

  { return (order()==1);}
bool TIDDetId::isDoubleSide ( ) const

Returns true if the module is a double side = rphi + stereo

Definition at line 10 of file TIDDetId.cc.

References SiStripDetId::glued(), and ring().

Referenced by AlignmentStats::endJob(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), isRPhi(), isStereo(), and TrackerDpgAnalysis::toStringName().

                                  {
  // Double Side: only rings 1 and 2
  if( this->glued() == 0 && ( this->ring() == 1 || this->ring() == 2 ) ) {
    return true;
  } else {
    return false;
  }
}
bool TIDDetId::isFrontRing ( ) const [inline]

Returns true if the ring is mounted on the disk front (facing impact point)

Definition at line 89 of file TIDDetId.h.

References isBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

  { return (!isBackRing());}
bool TIDDetId::isRPhi ( ) [inline]

Returns true if the module is rphi

Definition at line 105 of file TIDDetId.h.

References isDoubleSide(), and SiStripDetId::stereo().

Referenced by SiStripBadModuleGenerator::isTIDDetector(), and TrackerDpgAnalysis::toStringName().

  { return (stereo() == 0 && !isDoubleSide());}
bool TIDDetId::isStereo ( ) [inline]
bool TIDDetId::isZMinusSide ( ) const [inline]
bool TIDDetId::isZPlusSide ( ) const [inline]

Returns true if the module is in TID+ (z>0 side)

Definition at line 77 of file TIDDetId.h.

References isZMinusSide().

Referenced by AlignmentTrackSelector::detailedHitsCheck(), MillePedeMonitor::fillTrack(), SiStripBadModuleGenerator::isTIDDetector(), and TrackerDpgAnalysis::toStringName().

  { return (!isZMinusSide());}
std::vector<unsigned int> TIDDetId::module ( ) const [inline]
unsigned int TIDDetId::moduleNumber ( ) const [inline]
unsigned int TIDDetId::order ( ) const [inline]

Definition at line 70 of file TIDDetId.h.

References DetId::id_, module_fw_bwMask_, and module_fw_bwStartBit_.

Referenced by isBackRing(), and module().

unsigned int TIDDetId::ring ( ) const [inline]

ring id

Definition at line 55 of file TIDDetId.h.

References DetId::id_, ringMask_, and ringStartBit_.

Referenced by SiStripDigiValid::analyze(), SiStripRecHitsValid::analyze(), SiStripTrackingRecHitsValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTIDGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripFolderOrganizer::getFolderName(), TrajectoryCleanerMerger::getLayer(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), SiStripSubStructure::getTIDDetectors(), TkLayerMap::getXY_TID(), isDoubleSide(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), RoadSearchDetIdHelper::IsMatched(), RoadSearchDetIdHelper::IsSingleRPhi(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), RoadSearchDetIdHelper::Print(), align::tid::ringNumber(), ringNumber(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripNoisesGenerator::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), trackerHierarchy(), and SiTrivialInduceChargeOnStrips::typeOf().

    { return ((id_>>ringStartBit_) & ringMask_) ;}
unsigned int TIDDetId::ringNumber ( ) const [inline]
unsigned int TIDDetId::side ( ) const [inline]

positive or negative id

side() = 1 The DetId identify a module in the negative part side() = 2 The DetId identify a module in the positive part

Definition at line 45 of file TIDDetId.h.

References DetId::id_, sideMask_, and sideStartBit_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromData::algoBeginJob(), SiStripQualityStatistics::analyze(), SiStripDigiValid::analyze(), RingMaker::determineExtensions(), SiStripBadComponentsDQMServiceReader::detIdToString(), RingMaker::dumpDetIds(), align::tid::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTIDGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripUtility::getSubDetectorTag(), SiStripHistoId::getSubdetid(), SiStripSubStructure::getTIDDetectors(), isZMinusSide(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), TkLayerMap::layerSearch(), SiStripDetCabling::layerSearch(), TrajectoryManager::makeSinglePSimHit(), DetIdTIDSameDiskComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), RoadSearchDetIdHelper::Print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripFolderOrganizer::setLayerFolder(), trackerHierarchy(), and HDQMInspectorConfigSiStrip::translateDetId().

                           {
    return int((id_>>sideStartBit_) & sideMask_);
  }
unsigned int TIDDetId::wheel ( ) const [inline]

wheel id

Definition at line 50 of file TIDDetId.h.

References DetId::id_, wheelMask_, and wheelStartBit_.

Referenced by SiStripDetSummary::add(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), ElectronSeedAnalyzer::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), reco::DeDxHit::DeDxHit(), RingMaker::determineExtensions(), align::tid::diskNumber(), diskNumber(), RingMaker::dumpDetIds(), reco::HitPattern::encode(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTIDGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), KFTrajectoryFitter::fit(), SiStripCablingDQM::getActiveDetIds(), getDetLayer(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), TrajectoryCleanerMerger::getLayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), SiStripSubStructure::getTIDDetectors(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), GeometricSearchTracker::idToLayer(), fireworks::info(), DetIdInfo::info(), CheckHitPattern::interpretDetId(), PFCheckHitPattern::interpretDetId(), ClusterSummary::ModuleSelection::IsStripSelected(), reco::modules::TrackerTrackHitFilter::Rule::layer(), MuonAssociatorByHits::LayerFromDetid(), TrackingTruthProducer::LayerFromDetid(), SiStripRegionCabling::layerFromDetId(), TrackAssociatorByHits::LayerFromDetid(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), TkLayerMap::layerSearch(), SiStripDetCabling::layerSearch(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), DetIdTIDSameDiskComparator::operator()(), CtfSpecialSeedGenerator::preliminaryCheck(), RoadSearchDetIdHelper::Print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), KFTrajectorySmoother::trajectories(), and TrackerAlignableId::typeAndLayerFromDetId().

                            {
    return int((id_>>wheelStartBit_) & wheelMask_);
  }

Member Data Documentation

const unsigned int TIDDetId::module_fw_bwMask_ = 0x3 [static, private]

Definition at line 124 of file TIDDetId.h.

Referenced by order(), and TIDDetId().

const unsigned int TIDDetId::module_fw_bwStartBit_ = 7 [static, private]

Definition at line 117 of file TIDDetId.h.

Referenced by order(), and TIDDetId().

const unsigned int TIDDetId::moduleMask_ = 0x1F [static, private]

Definition at line 125 of file TIDDetId.h.

Referenced by moduleNumber(), and TIDDetId().

const unsigned int TIDDetId::moduleStartBit_ = 2 [static, private]

Definition at line 118 of file TIDDetId.h.

Referenced by moduleNumber(), and TIDDetId().

const unsigned int TIDDetId::ringMask_ = 0x3 [static, private]

Definition at line 123 of file TIDDetId.h.

Referenced by ring(), and TIDDetId().

const unsigned int TIDDetId::ringStartBit_ = 9 [static, private]

Definition at line 116 of file TIDDetId.h.

Referenced by ring(), and TIDDetId().

const unsigned int TIDDetId::sideMask_ = 0x3 [static, private]

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

Definition at line 121 of file TIDDetId.h.

Referenced by side(), and TIDDetId().

const unsigned int TIDDetId::sideStartBit_ = 13 [static, private]

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

Definition at line 114 of file TIDDetId.h.

Referenced by side(), and TIDDetId().

const unsigned int TIDDetId::sterMask_ = 0x3 [static, private]

Reimplemented from SiStripDetId.

Definition at line 126 of file TIDDetId.h.

Referenced by TIDDetId().

const unsigned int TIDDetId::sterStartBit_ = 0 [static, private]

Reimplemented from SiStripDetId.

Definition at line 119 of file TIDDetId.h.

Referenced by TIDDetId().

const unsigned int TIDDetId::wheelMask_ = 0x3 [static, private]

Definition at line 122 of file TIDDetId.h.

Referenced by TIDDetId(), and wheel().

const unsigned int TIDDetId::wheelStartBit_ = 11 [static, private]

Definition at line 115 of file TIDDetId.h.

Referenced by TIDDetId(), and wheel().