CMS 3D CMS Logo

Classes | Public Member Functions | Private Attributes

TrackerTopology Class Reference

#include <TrackerTopology.h>

List of all members.

Classes

struct  PixelBarrelValues
struct  PixelEndcapValues
struct  TECValues
struct  TIBValues
struct  TIDValues
struct  TOBValues

Public Member Functions

unsigned int layer (const DetId &id) const
unsigned int module (const DetId &id) const
std::string print (DetId detid) const
DetId pxbDetId (uint32_t layer, uint32_t ladder, uint32_t module) const
unsigned int pxbLadder (const DetId &id) const
unsigned int pxbLayer (const DetId &id) const
unsigned int pxbModule (const DetId &id) const
unsigned int pxfBlade (const DetId &id) const
DetId pxfDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
unsigned int pxfDisk (const DetId &id) const
unsigned int pxfModule (const DetId &id) const
unsigned int pxfPanel (const DetId &id) const
unsigned int pxfSide (const DetId &id) const
DetId tecDetId (uint32_t side, uint32_t wheel, uint32_t petal_fw_bw, uint32_t petal, uint32_t ring, uint32_t module, uint32_t ster) const
uint32_t tecGlued (const DetId &id) const
bool tecIsBackPetal (const DetId &id) const
bool tecIsDoubleSide (const DetId &id) const
bool tecIsFrontPetal (const DetId &id) const
bool tecIsRPhi (const DetId &id) const
bool tecIsStereo (const DetId &id) const
bool tecIsZMinusSide (const DetId &id) const
bool tecIsZPlusSide (const DetId &id) const
unsigned int tecModule (const DetId &id) const
unsigned int tecOrder (const DetId &id) const
std::vector< unsigned int > tecPetalInfo (const DetId &id) const
unsigned int tecPetalNumber (const DetId &id) const
unsigned int tecRing (const DetId &id) const
 ring id
unsigned int tecSide (const DetId &id) const
uint32_t tecStereo (const DetId &id) const
unsigned int tecWheel (const DetId &id) const
DetId tibDetId (uint32_t layer, uint32_t str_fw_bw, uint32_t str_int_ext, uint32_t str, uint32_t module, uint32_t ster) const
uint32_t tibGlued (const DetId &id) const
bool tibIsDoubleSide (const DetId &id) const
bool tibIsExternalString (const DetId &id) const
bool tibIsInternalString (const DetId &id) const
bool tibIsRPhi (const DetId &id) const
bool tibIsStereo (const DetId &id) const
bool tibIsZMinusSide (const DetId &id) const
bool tibIsZPlusSide (const DetId &id) const
unsigned int tibLayer (const DetId &id) const
unsigned int tibModule (const DetId &id) const
unsigned int tibOrder (const DetId &id) const
unsigned int tibSide (const DetId &id) const
uint32_t tibStereo (const DetId &id) const
unsigned int tibString (const DetId &id) const
std::vector< unsigned int > tibStringInfo (const DetId &id) const
DetId tidDetId (uint32_t side, uint32_t wheel, uint32_t ring, uint32_t module_fw_bw, uint32_t module, uint32_t ster) const
uint32_t tidGlued (const DetId &id) const
bool tidIsBackRing (const DetId &id) const
bool tidIsDoubleSide (const DetId &id) const
bool tidIsFrontRing (const DetId &id) const
bool tidIsRPhi (const DetId &id) const
bool tidIsStereo (const DetId &id) const
bool tidIsZMinusSide (const DetId &id) const
bool tidIsZPlusSide (const DetId &id) const
unsigned int tidModule (const DetId &id) const
std::vector< unsigned int > tidModuleInfo (const DetId &id) const
unsigned int tidOrder (const DetId &id) const
unsigned int tidRing (const DetId &id) const
unsigned int tidSide (const DetId &id) const
uint32_t tidStereo (const DetId &id) const
unsigned int tidWheel (const DetId &id) const
DetId tobDetId (uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) const
uint32_t tobGlued (const DetId &id) const
bool tobIsDoubleSide (const DetId &id) const
bool tobIsRPhi (const DetId &id) const
bool tobIsStereo (const DetId &id) const
bool tobIsZMinusSide (const DetId &id) const
bool tobIsZPlusSide (const DetId &id) const
unsigned int tobLayer (const DetId &id) const
unsigned int tobModule (const DetId &id) const
unsigned int tobRod (const DetId &id) const
std::vector< unsigned int > tobRodInfo (const DetId &id) const
unsigned int tobSide (const DetId &id) const
uint32_t tobStereo (const DetId &id) const
 TrackerTopology (const PixelBarrelValues &pxb, const PixelEndcapValues &pxf, const TECValues &tecv, const TIBValues &tibv, const TIDValues &tidv, const TOBValues &tobv)

Private Attributes

PixelBarrelValues pbVals_
PixelEndcapValues pfVals_
TECValues tecVals_
TIBValues tibVals_
TIDValues tidVals_
TOBValues tobVals_

Detailed Description

Definition at line 18 of file TrackerTopology.h.


Constructor & Destructor Documentation

TrackerTopology::TrackerTopology ( const PixelBarrelValues pxb,
const PixelEndcapValues pxf,
const TECValues tecv,
const TIBValues tibv,
const TIDValues tidv,
const TOBValues tobv 
)

Definition at line 7 of file TrackerTopology.cc.

References pbVals_, pfVals_, tecVals_, tibVals_, tidVals_, and tobVals_.

                                                                                {
  pbVals_=pxb;
  pfVals_=pxf;
  tecVals_=tecv;
  tibVals_=tibv;
  tidVals_=tidv;
  tobVals_=tobv;
}

Member Function Documentation

unsigned int TrackerTopology::layer ( const DetId id) const

Definition at line 20 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLayer(), pxfDisk(), StripSubdetector::TEC, tecWheel(), StripSubdetector::TIB, tibLayer(), StripSubdetector::TID, tidWheel(), StripSubdetector::TOB, and tobLayer().

Referenced by getDetLayer(), and CkfDebugger::layer().

                                                         {
  uint32_t subdet=id.subdetId();
  if ( subdet == PixelSubdetector::PixelBarrel )
    return pxbLayer(id);
  if ( subdet == PixelSubdetector::PixelEndcap )
    return pxfDisk(id);
  if ( subdet == StripSubdetector::TIB )
    return tibLayer(id);
  if ( subdet == StripSubdetector::TID )
    return tidWheel(id);
  if ( subdet == StripSubdetector::TOB )
    return tobLayer(id);
  if ( subdet == StripSubdetector::TEC )
    return tecWheel(id);

  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::layer";
  return 0;
}
unsigned int TrackerTopology::module ( const DetId id) const

Definition at line 39 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbModule(), pxfModule(), StripSubdetector::TEC, tecModule(), StripSubdetector::TIB, tibModule(), StripSubdetector::TID, tidModule(), StripSubdetector::TOB, and tobModule().

                                                          {
  uint32_t subdet=id.subdetId();
  if ( subdet == PixelSubdetector::PixelBarrel )
    return pxbModule(id);
  if ( subdet == PixelSubdetector::PixelEndcap )
    return pxfModule(id);
  if ( subdet == StripSubdetector::TIB )
    return tibModule(id);
  if ( subdet == StripSubdetector::TID )
    return tidModule(id);
  if ( subdet == StripSubdetector::TOB )
    return tobModule(id);
  if ( subdet == StripSubdetector::TEC )
    return tecModule(id);

  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
  return 0;
}
std::string TrackerTopology::print ( DetId  detid) const

Definition at line 58 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLadder(), pxbLayer(), pxbModule(), pxfBlade(), pxfDisk(), pxfModule(), pxfPanel(), AlCaHLTBitMon_QueryRunRegistry::string, StripSubdetector::TEC, tecGlued(), tecIsDoubleSide(), tecModule(), tecPetalInfo(), tecRing(), tecSide(), tecStereo(), tecWheel(), StripSubdetector::TIB, tibGlued(), tibIsDoubleSide(), tibLayer(), tibModule(), tibStereo(), tibStringInfo(), StripSubdetector::TID, tidGlued(), tidIsDoubleSide(), tidModuleInfo(), tidRing(), tidSide(), tidStereo(), tidWheel(), StripSubdetector::TOB, tobGlued(), tobIsDoubleSide(), tobLayer(), tobModule(), tobRodInfo(), and tobStereo().

Referenced by MuonAssociatorByHits::getMatchedIds().

                                               {
  uint32_t subdet=id.subdetId();
  std::stringstream strstr;

  if ( subdet == PixelSubdetector::PixelBarrel ) {
    strstr  << "(PixelBarrel " 
            << pxbLayer(id) << ',' 
            << pxbLadder(id) << ',' 
            << pxbModule(id) << ')'; 
    return strstr.str();
  }

  if ( subdet == PixelSubdetector::PixelEndcap ) {
    strstr << "(PixelEndcap " 
           << pxfDisk(id) << ',' 
           << pxfBlade(id)  << ',' 
           << pxfPanel(id)  << ',' 
           << pxfModule(id)   << ')'; 
    return strstr.str();
  }

  if ( subdet == StripSubdetector::TIB ) {
    unsigned int              theLayer  = tibLayer(id);
    std::vector<unsigned int> theString = tibStringInfo(id);
    unsigned int              theModule = tibModule(id);
    std::string side;
    std::string part;
    side = (theString[0] == 1 ) ? "-" : "+";
    part = (theString[1] == 1 ) ? "int" : "ext";
    std::string type;
    type = (tibStereo(id) == 0) ? "r-phi" : "stereo";
    type = (tibGlued(id) == 0) ? type : type+" glued";
    type = (tibIsDoubleSide(id)) ? "double side" : type;
    strstr << "TIB" << side
           << " Layer " << theLayer << " " << part
           << " String " << theString[2]
           << " Module " << theModule << " " << type
           << " (" << id.rawId() << ")";
    return strstr.str();
  }

  if ( subdet == StripSubdetector::TID ) {
    unsigned int         theDisk   = tidWheel(id);
    unsigned int         theRing   = tidRing(id);
    std::vector<unsigned int> theModule = tidModuleInfo(id);
    std::string side;
    std::string part;
    side = (tidSide(id) == 1 ) ? "-" : "+";
    part = (theModule[0] == 1 ) ? "back" : "front";
    std::string type;
    type = (tidStereo(id) == 0) ? "r-phi" : "stereo";
    type = (tidGlued(id) == 0) ? type : type+" glued";
    type = (tidIsDoubleSide(id)) ? "double side" : type;
    strstr << "TID" << side
           << " Disk " << theDisk
           << " Ring " << theRing << " " << part
           << " Module " << theModule[1] << " " << type
           << " (" << id.rawId() << ")";
    return strstr.str();
  }

  if ( subdet == StripSubdetector::TOB ) {
    unsigned int              theLayer  = tobLayer(id);
    std::vector<unsigned int> theRod    = tobRodInfo(id);
    unsigned int              theModule = tobModule(id);
    std::string side;
    std::string part;
    side = (theRod[0] == 1 ) ? "-" : "+";
    std::string type;
    type = (tobStereo(id) == 0) ? "r-phi" : "stereo";
    type = (tobGlued(id) == 0) ? type : type+" glued";
    type = (tobIsDoubleSide(id)) ? "double side" : type;
    strstr << "TOB" << side
           << " Layer " << theLayer
           << " Rod " << theRod[1]
           << " Module " << theModule << " " << type
           << " (" << id.rawId() << ")";
    return strstr.str();
  }

  if ( subdet == StripSubdetector::TEC ) {
    unsigned int              theWheel  = tecWheel(id);
    unsigned int              theModule = tecModule(id);
    std::vector<unsigned int> thePetal  = tecPetalInfo(id);
    unsigned int              theRing   = tecRing(id);
    std::string side;
    std::string petal;
    side  = (tecSide(id) == 1 ) ? "-" : "+";
    petal = (thePetal[0] == 1 ) ? "back" : "front";
    std::string type;
    type = (tecStereo(id) == 0) ? "r-phi" : "stereo";
    type = (tecGlued(id) == 0) ? type : type+" glued";
    type = (tecIsDoubleSide(id)) ? "double side" : type;
    strstr << "TEC" << side
           << " Wheel " << theWheel
           << " Petal " << thePetal[1] << " " << petal
           << " Ring " << theRing
           << " Module " << theModule << " " << type
           << " (" << id.rawId() << ")";

    return strstr.str();
  }


  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
  return strstr.str();
}
DetId TrackerTopology::pxbDetId ( uint32_t  layer,
uint32_t  ladder,
uint32_t  module 
) const [inline]
unsigned int TrackerTopology::pxbLadder ( const DetId id) const [inline]
unsigned int TrackerTopology::pxbLayer ( const DetId id) const [inline]

Definition at line 115 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, and pbVals_.

Referenced by SiPixelDigiValid::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelMuonHLT::analyze(), SiPixelErrorEstimation::analyze(), SiPixelLorentzAngle::analyze(), SiPixelDigitizerAlgorithm::digitize(), AlignmentStats::endJob(), SiPixelRecHitsValid::fillBarrel(), TrackerGeometryCompare::fillIdentifiers(), QcdLowPtDQM::fillPixels(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), GlobalMuonRefitter::getRidOfSelectStationHits(), align::tpb::halfBarrelNumber(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), align::tpb::ladderNumber(), layer(), reco::modules::TrackerTrackHitFilter::Rule::layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), align::tpb::layerNumber(), SiPixelDigitizerAlgorithm::make_digis(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), HitPixelLayersTPSelector::pixelHitPattern(), print(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

                                               {
    return int((id.rawId()>>pbVals_.layerStartBit_) & pbVals_.layerMask_);
  }
unsigned int TrackerTopology::pxbModule ( const DetId id) const [inline]
unsigned int TrackerTopology::pxfBlade ( const DetId id) const [inline]
DetId TrackerTopology::pxfDetId ( uint32_t  side,
uint32_t  disk,
uint32_t  blade,
uint32_t  panel,
uint32_t  module 
) const [inline]
unsigned int TrackerTopology::pxfDisk ( const DetId id) const [inline]
unsigned int TrackerTopology::pxfModule ( const DetId id) const [inline]
unsigned int TrackerTopology::pxfPanel ( const DetId id) const [inline]
unsigned int TrackerTopology::pxfSide ( const DetId id) const [inline]
DetId TrackerTopology::tecDetId ( uint32_t  side,
uint32_t  wheel,
uint32_t  petal_fw_bw,
uint32_t  petal,
uint32_t  ring,
uint32_t  module,
uint32_t  ster 
) const [inline]
uint32_t TrackerTopology::tecGlued ( const DetId id) const [inline]

Definition at line 278 of file TrackerTopology.h.

References TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

Referenced by print().

                                           {
    if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 1 ) {
      return ( id.rawId() - 1 );
    } else if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 2 ) {
      return ( id.rawId() - 2 );
    } else { return 0; }
  }
bool TrackerTopology::tecIsBackPetal ( const DetId id) const [inline]
bool TrackerTopology::tecIsDoubleSide ( const DetId id) const [inline]
bool TrackerTopology::tecIsFrontPetal ( const DetId id) const [inline]
bool TrackerTopology::tecIsRPhi ( const DetId id) const [inline]

Definition at line 303 of file TrackerTopology.h.

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

Referenced by TrackerDpgAnalysis::toStringName().

{ return SiStripDetId(id).stereo()==0 && !tecIsDoubleSide(id);}
bool TrackerTopology::tecIsStereo ( const DetId id) const [inline]
bool TrackerTopology::tecIsZMinusSide ( const DetId id) const [inline]
bool TrackerTopology::tecIsZPlusSide ( const DetId id) const [inline]
unsigned int TrackerTopology::tecModule ( const DetId id) const [inline]
unsigned int TrackerTopology::tecOrder ( const DetId id) const [inline]
std::vector<unsigned int> TrackerTopology::tecPetalInfo ( const DetId id) const [inline]
unsigned int TrackerTopology::tecPetalNumber ( const DetId id) const [inline]
unsigned int TrackerTopology::tecRing ( const DetId id) const [inline]

ring id

Definition at line 199 of file TrackerTopology.h.

References TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, and tecVals_.

Referenced by SiStripDigiValid::analyze(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), SiStripFolderOrganizer::getFolderName(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripCalibLorentzAngle::getNewObject(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), HLTTrackerHaloFilter::hltFilter(), TrackerRecHit::init(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), print(), align::tec::ringNumber(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), tecIsDoubleSide(), and TrackerDpgAnalysis::toStringName().

                                              { 
    return ((id.rawId()>>tecVals_.ringStartBit_) & tecVals_.ringMask_) ;
  }
unsigned int TrackerTopology::tecSide ( const DetId id) const [inline]

Definition at line 157 of file TrackerTopology.h.

References TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, and tecVals_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromData::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), HitEff::analyze(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tec::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripBaseCondObjDQM::GetSameLayerDetId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), HLTTrackerHaloFilter::hltFilter(), SiStripDCSStatus::initialise(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripFolderOrganizer::setLayerFolder(), tecIsZMinusSide(), and LaserDQM::trackerStatistics().

                                              {
    return ((id.rawId()>>tecVals_.sideStartBit_)&tecVals_.sideMask_);
  }
uint32_t TrackerTopology::tecStereo ( const DetId id) const [inline]
unsigned int TrackerTopology::tecWheel ( const DetId id) const [inline]

Definition at line 179 of file TrackerTopology.h.

References tecVals_, TrackerTopology::TECValues::wheelMask_, and TrackerTopology::TECValues::wheelStartBit_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tec::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), HLTTrackerHaloFilter::hltFilter(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), layer(), reco::modules::TrackerTrackHitFilter::Rule::layer(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

                                               { 
    return ((id.rawId()>>tecVals_.wheelStartBit_) & tecVals_.wheelMask_) ;
  }
DetId TrackerTopology::tibDetId ( uint32_t  layer,
uint32_t  str_fw_bw,
uint32_t  str_int_ext,
uint32_t  str,
uint32_t  module,
uint32_t  ster 
) const [inline]
uint32_t TrackerTopology::tibGlued ( const DetId id) const [inline]

Definition at line 270 of file TrackerTopology.h.

References TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

Referenced by cms::ClusterMTCCFilter::filter(), SiStripGainCosmicCalculator::getNewObject(), and print().

                                           {
    if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 1 ) {
      return ( id.rawId() - 1 );
    } else if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 2 ) {
      return ( id.rawId() - 2 );
    } else { return 0; }
  }
bool TrackerTopology::tibIsDoubleSide ( const DetId id) const [inline]
bool TrackerTopology::tibIsExternalString ( const DetId id) const [inline]
bool TrackerTopology::tibIsInternalString ( const DetId id) const [inline]
bool TrackerTopology::tibIsRPhi ( const DetId id) const [inline]
bool TrackerTopology::tibIsStereo ( const DetId id) const [inline]
bool TrackerTopology::tibIsZMinusSide ( const DetId id) const [inline]
bool TrackerTopology::tibIsZPlusSide ( const DetId id) const [inline]
unsigned int TrackerTopology::tibLayer ( const DetId id) const [inline]

Definition at line 121 of file TrackerTopology.h.

References TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, and tibVals_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiPixelErrorEstimation::analyze(), SiStripLAProfileBooker::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripCalibLorentzAngle::getNewObject(), SiStripGainCosmicCalculator::getNewObject(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), align::tib::halfShellNumber(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), layer(), reco::modules::TrackerTrackHitFilter::Rule::layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), align::tib::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripElectronAlgo::projectPhiBand(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), align::tib::stringNumber(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), tibIsDoubleSide(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

                                               {
    return int((id.rawId()>>tibVals_.layerStartBit_) & tibVals_.layerMask_);
  }
unsigned int TrackerTopology::tibModule ( const DetId id) const [inline]
unsigned int TrackerTopology::tibOrder ( const DetId id) const [inline]
unsigned int TrackerTopology::tibSide ( const DetId id) const [inline]
uint32_t TrackerTopology::tibStereo ( const DetId id) const [inline]
unsigned int TrackerTopology::tibString ( const DetId id) const [inline]
std::vector<unsigned int> TrackerTopology::tibStringInfo ( const DetId id) const [inline]
DetId TrackerTopology::tidDetId ( uint32_t  side,
uint32_t  wheel,
uint32_t  ring,
uint32_t  module_fw_bw,
uint32_t  module,
uint32_t  ster 
) const [inline]
uint32_t TrackerTopology::tidGlued ( const DetId id) const [inline]

Definition at line 294 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

Referenced by print().

                                           {
    if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 1 ) {
      return ( id.rawId() - 1 );
    } else if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 2 ) {
      return ( id.rawId() - 2 );
    } else { return 0; }
  }
bool TrackerTopology::tidIsBackRing ( const DetId id) const [inline]
bool TrackerTopology::tidIsDoubleSide ( const DetId id) const [inline]
bool TrackerTopology::tidIsFrontRing ( const DetId id) const [inline]

Definition at line 355 of file TrackerTopology.h.

References tidIsBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

{return !tidIsBackRing(id);}
bool TrackerTopology::tidIsRPhi ( const DetId id) const [inline]

Definition at line 305 of file TrackerTopology.h.

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

Referenced by TrackerDpgAnalysis::toStringName().

{ return SiStripDetId(id).stereo()==0 && !tidIsDoubleSide(id);}
bool TrackerTopology::tidIsStereo ( const DetId id) const [inline]
bool TrackerTopology::tidIsZMinusSide ( const DetId id) const [inline]
bool TrackerTopology::tidIsZPlusSide ( const DetId id) const [inline]
unsigned int TrackerTopology::tidModule ( const DetId id) const [inline]
std::vector<unsigned int> TrackerTopology::tidModuleInfo ( const DetId id) const [inline]
unsigned int TrackerTopology::tidOrder ( const DetId id) const [inline]
unsigned int TrackerTopology::tidRing ( const DetId id) const [inline]

Definition at line 202 of file TrackerTopology.h.

References TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, and tidVals_.

Referenced by SiStripDigiValid::analyze(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripFolderOrganizer::getFolderName(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), TrackerRecHit::init(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), print(), align::tid::ringNumber(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), tidIsDoubleSide(), and TrackerDpgAnalysis::toStringName().

                                              { 
    return ((id.rawId()>>tidVals_.ringStartBit_) & tidVals_.ringMask_) ;
  }
unsigned int TrackerTopology::tidSide ( const DetId id) const [inline]
uint32_t TrackerTopology::tidStereo ( const DetId id) const [inline]
unsigned int TrackerTopology::tidWheel ( const DetId id) const [inline]

Definition at line 182 of file TrackerTopology.h.

References tidVals_, TrackerTopology::TIDValues::wheelMask_, and TrackerTopology::TIDValues::wheelStartBit_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tid::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), layer(), reco::modules::TrackerTrackHitFilter::Rule::layer(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), TrackerDpgAnalysis::toStringName(), and TrackerAlignableId::typeAndLayerFromDetId().

                                               { 
    return ((id.rawId()>>tidVals_.wheelStartBit_) & tidVals_.wheelMask_) ;
  }
DetId TrackerTopology::tobDetId ( uint32_t  layer,
uint32_t  rod_fw_bw,
uint32_t  rod,
uint32_t  module,
uint32_t  ster 
) const [inline]
uint32_t TrackerTopology::tobGlued ( const DetId id) const [inline]

Definition at line 286 of file TrackerTopology.h.

References TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

Referenced by print().

                                           {
    if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 1 ) {
      return ( id.rawId() - 1 );
    } else if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 2 ) {
      return ( id.rawId() - 2 );
    } else { return 0; }
  }
bool TrackerTopology::tobIsDoubleSide ( const DetId id) const [inline]
bool TrackerTopology::tobIsRPhi ( const DetId id) const [inline]
bool TrackerTopology::tobIsStereo ( const DetId id) const [inline]
bool TrackerTopology::tobIsZMinusSide ( const DetId id) const [inline]
bool TrackerTopology::tobIsZPlusSide ( const DetId id) const [inline]
unsigned int TrackerTopology::tobLayer ( const DetId id) const [inline]

Definition at line 118 of file TrackerTopology.h.

References TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, and tobVals_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripQualityStatistics::analyze(), SiStripDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiStripLAProfileBooker::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidation::fillTree(), TrackerOfflineValidationSummary::fillTree(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), cms::ClusterMTCCFilter::filter(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripCalibLorentzAngle::getNewObject(), SiStripGainCosmicCalculator::getNewObject(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), layer(), reco::modules::TrackerTrackHitFilter::Rule::layer(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentPrescaler::layerFromId(), align::tob::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripElectronAlgo::projectPhiBand(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), tobIsDoubleSide(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

                                               {
    return int((id.rawId()>>tobVals_.layerStartBit_) & tobVals_.layerMask_);
  }
unsigned int TrackerTopology::tobModule ( const DetId id) const [inline]
unsigned int TrackerTopology::tobRod ( const DetId id) const [inline]
std::vector<unsigned int> TrackerTopology::tobRodInfo ( const DetId id) const [inline]
unsigned int TrackerTopology::tobSide ( const DetId id) const [inline]
uint32_t TrackerTopology::tobStereo ( const DetId id) const [inline]

Member Data Documentation

Definition at line 467 of file TrackerTopology.h.

Referenced by pxbDetId(), pxbLadder(), pxbLayer(), pxbModule(), and TrackerTopology().