#include <TOBDetId.h>
Public Member Functions | |
bool | isDoubleSide () const |
bool | isRPhi () |
bool | isStereo () |
bool | isZMinusSide () const |
bool | isZPlusSide () const |
unsigned int | layer () const |
layer id | |
unsigned int | layerNumber () const |
unsigned int | module () const |
detector id | |
unsigned int | moduleNumber () const |
std::vector< unsigned int > | rod () const |
rod id | |
unsigned int | rodNumber () const |
unsigned int | side () const |
TOBDetId (uint32_t rawid) | |
TOBDetId (const DetId &id) | |
TOBDetId () | |
TOBDetId (uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) | |
Static Private Attributes | |
static const unsigned int | layerMask_ = 0x7 |
two bits would be enough, but we could use the number "0" as a wildcard | |
static const unsigned int | layerStartBit_ = 14 |
two bits would be enough, but we could use the number "0" as a wildcard | |
static const unsigned int | moduleMask_ = 0x7 |
static const unsigned int | moduleStartBit_ = 2 |
static const unsigned int | rod_fw_bwMask_ = 0x3 |
static const unsigned int | rod_fw_bwStartBit_ = 12 |
static const unsigned int | rodMask_ = 0x7F |
static const unsigned int | rodStartBit_ = 5 |
static const unsigned int | sterMask_ = 0x3 |
static const unsigned int | sterStartBit_ = 0 |
Definition at line 16 of file TOBDetId.h.
TOBDetId::TOBDetId | ( | ) |
TOBDetId::TOBDetId | ( | uint32_t | rawid | ) |
TOBDetId::TOBDetId | ( | const DetId & | id | ) |
Construct from generic DetId
Definition at line 7 of file TOBDetId.cc.
: SiStripDetId(id.rawId()) { }
TOBDetId::TOBDetId | ( | uint32_t | layer, |
uint32_t | rod_fw_bw, | ||
uint32_t | rod, | ||
uint32_t | module, | ||
uint32_t | ster | ||
) | [inline] |
Definition at line 25 of file TOBDetId.h.
References DetId::id_, layerMask_, layerStartBit_, moduleMask_, moduleStartBit_, rod_fw_bwMask_, rod_fw_bwStartBit_, rodMask_, rodStartBit_, sterMask_, and sterStartBit_.
: SiStripDetId(DetId::Tracker,StripSubdetector::TOB){ id_ |= (layer& layerMask_) << layerStartBit_ | (rod_fw_bw& rod_fw_bwMask_) << rod_fw_bwStartBit_ | (rod& rodMask_) << rodStartBit_ | (module& moduleMask_) << moduleStartBit_ | (ster& sterMask_) << sterStartBit_ ; }
bool TOBDetId::isDoubleSide | ( | ) | const |
Returns true if the module is a double side = rphi + stereo
Definition at line 10 of file TOBDetId.cc.
References SiStripDetId::glued(), and layer().
Referenced by AlignmentStats::endJob(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), isRPhi(), isStereo(), and TrackerDpgAnalysis::toStringName().
bool TOBDetId::isRPhi | ( | ) | [inline] |
Returns true if the module is rphi
Definition at line 85 of file TOBDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
Referenced by SiStripBadModuleGenerator::isTOBDetector(), and TrackerDpgAnalysis::toStringName().
{ return (stereo() == 0 && !isDoubleSide());}
bool TOBDetId::isStereo | ( | ) | [inline] |
Returns true if the module is stereo
Definition at line 89 of file TOBDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
Referenced by AlignmentStats::endJob(), TkLayerMap::getXY_TOB(), SiStripBadModuleGenerator::isTOBDetector(), and ShallowClustersProducer::moduleVars::moduleVars().
{ return (stereo() != 0 && !isDoubleSide());}
bool TOBDetId::isZMinusSide | ( | ) | const [inline] |
Returns true if the module is in TOB- (z<0 side)
Definition at line 69 of file TOBDetId.h.
References side().
Referenced by SiStripFolderOrganizer::getFolderName(), TkLayerMap::getXY_TOB(), isZPlusSide(), and ShallowClustersProducer::moduleVars::moduleVars().
{ return (side() == 1);}
bool TOBDetId::isZPlusSide | ( | ) | const [inline] |
Returns true if the module is in TOB+ (z>0 side)
Definition at line 65 of file TOBDetId.h.
References isZMinusSide().
Referenced by SiStripBadModuleGenerator::isTOBDetector(), and TrackerDpgAnalysis::toStringName().
{ return (!isZMinusSide());}
unsigned int TOBDetId::layer | ( | ) | const [inline] |
layer id
Definition at line 39 of file TOBDetId.h.
References DetId::id_, layerMask_, and layerStartBit_.
Referenced by SiStripDetSummary::add(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripElectronAnalyzer::analyze(), SiStripQualityStatistics::analyze(), SiStripDigiValid::analyze(), ElectronSeedAnalyzer::analyze(), SiStripRecHitsValid::analyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), sistrip::MeasureLA::calibration_key(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), SiStripLorentzAngleGenerator::createObject(), reco::DeDxHit::DeDxHit(), RingMaker::determineExtensions(), SiStripBadComponentsDQMServiceReader::detIdToString(), RingMaker::dumpDetIds(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTOBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), KFTrajectoryFitter::fit(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripCablingDQM::getActiveDetIds(), getDetLayer(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), TrajectoryCleanerMerger::getLayer(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripCalibLorentzAngle::getNewObject(), SiStripGainCosmicCalculator::getNewObject(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), SiStripSubStructure::getTOBDetectors(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), GeometricSearchTracker::idToLayer(), fireworks::info(), DetIdInfo::info(), PFCheckHitPattern::interpretDetId(), isDoubleSide(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), RoadSearchDetIdHelper::IsMatched(), RoadSearchDetIdHelper::IsSingleRPhi(), reco::modules::TrackerTrackHitFilter::Rule::layer(), MuonAssociatorByHits::LayerFromDetid(), TrackingTruthProducer::LayerFromDetid(), SiStripRegionCabling::layerFromDetId(), TrackAssociatorByHits::LayerFromDetid(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), LA_Filler_Fitter::layerLabel(), layerNumber(), align::tob::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), DetIdTOBSameLayerComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), CtfSpecialSeedGenerator::preliminaryCheck(), RoadSearchDetIdHelper::Print(), SiStripQuality::printDetInfo(), reco::HitPattern::set(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripNoisesGenerator::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), LaserDQM::trackerStatistics(), KFTrajectorySmoother::trajectories(), and TrackerAlignableId::typeAndLayerFromDetId().
{ return int((id_>>layerStartBit_) & layerMask_); }
unsigned int TOBDetId::layerNumber | ( | ) | const [inline] |
Returns the layer number
Definition at line 73 of file TOBDetId.h.
References layer().
Referenced by AlignmentStats::endJob(), SiStripFolderOrganizer::getFolderName(), TkLayerMap::getXY_TOB(), SiStripBadModuleGenerator::isTOBDetector(), TkLayerMap::layerSearch(), SiStripDetCabling::layerSearch(), and TrackerDpgAnalysis::toStringName().
{ return layer();}
unsigned int TOBDetId::module | ( | ) | const [inline] |
detector id
Definition at line 58 of file TOBDetId.h.
References DetId::id_, moduleMask_, and moduleStartBit_.
Referenced by SiStripDigiValid::analyze(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTOBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), TrajectoryCleanerMerger::getLayer(), align::tob::moduleNumber(), moduleNumber(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
{ return ((id_>>moduleStartBit_)& moduleMask_) ;}
unsigned int TOBDetId::moduleNumber | ( | ) | const [inline] |
Returns the module number
Definition at line 81 of file TOBDetId.h.
References module().
Referenced by SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TkLayerMap::getXY_TOB(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), and TrackerDpgAnalysis::toStringName().
{ return module();}
std::vector<unsigned int> TOBDetId::rod | ( | ) | const [inline] |
rod id
vector[0] = 1 -> bw rod (TOB-) vector[0] = 2 -> fw rod (TOB+) vector[1] -> rod
Definition at line 49 of file TOBDetId.h.
References rodNumber(), and side().
Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTOBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiStripSubStructure::getTOBDetectors(), align::tob::halfBarrelNumber(), RoadSearchDetIdHelper::Print(), align::tob::rodNumber(), and trackerHierarchy().
unsigned int TOBDetId::rodNumber | ( | ) | const [inline] |
Returns the rod number
Definition at line 77 of file TOBDetId.h.
References DetId::id_, rodMask_, and rodStartBit_.
Referenced by SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripFolderOrganizer::getFolderName(), SiStripBaseCondObjDQM::getStringNameAndId(), TkLayerMap::getXY_TOB(), SiStripBadModuleGenerator::isTOBDetector(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), rod(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), and TrackerDpgAnalysis::toStringName().
{ return ((id_>>rodStartBit_) & rodMask_);}
unsigned int TOBDetId::side | ( | ) | const [inline] |
Definition at line 55 of file TOBDetId.h.
References DetId::id_, rod_fw_bwMask_, and rod_fw_bwStartBit_.
Referenced by isZMinusSide(), AlignmentParameterSelector::outsideDetIdRanges(), and rod().
{ return ((id_>>rod_fw_bwStartBit_) & rod_fw_bwMask_);}
const unsigned int TOBDetId::layerMask_ = 0x7 [static, private] |
two bits would be enough, but we could use the number "0" as a wildcard
Reimplemented from SiStripDetId.
Definition at line 101 of file TOBDetId.h.
Referenced by layer(), and TOBDetId().
const unsigned int TOBDetId::layerStartBit_ = 14 [static, private] |
two bits would be enough, but we could use the number "0" as a wildcard
Reimplemented from SiStripDetId.
Definition at line 94 of file TOBDetId.h.
Referenced by layer(), and TOBDetId().
const unsigned int TOBDetId::moduleMask_ = 0x7 [static, private] |
Definition at line 104 of file TOBDetId.h.
Referenced by module(), and TOBDetId().
const unsigned int TOBDetId::moduleStartBit_ = 2 [static, private] |
Definition at line 97 of file TOBDetId.h.
Referenced by module(), and TOBDetId().
const unsigned int TOBDetId::rod_fw_bwMask_ = 0x3 [static, private] |
Definition at line 102 of file TOBDetId.h.
Referenced by side(), and TOBDetId().
const unsigned int TOBDetId::rod_fw_bwStartBit_ = 12 [static, private] |
Definition at line 95 of file TOBDetId.h.
Referenced by side(), and TOBDetId().
const unsigned int TOBDetId::rodMask_ = 0x7F [static, private] |
Definition at line 103 of file TOBDetId.h.
Referenced by rodNumber(), and TOBDetId().
const unsigned int TOBDetId::rodStartBit_ = 5 [static, private] |
Definition at line 96 of file TOBDetId.h.
Referenced by rodNumber(), and TOBDetId().
const unsigned int TOBDetId::sterMask_ = 0x3 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 105 of file TOBDetId.h.
Referenced by TOBDetId().
const unsigned int TOBDetId::sterStartBit_ = 0 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 98 of file TOBDetId.h.
Referenced by TOBDetId().