![]() |
![]() |
#include <DataFormats/SiStripDetId/interface/TECDetId.h>
Public Member Functions | |
bool | isBackPetal () const |
Returns true if the petal is mounted on the wheel back (not facing impact point). | |
bool | isDoubleSide () const |
Returns true if the module is a double side = rphi + stereo. | |
bool | isFrontPetal () const |
Returns true if the petal is mounted on the wheel 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 TEC- (z<0 side). | |
bool | isZPlusSide () const |
Returns true if the module is in TEC+ (z>0 side). | |
unsigned int | module () const |
det id | |
unsigned int | moduleNumber () const |
Returns the module number. | |
std::vector< unsigned int > | petal () const |
petal id | |
unsigned int | petalNumber () const |
Returns the petal number. | |
unsigned int | ring () const |
ring id | |
unsigned int | ringNumber () const |
Returns the ring number. | |
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) | |
Construct from generic DetId. | |
TECDetId (uint32_t rawid) | |
Constructor from a raw value. | |
TECDetId () | |
Constructor of a null id. | |
unsigned int | wheel () const |
wheel id | |
unsigned int | wheelNumber () const |
Returns the wheel number. | |
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 |
Definition at line 16 of file TECDetId.h.
TECDetId::TECDetId | ( | ) |
Constructor of a null id.
Definition at line 5 of file TECDetId.cc.
00005 : SiStripDetId() { 00006 }
TECDetId::TECDetId | ( | uint32_t | rawid | ) |
Constructor from a raw value.
Definition at line 8 of file TECDetId.cc.
00008 : SiStripDetId(rawid) { 00009 }
TECDetId::TECDetId | ( | const DetId & | id | ) |
Construct from generic DetId.
Definition at line 10 of file TECDetId.cc.
00010 : SiStripDetId(id.rawId()){ 00011 }
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] |
Definition at line 25 of file TECDetId.h.
References DetId::id_, moduleMask_, moduleStartBit_, petal_fw_bwMask_, petal_fw_bwStartBit_, petalMask_, petalStartBit_, ringMask_, ringStartBit_, sideMask_, sideStartBit_, sterMask_, sterStartBit_, wheelMask_, and wheelStartBit_.
00031 : SiStripDetId(DetId::Tracker,StripSubdetector::TEC){ 00032 id_ |= (side& sideMask_) << sideStartBit_ | 00033 (wheel& wheelMask_) << wheelStartBit_ | 00034 (petal_fw_bw& petal_fw_bwMask_) << petal_fw_bwStartBit_ | 00035 (petal& petalMask_) << petalStartBit_ | 00036 (ring& ringMask_) << ringStartBit_ | 00037 (module& moduleMask_) << moduleStartBit_ | 00038 (ster& sterMask_) << sterStartBit_ ; 00039 }
bool TECDetId::isBackPetal | ( | ) | const [inline] |
Returns true if the petal is mounted on the wheel back (not facing impact point).
Definition at line 103 of file TECDetId.h.
References petal().
Referenced by isFrontPetal().
00104 { return (petal()[0]==1);}
bool TECDetId::isDoubleSide | ( | ) | const |
Returns true if the module is a double side = rphi + stereo.
Definition at line 14 of file TECDetId.cc.
References ring().
Referenced by isRPhi(), and isStereo().
00014 { 00015 // Double Side: only rings 1, 2 and 5 00016 if( this->glued() == 0 && ( this->ring() == 1 || this->ring() == 2 || this->ring() == 5 ) ) { 00017 return true; 00018 } else { 00019 return false; 00020 } 00021 }
bool TECDetId::isFrontPetal | ( | ) | const [inline] |
Returns true if the petal is mounted on the wheel front (facing impact point).
Definition at line 107 of file TECDetId.h.
References isBackPetal().
Referenced by SiStripQualityConfigurableFakeESSource::isTECDetector().
00108 { return (!isBackPetal());}
bool TECDetId::isRPhi | ( | ) | [inline] |
Returns true if the module is rphi.
Definition at line 111 of file TECDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
00112 { return (stereo() == 0 && !isDoubleSide());}
bool TECDetId::isStereo | ( | ) | [inline] |
Returns true if the module is stereo.
Definition at line 115 of file TECDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
Referenced by SiStripQualityConfigurableFakeESSource::isTECDetector().
00116 { return (stereo() != 0 && !isDoubleSide());}
bool TECDetId::isZMinusSide | ( | ) | const [inline] |
Returns true if the module is in TEC- (z<0 side).
Definition at line 83 of file TECDetId.h.
References side().
Referenced by isZPlusSide().
00084 { return (side()==1);}
bool TECDetId::isZPlusSide | ( | ) | const [inline] |
Returns true if the module is in TEC+ (z>0 side).
Definition at line 79 of file TECDetId.h.
References isZMinusSide().
Referenced by SiStripQualityConfigurableFakeESSource::isTECDetector().
00080 { return (!isZMinusSide());}
unsigned int TECDetId::module | ( | ) | const [inline] |
det id
Definition at line 72 of file TECDetId.h.
References DetId::id_, moduleMask_, and moduleStartBit_.
Referenced by RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTECGeometryArray(), moduleNumber(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
00073 { return ((id_>>moduleStartBit_) & moduleMask_);}
unsigned int TECDetId::moduleNumber | ( | ) | const [inline] |
Returns the module number.
Definition at line 99 of file TECDetId.h.
References module().
00100 { return module();}
std::vector<unsigned int> TECDetId::petal | ( | ) | const [inline] |
petal id
vector[0] = 1 -> back petal vector[0] = 2 -> front petal vector[1] -> petal
Definition at line 61 of file TECDetId.h.
References DetId::id_, funct::num(), petal_fw_bwMask_, petal_fw_bwStartBit_, petalMask_, and petalStartBit_.
Referenced by SiStripLAProfileBooker::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTECGeometryArray(), SiStripSubStructure::getTECDetectors(), isBackPetal(), TrajectoryManager::makeSinglePSimHit(), operator<<(), petalNumber(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
00062 { std::vector<unsigned int> num; 00063 num.push_back(((id_>>petal_fw_bwStartBit_) & petal_fw_bwMask_)); 00064 num.push_back(((id_>>petalStartBit_) & petalMask_)); 00065 return num ;}
unsigned int TECDetId::petalNumber | ( | ) | const [inline] |
Returns the petal number.
Definition at line 91 of file TECDetId.h.
References petal().
Referenced by SiStripQualityConfigurableFakeESSource::isTECDetector().
00092 { return petal()[1];}
unsigned int TECDetId::ring | ( | ) | const [inline] |
ring id
Definition at line 68 of file TECDetId.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::fillTECGeometryArray(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), TrajectoryCleanerMerger::getLayer(), SiStripLAProfileBooker::getlayer(), SiStripSubStructure::getTECDetectors(), isDoubleSide(), RoadSearchDetIdHelper::IsMatched(), RoadSearchDetIdHelper::IsSingleRPhi(), TrajectoryManager::makeSinglePSimHit(), RoadSearchDetIdHelper::Print(), ringNumber(), SiStripFolderOrganizer::setLayerFolder(), and trackerHierarchy().
00069 { return ((id_>>ringStartBit_) & ringMask_) ;}
unsigned int TECDetId::ringNumber | ( | ) | const [inline] |
Returns the ring number.
Definition at line 95 of file TECDetId.h.
References ring().
Referenced by SiStripQualityConfigurableFakeESSource::isTECDetector().
00096 { return ring();}
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_, 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::fillTECGeometryArray(), SiStripCablingDQM::getActiveDetIds(), SiStripMonitorCluster::getLayerLabel(), SiStripMonitorDigi::getLayerLabel(), SiStripSubStructure::getTECDetectors(), isZMinusSide(), DetIdTECSameDiskComparator::operator()(), operator<<(), RoadSearchDetIdHelper::Print(), SiStripDaqInfo::readFedIds(), SiStripFolderOrganizer::setLayerFolder(), and trackerHierarchy().
00047 { 00048 return int((id_>>sideStartBit_) & sideMask_); 00049 }
unsigned int TECDetId::wheel | ( | ) | const [inline] |
wheel id
Definition at line 52 of file TECDetId.h.
References DetId::id_, 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(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), cms::ClusterAnalysis::fillPedNoiseFromDB(), RingMaker::fillTECGeometryArray(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiStripCablingDQM::getActiveDetIds(), TrajectoryCleanerMerger::getLayer(), SiStripMonitorCluster::getLayerLabel(), SiStripMonitorDigi::getLayerLabel(), SiStripSubStructure::getTECDetectors(), TrajectoryManager::makeSinglePSimHit(), DetIdTECSameDiskComparator::operator()(), RoadSearchDetIdHelper::Print(), SiStripFolderOrganizer::setLayerFolder(), trackerHierarchy(), and wheelNumber().
00053 { return ((id_>>wheelStartBit_) & wheelMask_) ;}
unsigned int TECDetId::wheelNumber | ( | ) | const [inline] |
Returns the wheel number.
Definition at line 87 of file TECDetId.h.
References wheel().
Referenced by SiStripQualityConfigurableFakeESSource::isTECDetector().
00088 { return wheel();}
const unsigned int TECDetId::moduleMask_ = 0x7 [static, private] |
const unsigned int TECDetId::moduleStartBit_ = 2 [static, private] |
const unsigned int TECDetId::petal_fw_bwMask_ = 0x3 [static, private] |
const unsigned int TECDetId::petal_fw_bwStartBit_ = 12 [static, private] |
const unsigned int TECDetId::petalMask_ = 0xF [static, private] |
const unsigned int TECDetId::petalStartBit_ = 8 [static, private] |
const unsigned int TECDetId::ringMask_ = 0x7 [static, private] |
const unsigned int TECDetId::ringStartBit_ = 5 [static, private] |
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 128 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 120 of file TECDetId.h.
Referenced by side(), and TECDetId().
const unsigned int TECDetId::sterMask_ = 0x3 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 134 of file TECDetId.h.
Referenced by TECDetId().
const unsigned int TECDetId::sterStartBit_ = 0 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 126 of file TECDetId.h.
Referenced by TECDetId().
const unsigned int TECDetId::wheelMask_ = 0xF [static, private] |
const unsigned int TECDetId::wheelStartBit_ = 14 [static, private] |