#include <DataFormats/SiStripDetId/interface/TIDDetId.h>
Public Member Functions | |
unsigned int | diskNumber () const |
Returns the disk number. | |
bool | isBackRing () const |
Returns true if the ring is mounted on the disk back (not facing impact point). | |
bool | isDoubleSide () const |
Returns true if the module is a double side = rphi + stereo. | |
bool | isFrontRing () const |
Returns true if the ring is mounted on the disk front (facing impact point). | |
bool | isRPhi () |
Returns true if the module is rphi. | |
bool | isStereo () |
Returns true if the module is stereo. | |
bool | isZMinusSide () const |
Returns true if the module is in TID- (z<0 side). | |
bool | isZPlusSide () const |
Returns true if the module is in TID+ (z>0 side). | |
std::vector< unsigned int > | module () const |
det id | |
unsigned int | moduleNumber () const |
Returns the module number. | |
unsigned int | ring () const |
ring id | |
unsigned int | ringNumber () const |
Returns the ring number. | |
unsigned int | side () const |
positive or negative id | |
TIDDetId (uint32_t side, uint32_t wheel, uint32_t ring, uint32_t module_fw_bw, uint32_t module, uint32_t ster) | |
TIDDetId (const DetId &id) | |
Construct from generic DetId. | |
TIDDetId (uint32_t rawid) | |
Constructor from a raw value. | |
TIDDetId () | |
Constructor of a null id. | |
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 |
Definition at line 16 of file TIDDetId.h.
TIDDetId::TIDDetId | ( | ) |
Constructor of a null id.
Definition at line 3 of file TIDDetId.cc.
00003 : SiStripDetId() { 00004 }
TIDDetId::TIDDetId | ( | uint32_t | rawid | ) |
Constructor from a raw value.
Definition at line 5 of file TIDDetId.cc.
00005 : SiStripDetId(rawid) { 00006 }
TIDDetId::TIDDetId | ( | const DetId & | id | ) |
Construct from generic DetId.
Definition at line 7 of file TIDDetId.cc.
00007 : SiStripDetId(id.rawId()) { 00008 }
TIDDetId::TIDDetId | ( | uint32_t | side, | |
uint32_t | wheel, | |||
uint32_t | ring, | |||
uint32_t | module_fw_bw, | |||
uint32_t | module, | |||
uint32_t | ster | |||
) | [inline] |
Definition at line 25 of file TIDDetId.h.
References DetId::id_, module_fw_bwMask_, module_fw_bwStartBit_, moduleMask_, moduleStartBit_, ringMask_, ringStartBit_, sideMask_, sideStartBit_, sterMask_, sterStartBit_, wheelMask_, and wheelStartBit_.
00030 : SiStripDetId(DetId::Tracker,StripSubdetector::TID){ 00031 id_ |= (side& sideMask_) << sideStartBit_ | 00032 (wheel& wheelMask_) << wheelStartBit_ | 00033 (ring& ringMask_) << ringStartBit_ | 00034 (module_fw_bw& module_fw_bwMask_) << module_fw_bwStartBit_ | 00035 (module& moduleMask_) << moduleStartBit_ | 00036 (ster& sterMask_) << sterStartBit_ ; 00037 }
unsigned int TIDDetId::diskNumber | ( | ) | const [inline] |
Returns the disk number.
Definition at line 90 of file TIDDetId.h.
References wheel().
Referenced by SiStripQualityConfigurableFakeESSource::isTIDDetector().
00091 { return wheel();}
bool TIDDetId::isBackRing | ( | ) | const [inline] |
Returns true if the ring is mounted on the disk back (not facing impact point).
Definition at line 82 of file TIDDetId.h.
References module().
Referenced by isFrontRing().
00083 { return (module()[0]==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 ring().
Referenced by isRPhi(), and isStereo().
00010 { 00011 // Double Side: only rings 1 and 2 00012 if( this->glued() == 0 && ( this->ring() == 1 || this->ring() == 2 ) ) { 00013 return true; 00014 } else { 00015 return false; 00016 } 00017 }
bool TIDDetId::isFrontRing | ( | ) | const [inline] |
Returns true if the ring is mounted on the disk front (facing impact point).
Definition at line 86 of file TIDDetId.h.
References isBackRing().
00087 { return (!isBackRing());}
bool TIDDetId::isRPhi | ( | ) | [inline] |
Returns true if the module is rphi.
Definition at line 102 of file TIDDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
Referenced by SiStripQualityConfigurableFakeESSource::isTIDDetector().
00103 { return (stereo() == 0 && !isDoubleSide());}
bool TIDDetId::isStereo | ( | ) | [inline] |
Returns true if the module is stereo.
Definition at line 106 of file TIDDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
Referenced by SiStripQualityConfigurableFakeESSource::isTIDDetector().
00107 { return (stereo() != 0 && !isDoubleSide());}
bool TIDDetId::isZMinusSide | ( | ) | const [inline] |
Returns true if the module is in TID- (z<0 side).
Definition at line 78 of file TIDDetId.h.
References side().
Referenced by isZPlusSide().
00079 { return (side()==1);}
bool TIDDetId::isZPlusSide | ( | ) | const [inline] |
Returns true if the module is in TID+ (z>0 side).
Definition at line 74 of file TIDDetId.h.
References isZMinusSide().
Referenced by SiStripQualityConfigurableFakeESSource::isTIDDetector().
00075 { return (!isZMinusSide());}
std::vector<unsigned int> TIDDetId::module | ( | ) | const [inline] |
det id
vector[0] = 1 -> back ring vector[0] = 2 -> front ring vector[1] -> module
Definition at line 64 of file TIDDetId.h.
References DetId::id_, module_fw_bwMask_, module_fw_bwStartBit_, moduleMask_, moduleStartBit_, and funct::num().
Referenced by SiStripLAProfileBooker::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTIDGeometryArray(), isBackRing(), moduleNumber(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
00065 { std::vector<unsigned int> num; 00066 num.push_back(((id_>>module_fw_bwStartBit_) & module_fw_bwMask_)); 00067 num.push_back(((id_>>moduleStartBit_) & moduleMask_)); 00068 return num ;}
unsigned int TIDDetId::moduleNumber | ( | ) | const [inline] |
Returns the module number.
Definition at line 98 of file TIDDetId.h.
References module().
00099 { return module()[1];}
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(), cms::ClusterAnalysis::book(), SiStripMonitorTrack::bookTrendMEs(), SiStripMonitorTrack::clusterInfos(), cms::ClusterAnalysis::clusterInfos(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), cms::ClusterAnalysis::fillPedNoiseFromDB(), RingMaker::fillTIDGeometryArray(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), TrajectoryCleanerMerger::getLayer(), SiStripLAProfileBooker::getlayer(), SiStripSubStructure::getTIDDetectors(), isDoubleSide(), RoadSearchDetIdHelper::IsMatched(), RoadSearchDetIdHelper::IsSingleRPhi(), TrajectoryManager::makeSinglePSimHit(), RoadSearchDetIdHelper::Print(), ringNumber(), SiStripFolderOrganizer::setLayerFolder(), and trackerHierarchy().
00056 { return ((id_>>ringStartBit_) & ringMask_) ;}
unsigned int TIDDetId::ringNumber | ( | ) | const [inline] |
Returns the ring number.
Definition at line 94 of file TIDDetId.h.
References ring().
Referenced by SiStripQualityConfigurableFakeESSource::isTIDDetector().
00095 { return ring();}
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_, int, sideMask_, and sideStartBit_.
Referenced by SiStripDigiValid::analyze(), cms::ClusterAnalysis::book(), SiStripMonitorTrack::bookTrendMEs(), SiStripMonitorTrackEfficiency::bookTrendMEs(), SiStripMonitorTrackEfficiency::clusterInfos(), SiStripMonitorTrack::clusterInfos(), cms::ClusterAnalysis::clusterInfos(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), cms::ClusterAnalysis::fillPedNoiseFromDB(), RingMaker::fillTIDGeometryArray(), SiStripCablingDQM::getActiveDetIds(), SiStripMonitorCluster::getLayerLabel(), SiStripMonitorDigi::getLayerLabel(), SiStripSubStructure::getTIDDetectors(), isZMinusSide(), TrajectoryManager::makeSinglePSimHit(), DetIdTIDSameDiskComparator::operator()(), operator<<(), RoadSearchDetIdHelper::Print(), SiStripDaqInfo::readFedIds(), SiStripFolderOrganizer::setLayerFolder(), and trackerHierarchy().
00045 { 00046 return int((id_>>sideStartBit_) & sideMask_); 00047 }
unsigned int TIDDetId::wheel | ( | ) | const [inline] |
wheel id
Definition at line 50 of file TIDDetId.h.
References DetId::id_, int, wheelMask_, and wheelStartBit_.
Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), SimHitTrackerAnalyzer::analyze(), cms::ClusterAnalysis::book(), SiStripMonitorTrack::bookTrendMEs(), SiStripMonitorTrackEfficiency::bookTrendMEs(), SiStripMonitorTrackEfficiency::clusterInfos(), SiStripMonitorTrack::clusterInfos(), cms::ClusterAnalysis::clusterInfos(), RingMaker::determineExtensions(), diskNumber(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), cms::ClusterAnalysis::fillPedNoiseFromDB(), RingMaker::fillTIDGeometryArray(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiStripCablingDQM::getActiveDetIds(), TrajectoryCleanerMerger::getLayer(), SiStripMonitorCluster::getLayerLabel(), SiStripMonitorDigi::getLayerLabel(), SiStripSubStructure::getTIDDetectors(), TrajectoryManager::makeSinglePSimHit(), DetIdTIDSameDiskComparator::operator()(), RoadSearchDetIdHelper::Print(), SiStripFolderOrganizer::setLayerFolder(), and trackerHierarchy().
00050 { 00051 return int((id_>>wheelStartBit_) & wheelMask_); 00052 }
const unsigned int TIDDetId::module_fw_bwMask_ = 0x3 [static, private] |
const unsigned int TIDDetId::module_fw_bwStartBit_ = 7 [static, private] |
const unsigned int TIDDetId::moduleMask_ = 0x1F [static, private] |
const unsigned int TIDDetId::moduleStartBit_ = 2 [static, private] |
const unsigned int TIDDetId::ringMask_ = 0x3 [static, private] |
const unsigned int TIDDetId::ringStartBit_ = 9 [static, private] |
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 118 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 111 of file TIDDetId.h.
Referenced by side(), and TIDDetId().
const unsigned int TIDDetId::sterMask_ = 0x3 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 123 of file TIDDetId.h.
Referenced by TIDDetId().
const unsigned int TIDDetId::sterStartBit_ = 0 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 116 of file TIDDetId.h.
Referenced by TIDDetId().
const unsigned int TIDDetId::wheelMask_ = 0x3 [static, private] |
const unsigned int TIDDetId::wheelStartBit_ = 11 [static, private] |