CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Attributes
TrackerTopology Class Reference

#include <TrackerTopology.h>

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
 
SiStripDetId::ModuleGeometry moduleGeometry (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
 
unsigned int side (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 More...
 
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_.

9  {
10  pbVals_=pxb;
11  pfVals_=pxf;
12  tecVals_=tecv;
13  tibVals_=tibv;
14  tidVals_=tidv;
15  tobVals_=tobv;
16 }
PixelEndcapValues pfVals_
PixelBarrelValues pbVals_

Member Function Documentation

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

Definition at line 39 of file TrackerTopology.cc.

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

Referenced by TrackAssociatorByHitsImpl::associateSimToReco(), SiPixelDigitizerAlgorithm::digitize(), getDetLayer(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), cms::SiPixelDigitizer::initializeEvent(), CheckHitPattern::interpretDetId(), reco::modules::TrackerTrackHitFilter::Rule::layer(), CkfDebugger::layer(), reco::modules::TrackerTrackHitFilter::layerFromId(), PixelCPEGeneric::localError(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), and edm::DataMixingSiPixelMCDigiWorker::putSiPixel().

39  {
40  uint32_t subdet=id.subdetId();
41  if ( subdet == PixelSubdetector::PixelBarrel )
42  return pxbLayer(id);
43  if ( subdet == PixelSubdetector::PixelEndcap )
44  return pxfDisk(id);
45  if ( subdet == StripSubdetector::TIB )
46  return tibLayer(id);
47  if ( subdet == StripSubdetector::TID )
48  return tidWheel(id);
49  if ( subdet == StripSubdetector::TOB )
50  return tobLayer(id);
51  if ( subdet == StripSubdetector::TEC )
52  return tecWheel(id);
53 
54  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::layer";
55  return 0;
56 }
unsigned int tibLayer(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
unsigned int TrackerTopology::module ( const DetId id) const

Definition at line 58 of file TrackerTopology.cc.

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

58  {
59  uint32_t subdet=id.subdetId();
60  if ( subdet == PixelSubdetector::PixelBarrel )
61  return pxbModule(id);
62  if ( subdet == PixelSubdetector::PixelEndcap )
63  return pxfModule(id);
64  if ( subdet == StripSubdetector::TIB )
65  return tibModule(id);
66  if ( subdet == StripSubdetector::TID )
67  return tidModule(id);
68  if ( subdet == StripSubdetector::TOB )
69  return tobModule(id);
70  if ( subdet == StripSubdetector::TEC )
71  return tecModule(id);
72 
73  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
74  return 0;
75 }
unsigned int pxbModule(const DetId &id) const
unsigned int tidModule(const DetId &id) const
unsigned int tibModule(const DetId &id) const
unsigned int pxfModule(const DetId &id) const
unsigned int tecModule(const DetId &id) const
unsigned int tobModule(const DetId &id) const
SiStripDetId::ModuleGeometry TrackerTopology::moduleGeometry ( const DetId id) const

Definition at line 186 of file TrackerTopology.cc.

References SiStripDetId::IB1, SiStripDetId::IB2, SiStripDetId::OB1, SiStripDetId::OB2, StripSubdetector::TEC, tecRing(), StripSubdetector::TIB, tibLayer(), StripSubdetector::TID, tidRing(), StripSubdetector::TOB, tobLayer(), SiStripDetId::UNKNOWNGEOMETRY, SiStripDetId::W1A, SiStripDetId::W1B, SiStripDetId::W2A, SiStripDetId::W2B, SiStripDetId::W3A, SiStripDetId::W3B, SiStripDetId::W4, SiStripDetId::W5, SiStripDetId::W6, and SiStripDetId::W7.

186  {
187  switch(id.subdetId()) {
190  case StripSubdetector::TID: switch (tidRing(id)) {
191  case 1: return SiStripDetId::W1A;
192  case 2: return SiStripDetId::W2A;
193  case 3: return SiStripDetId::W3A;
194  }
195  case StripSubdetector::TEC: switch (tecRing(id)) {
196  case 1: return SiStripDetId::W1B;
197  case 2: return SiStripDetId::W2B;
198  case 3: return SiStripDetId::W3B;
199  case 4: return SiStripDetId::W4;
200  case 5: return SiStripDetId::W5;
201  case 6: return SiStripDetId::W6;
202  case 7: return SiStripDetId::W7;
203  }
204  }
206 }
unsigned int tibLayer(const DetId &id) const
unsigned int tidRing(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
unsigned int tobLayer(const DetId &id) const
std::string TrackerTopology::print ( DetId  detid) const

Definition at line 77 of file TrackerTopology.cc.

References edm::hlt::Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLadder(), pxbLayer(), pxbModule(), pxfBlade(), pxfDisk(), pxfModule(), pxfPanel(), side(), 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 TrackingLayer::createFromDetId(), and MuonAssociatorByHitsHelper::getMatchedIds().

77  {
78  uint32_t subdet=id.subdetId();
79  std::stringstream strstr;
80 
81  if ( subdet == PixelSubdetector::PixelBarrel ) {
82  strstr << "(PixelBarrel "
83  << pxbLayer(id) << ','
84  << pxbLadder(id) << ','
85  << pxbModule(id) << ')';
86  return strstr.str();
87  }
88 
89  if ( subdet == PixelSubdetector::PixelEndcap ) {
90  strstr << "(PixelEndcap "
91  << pxfDisk(id) << ','
92  << pxfBlade(id) << ','
93  << pxfPanel(id) << ','
94  << pxfModule(id) << ')';
95  return strstr.str();
96  }
97 
98  if ( subdet == StripSubdetector::TIB ) {
99  unsigned int theLayer = tibLayer(id);
100  std::vector<unsigned int> theString = tibStringInfo(id);
101  unsigned int theModule = tibModule(id);
104  side = (theString[0] == 1 ) ? "-" : "+";
105  part = (theString[1] == 1 ) ? "int" : "ext";
107  type = (tibStereo(id) == 0) ? "r-phi" : "stereo";
108  type = (tibGlued(id) == 0) ? type : type+" glued";
109  type = (tibIsDoubleSide(id)) ? "double side" : type;
110  strstr << "TIB" << side
111  << " Layer " << theLayer << " " << part
112  << " String " << theString[2]
113  << " Module " << theModule << " " << type
114  << " (" << id.rawId() << ")";
115  return strstr.str();
116  }
117 
118  if ( subdet == StripSubdetector::TID ) {
119  unsigned int theDisk = tidWheel(id);
120  unsigned int theRing = tidRing(id);
121  std::vector<unsigned int> theModule = tidModuleInfo(id);
124  side = (tidSide(id) == 1 ) ? "-" : "+";
125  part = (theModule[0] == 1 ) ? "back" : "front";
127  type = (tidStereo(id) == 0) ? "r-phi" : "stereo";
128  type = (tidGlued(id) == 0) ? type : type+" glued";
129  type = (tidIsDoubleSide(id)) ? "double side" : type;
130  strstr << "TID" << side
131  << " Disk " << theDisk
132  << " Ring " << theRing << " " << part
133  << " Module " << theModule[1] << " " << type
134  << " (" << id.rawId() << ")";
135  return strstr.str();
136  }
137 
138  if ( subdet == StripSubdetector::TOB ) {
139  unsigned int theLayer = tobLayer(id);
140  std::vector<unsigned int> theRod = tobRodInfo(id);
141  unsigned int theModule = tobModule(id);
144  side = (theRod[0] == 1 ) ? "-" : "+";
146  type = (tobStereo(id) == 0) ? "r-phi" : "stereo";
147  type = (tobGlued(id) == 0) ? type : type+" glued";
148  type = (tobIsDoubleSide(id)) ? "double side" : type;
149  strstr << "TOB" << side
150  << " Layer " << theLayer
151  << " Rod " << theRod[1]
152  << " Module " << theModule << " " << type
153  << " (" << id.rawId() << ")";
154  return strstr.str();
155  }
156 
157  if ( subdet == StripSubdetector::TEC ) {
158  unsigned int theWheel = tecWheel(id);
159  unsigned int theModule = tecModule(id);
160  std::vector<unsigned int> thePetal = tecPetalInfo(id);
161  unsigned int theRing = tecRing(id);
163  std::string petal;
164  side = (tecSide(id) == 1 ) ? "-" : "+";
165  petal = (thePetal[0] == 1 ) ? "back" : "front";
167  type = (tecStereo(id) == 0) ? "r-phi" : "stereo";
168  type = (tecGlued(id) == 0) ? type : type+" glued";
169  type = (tecIsDoubleSide(id)) ? "double side" : type;
170  strstr << "TEC" << side
171  << " Wheel " << theWheel
172  << " Petal " << thePetal[1] << " " << petal
173  << " Ring " << theRing
174  << " Module " << theModule << " " << type
175  << " (" << id.rawId() << ")";
176 
177  return strstr.str();
178  }
179 
180 
181  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
182  return strstr.str();
183 }
type
Definition: HCALResponse.h:21
bool tecIsDoubleSide(const DetId &id) const
bool tobIsDoubleSide(const DetId &id) const
uint32_t tobGlued(const DetId &id) const
bool tibIsDoubleSide(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tidRing(const DetId &id) const
std::vector< unsigned int > tidModuleInfo(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
uint32_t tobStereo(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
unsigned int side(const DetId &id) const
uint32_t tecGlued(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int pxbModule(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
std::vector< unsigned int > tecPetalInfo(const DetId &id) const
unsigned int tidSide(const DetId &id) const
uint32_t tidStereo(const DetId &id) const
std::vector< unsigned int > tobRodInfo(const DetId &id) const
unsigned int tibModule(const DetId &id) const
unsigned int pxfModule(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
unsigned int tecModule(const DetId &id) const
uint32_t tibGlued(const DetId &id) const
part
Definition: HCALResponse.h:20
bool tidIsDoubleSide(const DetId &id) const
unsigned int tobModule(const DetId &id) const
uint32_t tecStereo(const DetId &id) const
uint32_t tibStereo(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
unsigned int pxfPanel(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const
uint32_t tidGlued(const DetId &id) const
DetId TrackerTopology::pxbDetId ( uint32_t  layer,
uint32_t  ladder,
uint32_t  module 
) const
inline

Definition at line 371 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, pbVals_, PixelSubdetector::PixelBarrel, and DetId::Tracker.

Referenced by ValidHitPairFilter::getCloseDets(), and PixelBarrelName::getDetId().

373  {
374  //uply
376  uint32_t rawid=id.rawId();
380  return DetId(rawid);
381  }
PixelBarrelValues pbVals_
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
unsigned int TrackerTopology::pxbLadder ( const DetId id) const
inline
unsigned int TrackerTopology::pxbLayer ( const DetId id) const
inline

Definition at line 116 of file TrackerTopology.h.

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

Referenced by SiPixelDigiValid::analyze(), SiPixelRecHitsValid::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), AlignmentStats::endJob(), SiPixelRecHitsValid::fillBarrel(), TrackerGeometryCompare::fillIdentifiers(), QcdLowPtDQM::fillPixels(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), GlobalMuonRefitter::getRidOfSelectStationHits(), align::tpb::halfBarrelNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), align::tpb::ladderNumber(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::tpb::layerNumber(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), PixelBarrelName::PixelBarrelName(), print(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

116  {
117  return int((id.rawId()>>pbVals_.layerStartBit_) & pbVals_.layerMask_);
118  }
PixelBarrelValues pbVals_
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

Definition at line 383 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, pfVals_, PixelSubdetector::PixelEndcap, TrackerTopology::PixelEndcapValues::sideMask_, TrackerTopology::PixelEndcapValues::sideStartBit_, and DetId::Tracker.

Referenced by ValidHitPairFilter::getCloseDets(), and PixelEndcapName::getDetId().

387  {
389  uint32_t rawid=id.rawId();
390  rawid |= (side& pfVals_.sideMask_) << pfVals_.sideStartBit_ |
395  return DetId(rawid);
396  }
unsigned int side(const DetId &id) const
PixelEndcapValues pfVals_
Definition: DetId.h:18
Definition: vlib.h:208
unsigned int TrackerTopology::pxfDisk ( const DetId id) const
inline

Definition at line 360 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, and pfVals_.

Referenced by SiPixelDigiValid::analyze(), SiPixelRecHitsValid::analyze(), SiPixelErrorEstimation::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), AlignmentStats::endJob(), SiPixelRecHitsValid::fillForward(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), GlobalMuonRefitter::getRidOfSelectStationHits(), align::tpe::halfDiskNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), PixelEndcapName::PixelEndcapName(), print(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

360  {
361  return int((id.rawId()>>pfVals_.diskStartBit_) & pfVals_.diskMask_);
362  }
PixelEndcapValues pfVals_
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
unsigned int TrackerTopology::side ( const DetId id) const

Definition at line 19 of file TrackerTopology.cc.

References edm::hlt::Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxfSide(), StripSubdetector::TEC, tecSide(), StripSubdetector::TIB, StripSubdetector::TID, tidSide(), and StripSubdetector::TOB.

Referenced by print(), and reco::modules::TrackerTrackHitFilter::sideFromId().

19  {
20  uint32_t subdet=id.subdetId();
21  if ( subdet == PixelSubdetector::PixelBarrel )
22  return 0;
23  if ( subdet == PixelSubdetector::PixelEndcap )
24  return pxfSide(id);
25  if ( subdet == StripSubdetector::TIB )
26  return 0;
27  if ( subdet == StripSubdetector::TID )
28  return tidSide(id);
29  if ( subdet == StripSubdetector::TOB )
30  return 0;
31  if ( subdet == StripSubdetector::TEC )
32  return tecSide(id);
33 
34  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::side";
35  return 0;
36 }
unsigned int tidSide(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
unsigned int tecSide(const DetId &id) const
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

Definition at line 398 of file TrackerTopology.h.

References TrackerTopology::TECValues::moduleMask_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, TrackerTopology::TECValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, TrackerTopology::TECValues::sideMask_, TrackerTopology::TECValues::sideStartBit_, TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, StripSubdetector::TEC, tecVals_, DetId::Tracker, TrackerTopology::TECValues::wheelMask_, and TrackerTopology::TECValues::wheelStartBit_.

400  {
401 
403  uint32_t rawid=id.rawId();
404 
405  rawid |= (side& tecVals_.sideMask_) << tecVals_.sideStartBit_ |
412  return DetId(rawid);
413  }
unsigned int side(const DetId &id) const
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:18
Definition: vlib.h:208
uint32_t TrackerTopology::tecGlued ( const DetId id) const
inline

Definition at line 279 of file TrackerTopology.h.

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

Referenced by print().

279  {
280  if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 1 ) {
281  return ( id.rawId() - 1 );
282  } else if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 2 ) {
283  return ( id.rawId() - 2 );
284  } else { return 0; }
285  }
bool TrackerTopology::tecIsBackPetal ( const DetId id) const
inline
bool TrackerTopology::tecIsDoubleSide ( const DetId id) const
inline

Definition at line 224 of file TrackerTopology.h.

References SiStripDetId::glued(), and tecRing().

Referenced by AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), print(), tecIsRPhi(), tecIsStereo(), and TrackerDpgAnalysis::toStringName().

224 { return SiStripDetId(id).glued()==0 && (tecRing(id)==1 || tecRing(id)==2 || tecRing(id)==5);}
unsigned int tecRing(const DetId &id) const
ring id
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
uint32_t glued() const
Definition: SiStripDetId.h:154
bool TrackerTopology::tecIsFrontPetal ( const DetId id) const
inline

Definition at line 321 of file TrackerTopology.h.

References tecIsBackPetal().

Referenced by SiStripMonitorMuonHLT::GeometryFromTrackGeom(), and TrackerDpgAnalysis::toStringName().

321 {return !tecIsBackPetal(id);}
bool tecIsBackPetal(const DetId &id) const
bool TrackerTopology::tecIsRPhi ( const DetId id) const
inline

Definition at line 304 of file TrackerTopology.h.

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

Referenced by TrackerDpgAnalysis::toStringName().

304 { return SiStripDetId(id).stereo()==0 && !tecIsDoubleSide(id);}
bool tecIsDoubleSide(const DetId &id) const
uint32_t stereo() const
Definition: SiStripDetId.h:162
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
bool TrackerTopology::tecIsStereo ( const DetId id) const
inline
bool TrackerTopology::tecIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tecIsZPlusSide ( const DetId id) const
inline

Definition at line 237 of file TrackerTopology.h.

References tecIsZMinusSide().

Referenced by AlignmentTrackSelector::detailedHitsCheck(), MillePedeMonitor::fillTrack(), and TrackerDpgAnalysis::toStringName().

237 {return !tecIsZMinusSide(id);}
bool tecIsZMinusSide(const DetId &id) const
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

Definition at line 310 of file TrackerTopology.h.

References pileupDistInMC::num, tecOrder(), and tecPetalNumber().

Referenced by SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), align::tec::petalNumber(), print(), and align::tec::sideNumber().

310  {
311  std::vector<unsigned int> num;
312  num.push_back(tecOrder(id));
313  num.push_back(tecPetalNumber(id));
314  return num ;
315  }
unsigned int tecOrder(const DetId &id) const
unsigned int tecPetalNumber(const DetId &id) const
unsigned int TrackerTopology::tecPetalNumber ( const DetId id) const
inline
unsigned int TrackerTopology::tecRing ( const DetId id) const
inline

ring id

Definition at line 200 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(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), SiStripFolderOrganizer::getFolderName(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripCalibLorentzAngle::getNewObject(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), ctfseeding::HitExtractorSTRP::hits(), TrajectorySeedHitCandidate::init(), HitEff::isDoubleSided(), TrajectoryAtInvalidHit::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), 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().

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

Definition at line 158 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(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tec::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), SiStripDCSStatus::initialise(), TkAlCaOverlapTagger::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripFolderOrganizer::setLayerFolder(), side(), tecIsZMinusSide(), and LaserDQM::trackerStatistics().

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

Definition at line 180 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(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tec::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

180  {
181  return ((id.rawId()>>tecVals_.wheelStartBit_) & tecVals_.wheelMask_) ;
182  }
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

Definition at line 415 of file TrackerTopology.h.

References TrackerTopology::TIBValues::layerMask_, TrackerTopology::TIBValues::layerStartBit_, TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIBValues::moduleStartBit_, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, TrackerTopology::TIBValues::str_fw_bwMask_, TrackerTopology::TIBValues::str_fw_bwStartBit_, TrackerTopology::TIBValues::str_int_extMask_, TrackerTopology::TIBValues::str_int_extStartBit_, TrackerTopology::TIBValues::strMask_, TrackerTopology::TIBValues::strStartBit_, StripSubdetector::TIB, tibVals_, and DetId::Tracker.

Referenced by SurveyDataReader::readFile().

420  {
422  uint32_t rawid=id.rawId();
429  return DetId(rawid);
430  }
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
uint32_t TrackerTopology::tibGlued ( const DetId id) const
inline

Definition at line 271 of file TrackerTopology.h.

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

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

271  {
272  if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 1 ) {
273  return ( id.rawId() - 1 );
274  } else if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 2 ) {
275  return ( id.rawId() - 2 );
276  } else { return 0; }
277  }
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

Definition at line 305 of file TrackerTopology.h.

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

Referenced by SiPixelErrorEstimation::analyze(), and TrackerDpgAnalysis::toStringName().

305 { return SiStripDetId(id).stereo()==0 && !tibIsDoubleSide(id);}
bool tibIsDoubleSide(const DetId &id) const
uint32_t stereo() const
Definition: SiStripDetId.h:162
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
bool TrackerTopology::tibIsStereo ( const DetId id) const
inline
bool TrackerTopology::tibIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tibIsZPlusSide ( const DetId id) const
inline

Definition at line 231 of file TrackerTopology.h.

References tibIsZMinusSide().

Referenced by SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), and TrackerDpgAnalysis::toStringName().

231 {return !tibIsZMinusSide(id);}
bool tibIsZMinusSide(const DetId &id) const
unsigned int TrackerTopology::tibLayer ( const DetId id) const
inline

Definition at line 122 of file TrackerTopology.h.

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

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), align::tib::halfShellNumber(), GeometricSearchTracker::idToLayer(), HitEff::isDoubleSided(), TrajectoryAtInvalidHit::isDoubleSided(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::tib::layerNumber(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), 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().

122  {
123  return int((id.rawId()>>tibVals_.layerStartBit_) & tibVals_.layerMask_);
124  }
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

Definition at line 328 of file TrackerTopology.h.

References pileupDistInMC::num, tibOrder(), tibSide(), and tibString().

Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), align::tib::halfBarrelNumber(), align::tib::halfShellNumber(), print(), align::tib::stringNumber(), and align::tib::surfaceNumber().

329  { std::vector<unsigned int> num;
330  num.push_back( tibSide(id) );
331  num.push_back( tibOrder(id) );
332  num.push_back(tibString(id));
333  return num ;
334  }
unsigned int tibString(const DetId &id) const
unsigned int tibSide(const DetId &id) const
unsigned int tibOrder(const DetId &id) const
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

Definition at line 432 of file TrackerTopology.h.

References TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, TrackerTopology::TIDValues::moduleMask_, TrackerTopology::TIDValues::moduleStartBit_, TrackerTopology::TIDValues::ringMask_, TrackerTopology::TIDValues::ringStartBit_, TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, StripSubdetector::TID, tidVals_, DetId::Tracker, TrackerTopology::TIDValues::wheelMask_, and TrackerTopology::TIDValues::wheelStartBit_.

Referenced by SurveyDataReader::readFile().

437  {
439  uint32_t rawid=id.rawId();
440  rawid |= (side& tidVals_.sideMask_) << tidVals_.sideStartBit_ |
446  return DetId(rawid);
447  }
unsigned int side(const DetId &id) const
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:18
unsigned int module_fw_bwStartBit_
Definition: vlib.h:208
uint32_t TrackerTopology::tidGlued ( const DetId id) const
inline

Definition at line 295 of file TrackerTopology.h.

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

Referenced by print().

295  {
296  if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 1 ) {
297  return ( id.rawId() - 1 );
298  } else if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 2 ) {
299  return ( id.rawId() - 2 );
300  } else { return 0; }
301  }
bool TrackerTopology::tidIsBackRing ( const DetId id) const
inline
bool TrackerTopology::tidIsDoubleSide ( const DetId id) const
inline

Definition at line 226 of file TrackerTopology.h.

References SiStripDetId::glued(), and tidRing().

Referenced by AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), print(), tidIsRPhi(), tidIsStereo(), and TrackerDpgAnalysis::toStringName().

226 { return SiStripDetId(id).glued()==0 && (tidRing(id)==1 || tidRing(id)==2);}
unsigned int tidRing(const DetId &id) const
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
uint32_t glued() const
Definition: SiStripDetId.h:154
bool TrackerTopology::tidIsFrontRing ( const DetId id) const
inline

Definition at line 356 of file TrackerTopology.h.

References tidIsBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

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

Definition at line 306 of file TrackerTopology.h.

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

Referenced by TrackerDpgAnalysis::toStringName().

306 { return SiStripDetId(id).stereo()==0 && !tidIsDoubleSide(id);}
uint32_t stereo() const
Definition: SiStripDetId.h:162
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
bool tidIsDoubleSide(const DetId &id) const
bool TrackerTopology::tidIsStereo ( const DetId id) const
inline
bool TrackerTopology::tidIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tidIsZPlusSide ( const DetId id) const
inline

Definition at line 234 of file TrackerTopology.h.

References tidIsZMinusSide().

Referenced by AlignmentTrackSelector::detailedHitsCheck(), MillePedeMonitor::fillTrack(), and TrackerDpgAnalysis::toStringName().

234 {return !tidIsZMinusSide(id);}
bool tidIsZMinusSide(const DetId &id) const
unsigned int TrackerTopology::tidModule ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tidModuleInfo ( const DetId id) const
inline

Definition at line 345 of file TrackerTopology.h.

References pileupDistInMC::num, tidModule(), and tidOrder().

Referenced by SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), align::tid::moduleNumber(), print(), and align::tid::sideNumber().

345  {
346  std::vector<unsigned int> num;
347  num.push_back( tidOrder(id) );
348  num.push_back( tidModule(id) );
349  return num ;
350  }
unsigned int tidModule(const DetId &id) const
unsigned int tidOrder(const DetId &id) const
unsigned int TrackerTopology::tidOrder ( const DetId id) const
inline
unsigned int TrackerTopology::tidRing ( const DetId id) const
inline

Definition at line 203 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(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripFolderOrganizer::getFolderName(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), ctfseeding::HitExtractorSTRP::hits(), TrajectorySeedHitCandidate::init(), HitEff::isDoubleSided(), TrajectoryAtInvalidHit::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), 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().

203  {
204  return ((id.rawId()>>tidVals_.ringStartBit_) & tidVals_.ringMask_) ;
205  }
unsigned int TrackerTopology::tidSide ( const DetId id) const
inline

Definition at line 166 of file TrackerTopology.h.

References TrackerTopology::TIDValues::sideMask_, TrackerTopology::TIDValues::sideStartBit_, and tidVals_.

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tid::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripFolderOrganizer::setLayerFolder(), side(), ResidualRefitting::StoreTrackerRecHits(), and tidIsZMinusSide().

166  {
167  return ((id.rawId()>>tidVals_.sideStartBit_)&tidVals_.sideMask_);
168  }
uint32_t TrackerTopology::tidStereo ( const DetId id) const
inline
unsigned int TrackerTopology::tidWheel ( const DetId id) const
inline

Definition at line 183 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(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tid::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), TrackerDpgAnalysis::toStringName(), and TrackerAlignableId::typeAndLayerFromDetId().

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

Definition at line 449 of file TrackerTopology.h.

References TrackerTopology::TOBValues::layerMask_, TrackerTopology::TOBValues::layerStartBit_, TrackerTopology::TOBValues::moduleMask_, TrackerTopology::TOBValues::moduleStartBit_, TrackerTopology::TOBValues::rod_fw_bwMask_, TrackerTopology::TOBValues::rod_fw_bwStartBit_, TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, StripSubdetector::TOB, tobVals_, and DetId::Tracker.

453  {
455  uint32_t rawid=id.rawId();
461  return DetId(rawid);
462  }
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
uint32_t TrackerTopology::tobGlued ( const DetId id) const
inline

Definition at line 287 of file TrackerTopology.h.

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

Referenced by print().

287  {
288  if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 1 ) {
289  return ( id.rawId() - 1 );
290  } else if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 2 ) {
291  return ( id.rawId() - 2 );
292  } else { return 0; }
293  }
bool TrackerTopology::tobIsDoubleSide ( const DetId id) const
inline

Definition at line 223 of file TrackerTopology.h.

References SiStripDetId::glued(), and tobLayer().

Referenced by SiPixelErrorEstimation::analyze(), AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), print(), tobIsRPhi(), tobIsStereo(), and TrackerDpgAnalysis::toStringName().

223 { return SiStripDetId(id).glued()==0 && (tobLayer(id)==1 || tobLayer(id)==2);}
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
uint32_t glued() const
Definition: SiStripDetId.h:154
unsigned int tobLayer(const DetId &id) const
bool TrackerTopology::tobIsRPhi ( const DetId id) const
inline

Definition at line 303 of file TrackerTopology.h.

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

Referenced by SiPixelErrorEstimation::analyze(), and TrackerDpgAnalysis::toStringName().

303 { return SiStripDetId(id).stereo()==0 && !tobIsDoubleSide(id);}
bool tobIsDoubleSide(const DetId &id) const
uint32_t stereo() const
Definition: SiStripDetId.h:162
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
bool TrackerTopology::tobIsStereo ( const DetId id) const
inline
bool TrackerTopology::tobIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tobIsZPlusSide ( const DetId id) const
inline

Definition at line 228 of file TrackerTopology.h.

References tobIsZMinusSide().

Referenced by SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), and TrackerDpgAnalysis::toStringName().

228 {return !tobIsZMinusSide(id);}
bool tobIsZMinusSide(const DetId &id) const
unsigned int TrackerTopology::tobLayer ( const DetId id) const
inline

Definition at line 119 of file TrackerTopology.h.

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

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), SiTrackerGaussianSmearingRecHitConverter::gaussianSmearing(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), HitEff::isDoubleSided(), TrajectoryAtInvalidHit::isDoubleSided(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::tob::layerNumber(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), 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().

119  {
120  return int((id.rawId()>>tobVals_.layerStartBit_) & tobVals_.layerMask_);
121  }
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

Definition at line 216 of file TrackerTopology.h.

References pileupDistInMC::num, tobRod(), and tobSide().

Referenced by SiStripDigiValid::analyze(), SiStripLAProfileBooker::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), TrackerOfflineValidation::fillTree(), align::tob::halfBarrelNumber(), print(), and align::tob::rodNumber().

216  {
217  std::vector<unsigned int> num;
218  num.push_back( tobSide(id) );
219  num.push_back( tobRod(id) );
220  return num ;
221  }
unsigned int tobSide(const DetId &id) const
unsigned int tobRod(const DetId &id) const
unsigned int TrackerTopology::tobSide ( const DetId id) const
inline
uint32_t TrackerTopology::tobStereo ( const DetId id) const
inline

Member Data Documentation

PixelBarrelValues TrackerTopology::pbVals_
private

Definition at line 470 of file TrackerTopology.h.

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

PixelEndcapValues TrackerTopology::pfVals_
private
TECValues TrackerTopology::tecVals_
private
TIBValues TrackerTopology::tibVals_
private
TIDValues TrackerTopology::tidVals_
private
TOBValues TrackerTopology::tobVals_
private