#include <TIBDetId.h>
Public Member Functions | |
bool | isDoubleSide () const |
bool | isExternalString () const |
bool | isInternalString () 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 |
unsigned int | order () const |
unsigned int | side () const |
std::vector< unsigned int > | string () const |
string id | |
unsigned int | stringNumber () const |
TIBDetId (uint32_t layer, uint32_t str_fw_bw, uint32_t str_int_ext, uint32_t str, uint32_t module, uint32_t ster) | |
TIBDetId () | |
TIBDetId (const DetId &id) | |
TIBDetId (uint32_t rawid) | |
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_ = 0x3 |
static const unsigned int | moduleStartBit_ = 2 |
static const unsigned int | sterMask_ = 0x3 |
static const unsigned int | sterStartBit_ = 0 |
static const unsigned int | str_fw_bwMask_ = 0x3 |
static const unsigned int | str_fw_bwStartBit_ = 12 |
static const unsigned int | str_int_extMask_ = 0x3 |
static const unsigned int | str_int_extStartBit_ = 10 |
static const unsigned int | strMask_ = 0x3F |
static const unsigned int | strStartBit_ = 4 |
Definition at line 16 of file TIBDetId.h.
TIBDetId::TIBDetId | ( | ) |
TIBDetId::TIBDetId | ( | uint32_t | rawid | ) |
TIBDetId::TIBDetId | ( | const DetId & | id | ) |
Construct from generic DetId
Definition at line 7 of file TIBDetId.cc.
: SiStripDetId(id.rawId()){ }
TIBDetId::TIBDetId | ( | uint32_t | layer, |
uint32_t | str_fw_bw, | ||
uint32_t | str_int_ext, | ||
uint32_t | str, | ||
uint32_t | module, | ||
uint32_t | ster | ||
) | [inline] |
Definition at line 25 of file TIBDetId.h.
References DetId::id_, layerMask_, layerStartBit_, moduleMask_, moduleStartBit_, sterMask_, sterStartBit_, str_fw_bwMask_, str_fw_bwStartBit_, str_int_extMask_, str_int_extStartBit_, strMask_, and strStartBit_.
: SiStripDetId(DetId::Tracker,StripSubdetector::TIB){ id_ |= (layer& layerMask_) << layerStartBit_ | (str_fw_bw& str_fw_bwMask_) << str_fw_bwStartBit_ | (str_int_ext& str_int_extMask_) << str_int_extStartBit_ | (str& strMask_) << strStartBit_ | (module& moduleMask_) << moduleStartBit_ | (ster& sterMask_) << sterStartBit_ ; }
bool TIBDetId::isDoubleSide | ( | ) | const |
Returns true if the module is a double side = rphi + stereo
Definition at line 10 of file TIBDetId.cc.
References SiStripDetId::glued(), and layer().
Referenced by AlignmentStats::endJob(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), isRPhi(), isStereo(), MatchedHitRZCorrectionFromBending::MatchedHitRZCorrectionFromBending(), and TrackerDpgAnalysis::toStringName().
bool TIBDetId::isExternalString | ( | ) | const [inline] |
Returns true if the module is in external part of the layer (bigger radius)
Definition at line 99 of file TIBDetId.h.
References isInternalString().
Referenced by SiStripFolderOrganizer::getFolderName(), SiStripBaseCondObjDQM::getStringNameAndId(), and TrackerDpgAnalysis::toStringName().
{ return (!isInternalString());}
bool TIBDetId::isInternalString | ( | ) | const [inline] |
Returns true if the module is in internal part of the layer (smaller radius)
Definition at line 95 of file TIBDetId.h.
References order().
Referenced by SiStripBaseCondObjDQM::getStringNameAndId(), TkLayerMap::getXY_TIB(), isExternalString(), and SiStripBadModuleGenerator::isTIBDetector().
{ return (order() == 1);}
bool TIBDetId::isRPhi | ( | ) | [inline] |
Returns true if the module is rphi
Definition at line 103 of file TIBDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
Referenced by SiStripBadModuleGenerator::isTIBDetector(), and TrackerDpgAnalysis::toStringName().
{ return (stereo() == 0 && !isDoubleSide());}
bool TIBDetId::isStereo | ( | ) | [inline] |
Returns true if the module is stereo
Definition at line 107 of file TIBDetId.h.
References isDoubleSide(), and SiStripDetId::stereo().
Referenced by AlignmentStats::endJob(), TkLayerMap::getXY_TIB(), SiStripBadModuleGenerator::isTIBDetector(), and ShallowClustersProducer::moduleVars::moduleVars().
{ return (stereo() != 0 && !isDoubleSide());}
bool TIBDetId::isZMinusSide | ( | ) | const [inline] |
Returns true if the module is in TIB- (z<0 side)
Definition at line 79 of file TIBDetId.h.
References side().
Referenced by SiStripFolderOrganizer::getFolderName(), TkLayerMap::getXY_TIB(), isZPlusSide(), and ShallowClustersProducer::moduleVars::moduleVars().
{ return (side() == 1);}
bool TIBDetId::isZPlusSide | ( | ) | const [inline] |
Returns true if the module is in TIB+ (z>0 side)
Definition at line 75 of file TIBDetId.h.
References isZMinusSide().
Referenced by SiStripBadModuleGenerator::isTIBDetector(), and TrackerDpgAnalysis::toStringName().
{ return (!isZMinusSide());}
unsigned int TIBDetId::layer | ( | ) | const [inline] |
layer id
Definition at line 41 of file TIBDetId.h.
References DetId::id_, layerMask_, and layerStartBit_.
Referenced by SiStripDetSummary::add(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripElectronAnalyzer::analyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::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::fillTIBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::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::getTIBDetectors(), TrackTransformerForGlobalCosmicMuons::getTransientRecHits(), align::tib::halfShellNumber(), GeometricSearchTracker::idToLayer(), fireworks::info(), DetIdInfo::info(), CheckHitPattern::interpretDetId(), PFCheckHitPattern::interpretDetId(), isDoubleSide(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), RoadSearchDetIdHelper::IsMatched(), RoadSearchDetIdHelper::IsSingleRPhi(), ClusterSummary::ModuleSelection::IsStripSelected(), 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::tib::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), DetIdTIBSameLayerComparator::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), CtfSpecialSeedGenerator::preliminaryCheck(), RoadSearchDetIdHelper::Print(), SiStripQuality::printDetInfo(), reco::HitPattern::set(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), align::tib::stringNumber(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripNoisesGenerator::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), trackerHierarchy(), TrackTransformerForGlobalCosmicMuons::TrackerKeep(), LaserDQM::trackerStatistics(), KFTrajectorySmoother::trajectories(), TrackerAlignableId::typeAndLayerFromDetId(), and SiTrivialInduceChargeOnStrips::typeOf().
{ return int((id_>>layerStartBit_) & layerMask_); }
unsigned int TIBDetId::layerNumber | ( | ) | const [inline] |
Returns the layer number
Definition at line 83 of file TIBDetId.h.
References layer().
Referenced by AlignmentStats::endJob(), SiStripFolderOrganizer::getFolderName(), TkLayerMap::getXY_TIB(), SiStripBadModuleGenerator::isTIBDetector(), TkLayerMap::layerSearch(), SiStripDetCabling::layerSearch(), and TrackerDpgAnalysis::toStringName().
{ return layer();}
unsigned int TIBDetId::module | ( | ) | const [inline] |
detector id
Definition at line 61 of file TIBDetId.h.
References DetId::id_, moduleMask_, and moduleStartBit_.
Referenced by SiStripDigiValid::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTIBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), TrajectoryCleanerMerger::getLayer(), align::tib::moduleNumber(), moduleNumber(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), RoadSearchDetIdHelper::Print(), and trackerHierarchy().
{ return ((id_>>moduleStartBit_)& moduleMask_) ;}
unsigned int TIBDetId::moduleNumber | ( | ) | const [inline] |
Returns the module number
Definition at line 91 of file TIBDetId.h.
References module().
Referenced by SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TkLayerMap::getXY_TIB(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), and TrackerDpgAnalysis::toStringName().
{ return module();}
unsigned int TIBDetId::order | ( | ) | const [inline] |
Definition at line 64 of file TIBDetId.h.
References DetId::id_, str_int_extMask_, and str_int_extStartBit_.
Referenced by isInternalString(), and string().
{ return ((id_>>str_int_extStartBit_) & str_int_extMask_);}
unsigned int TIBDetId::side | ( | ) | const [inline] |
Definition at line 67 of file TIBDetId.h.
References DetId::id_, str_fw_bwMask_, and str_fw_bwStartBit_.
Referenced by isZMinusSide(), AlignmentParameterSelector::outsideDetIdRanges(), and string().
{return ((id_>>str_fw_bwStartBit_) & str_fw_bwMask_);}
std::vector<unsigned int> TIBDetId::string | ( | ) | const [inline] |
string id
vector[0] = 1 -> bw string (TIB-) vector[0] = 2 -> fw string (TIB+) vector[1] = 1 -> int string vector[1] = 2 -> ext string vector[2] -> string
Definition at line 53 of file TIBDetId.h.
References order(), side(), and stringNumber().
Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), RingMaker::determineExtensions(), RingMaker::dumpDetIds(), TrackerGeometryCompare::fillIdentifiers(), RingMaker::fillTIBGeometryArray(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiStripSubStructure::getTIBDetectors(), align::tib::halfBarrelNumber(), align::tib::halfShellNumber(), RoadSearchDetIdHelper::Print(), align::tib::stringNumber(), align::tib::surfaceNumber(), and trackerHierarchy().
{ std::vector<unsigned int> num; num.push_back( side() ); num.push_back( order() ); num.push_back(stringNumber()); return num ;}
unsigned int TIBDetId::stringNumber | ( | ) | const [inline] |
Returns the string number
Definition at line 87 of file TIBDetId.h.
References DetId::id_, strMask_, and strStartBit_.
Referenced by SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripFolderOrganizer::getFolderName(), SiStripBaseCondObjDQM::getStringNameAndId(), TkLayerMap::getXY_TIB(), SiStripBadModuleGenerator::isTIBDetector(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), string(), and TrackerDpgAnalysis::toStringName().
{ return ((id_>>strStartBit_) & strMask_);}
const unsigned int TIBDetId::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 121 of file TIBDetId.h.
Referenced by layer(), and TIBDetId().
const unsigned int TIBDetId::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 113 of file TIBDetId.h.
Referenced by layer(), and TIBDetId().
const unsigned int TIBDetId::moduleMask_ = 0x3 [static, private] |
Definition at line 125 of file TIBDetId.h.
Referenced by module(), and TIBDetId().
const unsigned int TIBDetId::moduleStartBit_ = 2 [static, private] |
Definition at line 117 of file TIBDetId.h.
Referenced by module(), and TIBDetId().
const unsigned int TIBDetId::sterMask_ = 0x3 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 126 of file TIBDetId.h.
Referenced by TIBDetId().
const unsigned int TIBDetId::sterStartBit_ = 0 [static, private] |
Reimplemented from SiStripDetId.
Definition at line 118 of file TIBDetId.h.
Referenced by TIBDetId().
const unsigned int TIBDetId::str_fw_bwMask_ = 0x3 [static, private] |
Definition at line 122 of file TIBDetId.h.
Referenced by side(), and TIBDetId().
const unsigned int TIBDetId::str_fw_bwStartBit_ = 12 [static, private] |
Definition at line 114 of file TIBDetId.h.
Referenced by side(), and TIBDetId().
const unsigned int TIBDetId::str_int_extMask_ = 0x3 [static, private] |
Definition at line 123 of file TIBDetId.h.
Referenced by order(), and TIBDetId().
const unsigned int TIBDetId::str_int_extStartBit_ = 10 [static, private] |
Definition at line 115 of file TIBDetId.h.
Referenced by order(), and TIBDetId().
const unsigned int TIBDetId::strMask_ = 0x3F [static, private] |
Definition at line 124 of file TIBDetId.h.
Referenced by stringNumber(), and TIBDetId().
const unsigned int TIBDetId::strStartBit_ = 4 [static, private] |
Definition at line 116 of file TIBDetId.h.
Referenced by stringNumber(), and TIBDetId().