CMS 3D CMS Logo

Public Member Functions | Static Private Attributes

TECDetId Class Reference

#include <TECDetId.h>

Inheritance diagram for TECDetId:
SiStripDetId DetId

List of all members.

Public Member Functions

bool isBackPetal () const
bool isDoubleSide () const
bool isFrontPetal () const
bool isRPhi ()
bool isStereo ()
bool isZMinusSide () const
bool isZPlusSide () const
unsigned int module () const
 det id
unsigned int moduleNumber () const
unsigned int order () const
std::vector< unsigned int > petal () const
 petal id
unsigned int petalNumber () const
unsigned int ring () const
 ring id
unsigned int ringNumber () const
unsigned int side () const
 positive or negative id
 TECDetId (uint32_t side, uint32_t wheel, uint32_t petal_fw_bw, uint32_t petal, uint32_t ring, uint32_t module, uint32_t ster)
 TECDetId (const DetId &id)
 TECDetId (uint32_t rawid)
 TECDetId ()
unsigned int wheel () const
 wheel id
unsigned int wheelNumber () const

Static Private Attributes

static const unsigned int moduleMask_ = 0x7
static const unsigned int moduleStartBit_ = 2
static const unsigned int petal_fw_bwMask_ = 0x3
static const unsigned int petal_fw_bwStartBit_ = 12
static const unsigned int petalMask_ = 0xF
static const unsigned int petalStartBit_ = 8
static const unsigned int ringMask_ = 0x7
static const unsigned int ringStartBit_ = 5
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_ = 18
 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_ = 0xF
static const unsigned int wheelStartBit_ = 14

Detailed Description

Definition at line 16 of file TECDetId.h.


Constructor & Destructor Documentation

TECDetId::TECDetId ( ) [inline]

Constructor of a null id

Definition at line 142 of file TECDetId.h.

                   : SiStripDetId() {
}
TECDetId::TECDetId ( uint32_t  rawid) [inline]

Constructor from a raw value

Definition at line 145 of file TECDetId.h.

                                 : SiStripDetId(rawid) {
}
TECDetId::TECDetId ( const DetId id) [inline]

Construct from generic DetId

Definition at line 148 of file TECDetId.h.

                                  : SiStripDetId(id.rawId()){
}
TECDetId::TECDetId ( uint32_t  side,
uint32_t  wheel,
uint32_t  petal_fw_bw,
uint32_t  petal,
uint32_t  ring,
uint32_t  module,
uint32_t  ster 
) [inline]

Member Function Documentation

bool TECDetId::isBackPetal ( ) const [inline]

Returns true if the petal is mounted on the wheel back (not facing impact point)

Definition at line 106 of file TECDetId.h.

References order().

Referenced by SiStripFolderOrganizer::getFolderName(), TkLayerMap::getXY_TEC(), and isFrontPetal().

  { return (order()==1);}
bool TECDetId::isDoubleSide ( ) const [inline]

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

Definition at line 152 of file TECDetId.h.

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

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

                                  {
  // Double Side: only rings 1, 2 and 5
  return this->glued() == 0 && ( this->ring() == 1 || this->ring() == 2 || this->ring() == 5 ) ;
}
bool TECDetId::isFrontPetal ( ) const [inline]

Returns true if the petal is mounted on the wheel front (facing impact point)

Definition at line 110 of file TECDetId.h.

References isBackPetal().

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

  { return (!isBackPetal());}
bool TECDetId::isRPhi ( ) [inline]

Returns true if the module is rphi

Definition at line 114 of file TECDetId.h.

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

Referenced by TrackerDpgAnalysis::toStringName().

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

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

Definition at line 82 of file TECDetId.h.

References isZMinusSide().

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

  { return (!isZMinusSide());}
unsigned int TECDetId::module ( ) const [inline]
unsigned int TECDetId::moduleNumber ( ) const [inline]
unsigned int TECDetId::order ( ) const [inline]

Definition at line 67 of file TECDetId.h.

References DetId::id_, petal_fw_bwMask_, and petal_fw_bwStartBit_.

Referenced by isBackPetal(), and petal().

std::vector<unsigned int> TECDetId::petal ( ) const [inline]
unsigned int TECDetId::petalNumber ( ) const [inline]
unsigned int TECDetId::ring ( ) const [inline]

ring id

Definition at line 71 of file TECDetId.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::fillTECGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), TrajectoryCleanerMerger::getLayer(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), SiStripSubStructure::getTECDetectors(), TkLayerMap::getXY_TEC(), isDoubleSide(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), RoadSearchDetIdHelper::IsMatched(), RoadSearchDetIdHelper::IsSingleRPhi(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), RoadSearchDetIdHelper::Print(), align::tec::ringNumber(), ringNumber(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripNoisesGenerator::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), trackerHierarchy(), and SiTrivialInduceChargeOnStrips::typeOf().

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

positive or negative id

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

Definition at line 47 of file TECDetId.h.

References DetId::id_, sideMask_, and sideStartBit_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromData::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), HitEff::analyze(), RingMaker::determineExtensions(), SiStripBadComponentsDQMServiceReader::detIdToString(), RingMaker::dumpDetIds(), align::tec::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTECGeometryArray(), 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::getTECDetectors(), SiStripDCSStatus::initialise(), isZMinusSide(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), TkLayerMap::layerSearch(), SiStripDetCabling::layerSearch(), DetIdTECSameDiskComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), RoadSearchDetIdHelper::Print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripFolderOrganizer::setLayerFolder(), trackerHierarchy(), and HDQMInspectorConfigSiStrip::translateDetId().

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

wheel id

Definition at line 52 of file TECDetId.h.

References DetId::id_, wheelMask_, and wheelStartBit_.

Referenced by SiStripDetSummary::add(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), reco::DeDxHit::DeDxHit(), RingMaker::determineExtensions(), align::tec::diskNumber(), RingMaker::dumpDetIds(), reco::HitPattern::encode(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTECGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiStripCablingDQM::getActiveDetIds(), getDetLayer(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), TrajectoryCleanerMerger::getLayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), SiStripSubStructure::getTECDetectors(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), GeometricSearchTracker::idToLayer(), fireworks::info(), DetIdInfo::info(), CheckHitPattern::interpretDetId(), PFCheckHitPattern::interpretDetId(), ClusterSummary::ModuleSelection::IsStripSelected(), MuonReSeeder::layer(), TrackMerger::layer(), 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(), DetIdTECSameDiskComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), CtfSpecialSeedGenerator::preliminaryCheck(), RoadSearchDetIdHelper::Print(), SiStripQuality::printDetInfo(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), LaserDQM::trackerStatistics(), TrackerAlignableId::typeAndLayerFromDetId(), and wheelNumber().

    { return ((id_>>wheelStartBit_) & wheelMask_) ;}
unsigned int TECDetId::wheelNumber ( ) const [inline]

Returns the wheel number

Definition at line 90 of file TECDetId.h.

References wheel().

Referenced by AlignmentStats::endJob(), SiStripBadModuleGenerator::isTECDetector(), and TrackerDpgAnalysis::toStringName().

  { return wheel();}

Member Data Documentation

const unsigned int TECDetId::moduleMask_ = 0x7 [static, private]

Definition at line 136 of file TECDetId.h.

Referenced by module(), and TECDetId().

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

Definition at line 128 of file TECDetId.h.

Referenced by module(), and TECDetId().

const unsigned int TECDetId::petal_fw_bwMask_ = 0x3 [static, private]

Definition at line 133 of file TECDetId.h.

Referenced by order(), and TECDetId().

const unsigned int TECDetId::petal_fw_bwStartBit_ = 12 [static, private]

Definition at line 125 of file TECDetId.h.

Referenced by order(), and TECDetId().

const unsigned int TECDetId::petalMask_ = 0xF [static, private]

Definition at line 134 of file TECDetId.h.

Referenced by petalNumber(), and TECDetId().

const unsigned int TECDetId::petalStartBit_ = 8 [static, private]

Definition at line 126 of file TECDetId.h.

Referenced by petalNumber(), and TECDetId().

const unsigned int TECDetId::ringMask_ = 0x7 [static, private]

Definition at line 135 of file TECDetId.h.

Referenced by ring(), and TECDetId().

const unsigned int TECDetId::ringStartBit_ = 5 [static, private]

Definition at line 127 of file TECDetId.h.

Referenced by ring(), and TECDetId().

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

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

Definition at line 131 of file TECDetId.h.

Referenced by side(), and TECDetId().

const unsigned int TECDetId::sideStartBit_ = 18 [static, private]

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

Definition at line 123 of file TECDetId.h.

Referenced by side(), and TECDetId().

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

Reimplemented from SiStripDetId.

Definition at line 137 of file TECDetId.h.

Referenced by TECDetId().

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

Reimplemented from SiStripDetId.

Definition at line 129 of file TECDetId.h.

Referenced by TECDetId().

const unsigned int TECDetId::wheelMask_ = 0xF [static, private]

Definition at line 132 of file TECDetId.h.

Referenced by TECDetId(), and wheel().

const unsigned int TECDetId::wheelStartBit_ = 14 [static, private]

Definition at line 124 of file TECDetId.h.

Referenced by TECDetId(), and wheel().