CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
TrackerTopology Class Reference

#include <TrackerTopology.h>

Classes

struct  BitmaskAndSubdet
 
struct  PixelBarrelValues
 
struct  PixelEndcapValues
 
class  SameLayerComparator
 
struct  TECValues
 
struct  TIBValues
 
struct  TIDValues
 
struct  TOBValues
 

Public Types

enum  DetIdFields {
  PBModule, PBLadder, PBLayer, PFModule,
  PFPanel, PFBlade, PFDisk, PFSide,
  DETID_FIELDS_MAX
}
 

Public Member Functions

unsigned int getField (const DetId &id, DetIdFields idx) const
 
int getITPixelLayerNumber (const DetId &id) const
 
int getOTLayerNumber (const DetId &id) const
 
uint32_t glued (const DetId &id) const
 
bool hasField (const DetId &id, DetIdFields idx) const
 
bool isLower (const DetId &id) const
 
bool isRPhi (const DetId &id) const
 
bool isStereo (const DetId &id) const
 
bool isUpper (const DetId &id) const
 
unsigned int layer (const DetId &id) const
 
uint32_t lower (const DetId &id) const
 
unsigned int module (const DetId &id) const
 
SiStripDetId::ModuleGeometry moduleGeometry (const DetId &id) const
 
DetId partnerDetId (const DetId &id) const
 
std::string print (DetId detid) const
 
DetId pxbDetId (uint32_t layer, uint32_t ladder, uint32_t module) const
 
std::pair< DetId, SameLayerComparatorpxbDetIdLayerComparator (uint32_t layer) 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
 
std::pair< DetId, SameLayerComparatorpxfDetIdDiskComparator (uint32_t side, uint32_t disk) 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
 
uint32_t stack (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
 
std::pair< DetId, SameLayerComparatortecDetIdWheelComparator (uint32_t side, uint32_t wheel) 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
 
uint32_t tecLower (const DetId &id) const
 
unsigned int tecModule (const DetId &id) const
 
unsigned int tecOrder (const DetId &id) const
 
uint32_t tecPartnerDetId (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...
 
uint32_t tecRPhi (const DetId &id) const
 
unsigned int tecSide (const DetId &id) const
 
uint32_t tecStack (const DetId &id) const
 
uint32_t tecStereo (const DetId &id) const
 
uint32_t tecUpper (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
 
std::pair< DetId, SameLayerComparatortibDetIdLayerComparator (uint32_t layer) 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
 
uint32_t tibLower (const DetId &id) const
 
unsigned int tibModule (const DetId &id) const
 
unsigned int tibOrder (const DetId &id) const
 
DetId tibPartnerDetId (const DetId &id) const
 
uint32_t tibRPhi (const DetId &id) const
 
unsigned int tibSide (const DetId &id) const
 
uint32_t tibStack (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
 
uint32_t tibUpper (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
 
std::pair< DetId, SameLayerComparatortidDetIdWheelComparator (uint32_t side, uint32_t wheel) 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
 
uint32_t tidLower (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
 
DetId tidPartnerDetId (const DetId &id) const
 
unsigned int tidRing (const DetId &id) const
 
uint32_t tidRPhi (const DetId &id) const
 
unsigned int tidSide (const DetId &id) const
 
uint32_t tidStack (const DetId &id) const
 
uint32_t tidStereo (const DetId &id) const
 
uint32_t tidUpper (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
 
std::pair< DetId, SameLayerComparatortobDetIdLayerComparator (uint32_t layer) 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
 
uint32_t tobLower (const DetId &id) const
 
unsigned int tobModule (const DetId &id) const
 
DetId tobPartnerDetId (const DetId &id) const
 
unsigned int tobRod (const DetId &id) const
 
std::vector< unsigned int > tobRodInfo (const DetId &id) const
 
uint32_t tobRPhi (const DetId &id) const
 
unsigned int tobSide (const DetId &id) const
 
uint32_t tobStack (const DetId &id) const
 
uint32_t tobStereo (const DetId &id) const
 
uint32_t tobUpper (const DetId &id) const
 
 TrackerTopology (const PixelBarrelValues &pxb, const PixelEndcapValues &pxf, const TECValues &tecv, const TIBValues &tibv, const TIDValues &tidv, const TOBValues &tobv)
 
uint32_t upper (const DetId &id) const
 

Private Attributes

const BitmaskAndSubdet bits_per_field [DETID_FIELDS_MAX]
 
const PixelBarrelValues pbVals_
 
const PixelEndcapValues pfVals_
 
const TECValues tecVals_
 
const TIBValues tibVals_
 
const TIDValues tidVals_
 
const TOBValues tobVals_
 

Detailed Description

Definition at line 18 of file TrackerTopology.h.

Member Enumeration Documentation

Enumerator
PBModule 
PBLadder 
PBLayer 
PFModule 
PFPanel 
PFBlade 
PFDisk 
PFSide 
DETID_FIELDS_MAX 

Definition at line 105 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 8 of file TrackerTopology.cc.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, PBLadder, PBLayer, PBModule, pbVals_, PFBlade, PFDisk, PFModule, PFPanel, PFSide, pfVals_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, TrackerTopology::PixelEndcapValues::sideMask_, and TrackerTopology::PixelEndcapValues::sideStartBit_.

11  : pbVals_(pxb),
12  pfVals_(pxf),
13  tobVals_(tobv),
14  tibVals_(tibv),
15  tidVals_(tidv),
16  tecVals_(tecv),
26  }
27 {}
const TECValues tecVals_
const PixelEndcapValues pfVals_
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
const PixelBarrelValues pbVals_
const TIBValues tibVals_
const TOBValues tobVals_
const TIDValues tidVals_

Member Function Documentation

unsigned int TrackerTopology::getField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 595 of file TrackerTopology.h.

References bits_per_field, and RecoTauDiscriminantConfiguration::mask.

Referenced by GeometryInterface::loadFromTopology().

595  {
596  return ((id.rawId()>>bits_per_field[idx].startBit)&bits_per_field[idx].mask);
597  }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
int TrackerTopology::getITPixelLayerNumber ( const DetId id) const

Definition at line 450 of file TrackerTopology.cc.

References layer(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLayer(), pxfDisk(), pxfSide(), and DetId::Tracker.

Referenced by tobDetIdLayerComparator().

450  {
451  int layer = -1;
452 
453  if (id.det() == DetId::Tracker) {
454  if (id.subdetId() == PixelSubdetector::PixelBarrel) {
455  layer = pxbLayer(id);
456  } else if (id.subdetId() == PixelSubdetector::PixelEndcap) {
457  layer = 100 * pxfSide(id) + pxfDisk(id);
458  } else {
459  edm::LogInfo("TrackerTopology") << ">>> Invalid subdetId() " ;
460  }
461  }
462  return layer;
463 }
unsigned int pxfDisk(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
unsigned int layer(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
int TrackerTopology::getOTLayerNumber ( const DetId id) const

Definition at line 435 of file TrackerTopology.cc.

References layer(), StripSubdetector::TID, tidSide(), tidWheel(), StripSubdetector::TOB, tobLayer(), and DetId::Tracker.

Referenced by tobDetIdLayerComparator().

435  {
436  int layer = -1;
437 
438  if (id.det() == DetId::Tracker) {
439  if (id.subdetId() == StripSubdetector::TOB) {
440  layer = tobLayer(id);
441  } else if (id.subdetId() == StripSubdetector::TID) {
442  layer = 100 * tidSide(id) + tidWheel(id);
443  } else {
444  edm::LogInfo("TrackerTopology") << ">>> Invalid subdetId() " ;
445  }
446  }
447  return layer;
448 }
unsigned int tidWheel(const DetId &id) const
unsigned int tidSide(const DetId &id) const
unsigned int layer(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
uint32_t TrackerTopology::glued ( const DetId id) const

Definition at line 88 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecGlued(), StripSubdetector::TIB, tibGlued(), StripSubdetector::TID, tidGlued(), StripSubdetector::TOB, and tobGlued().

Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), and tobRodInfo().

88  {
89 
90  uint32_t subdet=id.subdetId();
91  if ( subdet == PixelSubdetector::PixelBarrel )
92  return 0;
93  if ( subdet == PixelSubdetector::PixelEndcap )
94  return 0;
95  if ( subdet == StripSubdetector::TIB )
96  return tibGlued(id);
97  if ( subdet == StripSubdetector::TID )
98  return tidGlued(id);
99  if ( subdet == StripSubdetector::TOB )
100  return tobGlued(id);
101  if ( subdet == StripSubdetector::TEC )
102  return tecGlued(id);
103 
104  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::glued";
105  return 0;
106 }
uint32_t tobGlued(const DetId &id) const
uint32_t tecGlued(const DetId &id) const
uint32_t tibGlued(const DetId &id) const
uint32_t tidGlued(const DetId &id) const
bool TrackerTopology::hasField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 600 of file TrackerTopology.h.

References bits_per_field, training_settings::idx, and TrackerTopology::BitmaskAndSubdet::subdet.

Referenced by GeometryInterface::loadFromTopology().

600  {
601  return id.subdetId() == bits_per_field[idx].subdet;
602  }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
bool TrackerTopology::isLower ( const DetId id) const

Definition at line 205 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecLower(), StripSubdetector::TIB, tibLower(), StripSubdetector::TID, tidLower(), StripSubdetector::TOB, and tobLower().

Referenced by print(), TTStubAssociator< T >::produce(), TTClusterBuilder< T >::produce(), TTStubBuilder< T >::produce(), TrackingNtuple::DetIdPhase2OTOnly::push_back(), and tobRodInfo().

205  {
206 
207  uint32_t subdet=id.subdetId();
208  if ( subdet == PixelSubdetector::PixelBarrel )
209  return false;
210  if ( subdet == PixelSubdetector::PixelEndcap )
211  return false;
212  if ( subdet == StripSubdetector::TIB )
213  return tibLower(id)!=0;
214  if ( subdet == StripSubdetector::TID )
215  return tidLower(id)!=0;
216  if ( subdet == StripSubdetector::TOB )
217  return tobLower(id)!=0;
218  if ( subdet == StripSubdetector::TEC )
219  return tecLower(id)!=0;
220 
221  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isLower";
222  return 0;
223 
224 }
uint32_t tobLower(const DetId &id) const
uint32_t tidLower(const DetId &id) const
uint32_t tecLower(const DetId &id) const
uint32_t tibLower(const DetId &id) const
bool TrackerTopology::isRPhi ( const DetId id) const

Definition at line 186 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecRPhi(), StripSubdetector::TIB, tibRPhi(), StripSubdetector::TID, tidRPhi(), StripSubdetector::TOB, and tobRPhi().

Referenced by print(), TrackingNtuple::DetIdStripOnly::push_back(), and tobRodInfo().

186  {
187 
188  uint32_t subdet=id.subdetId();
189  if ( subdet == PixelSubdetector::PixelBarrel )
190  return false;
191  if ( subdet == PixelSubdetector::PixelEndcap )
192  return false;
193  if ( subdet == StripSubdetector::TIB )
194  return tibRPhi(id)!=0;
195  if ( subdet == StripSubdetector::TID )
196  return tidRPhi(id)!=0;
197  if ( subdet == StripSubdetector::TOB )
198  return tobRPhi(id)!=0;
199  if ( subdet == StripSubdetector::TEC )
200  return tecRPhi(id)!=0;
201 
202  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isRPhi";
203  return 0;
204 }
uint32_t tidRPhi(const DetId &id) const
uint32_t tecRPhi(const DetId &id) const
uint32_t tibRPhi(const DetId &id) const
uint32_t tobRPhi(const DetId &id) const
bool TrackerTopology::isStereo ( const DetId id) const

Definition at line 166 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecStereo(), StripSubdetector::TIB, tibStereo(), StripSubdetector::TID, tidStereo(), StripSubdetector::TOB, and tobStereo().

Referenced by print(), TrackingNtuple::DetIdStripOnly::push_back(), and tobRodInfo().

166  {
167 
168  uint32_t subdet=id.subdetId();
169  if ( subdet == PixelSubdetector::PixelBarrel )
170  return false;
171  if ( subdet == PixelSubdetector::PixelEndcap )
172  return false;
173  if ( subdet == StripSubdetector::TIB )
174  return tibStereo(id)!=0;
175  if ( subdet == StripSubdetector::TID )
176  return tidStereo(id)!=0;
177  if ( subdet == StripSubdetector::TOB )
178  return tobStereo(id)!=0;
179  if ( subdet == StripSubdetector::TEC )
180  return tecStereo(id)!=0;
181 
182  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isStereo";
183  return 0;
184 }
uint32_t tobStereo(const DetId &id) const
uint32_t tidStereo(const DetId &id) const
uint32_t tecStereo(const DetId &id) const
uint32_t tibStereo(const DetId &id) const
bool TrackerTopology::isUpper ( const DetId id) const

Definition at line 226 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecUpper(), StripSubdetector::TIB, tibUpper(), StripSubdetector::TID, tidUpper(), StripSubdetector::TOB, and tobUpper().

Referenced by print(), TrackingNtuple::DetIdPhase2OTOnly::push_back(), and tobRodInfo().

226  {
227 
228  uint32_t subdet=id.subdetId();
229  if ( subdet == PixelSubdetector::PixelBarrel )
230  return false;
231  if ( subdet == PixelSubdetector::PixelEndcap )
232  return false;
233  if ( subdet == StripSubdetector::TIB )
234  return tibUpper(id)!=0;
235  if ( subdet == StripSubdetector::TID )
236  return tidUpper(id)!=0;
237  if ( subdet == StripSubdetector::TOB )
238  return tobUpper(id)!=0;
239  if ( subdet == StripSubdetector::TEC )
240  return tecUpper(id)!=0;
241 
242  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::isUpper";
243  return 0;
244 }
uint32_t tecUpper(const DetId &id) const
uint32_t tibUpper(const DetId &id) const
uint32_t tobUpper(const DetId &id) const
uint32_t tidUpper(const DetId &id) const
unsigned int TrackerTopology::layer ( const DetId id) const

Definition at line 50 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 TrackMerger::addSecondTrackHits(), OuterTrackerMonitorTTStub::analyze(), OuterTrackerMonitorTTCluster::analyze(), ElectronSeedAnalyzer::analyze(), TrackingRecoMaterialAnalyser::analyze(), LumiMonitor::analyze(), TestHits::analyze(), TestSmoothHits::analyze(), TestTrackHits::analyze(), TestOutliers::analyze(), TrackAssociatorByHitsImpl::associateSimToReco(), TrackingParticleNumberOfLayers::calculate(), SiPixelDigitizerAlgorithm::digitize(), reco::HitPattern::encode(), TrackingNtuple::fillPhase2OTHits(), TrackingNtuple::fillPixelHits(), TrackingTruthAccumulator::fillSimHits(), TrackingNtuple::fillStripMatchedHits(), TrackingNtuple::fillStripRphiStereoHits(), TrackingNtuple::fillTracks(), getDetLayer(), getITPixelLayerNumber(), getOTLayerNumber(), MTVHistoProducerAlgoForTracker::getSeedingLayerSetBin(), CAHitQuadrupletGenerator::hitNtuplets(), CAHitQuadrupletGenerator::hitQuadruplets(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), DetIdInfo::info(), cms::SiPixelDigitizer::initializeEvent(), CheckHitPattern::interpretDetId(), reco::modules::TrackerTrackHitFilter::Rule::layer(), CkfDebugger::layer(), reco::modules::TrackerTrackHitFilter::layerFromId(), SiStripDetCabling::layerSearch(), PixelCPEGeneric::localError(), TrackMerger::merge(), SiStripTrackerMapCreator::paintTkMapFromAlarm(), SiPixelDigitizerAlgorithm::pixel_aging(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), CtfSpecialSeedGenerator::preliminaryCheck(), SiStripQuality::printDetInfo(), MuonReSeeder::produce(), SiStripRegionConnectivity::produceRegionCabling(), TrackingNtuple::DetIdCommon::push_back(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), and TrackAnalyzer::setLumi().

50  {
51  uint32_t subdet=id.subdetId();
52  if ( subdet == PixelSubdetector::PixelBarrel )
53  return pxbLayer(id);
54  if ( subdet == PixelSubdetector::PixelEndcap )
55  return pxfDisk(id);
56  if ( subdet == StripSubdetector::TIB )
57  return tibLayer(id);
58  if ( subdet == StripSubdetector::TID )
59  return tidWheel(id);
60  if ( subdet == StripSubdetector::TOB )
61  return tobLayer(id);
62  if ( subdet == StripSubdetector::TEC )
63  return tecWheel(id);
64 
65  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::layer";
66  return 0;
67 }
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
uint32_t TrackerTopology::lower ( const DetId id) const

Definition at line 127 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecLower(), StripSubdetector::TIB, tibLower(), StripSubdetector::TID, tidLower(), StripSubdetector::TOB, and tobLower().

Referenced by tobRodInfo().

127  {
128 
129  uint32_t subdet=id.subdetId();
130  if ( subdet == PixelSubdetector::PixelBarrel )
131  return 0;
132  if ( subdet == PixelSubdetector::PixelEndcap )
133  return 0;
134  if ( subdet == StripSubdetector::TIB )
135  return tibLower(id);
136  if ( subdet == StripSubdetector::TID )
137  return tidLower(id);
138  if ( subdet == StripSubdetector::TOB )
139  return tobLower(id);
140  if ( subdet == StripSubdetector::TEC )
141  return tecLower(id);
142 
143  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::lower";
144 }
uint32_t tobLower(const DetId &id) const
uint32_t tidLower(const DetId &id) const
uint32_t tecLower(const DetId &id) const
uint32_t tibLower(const DetId &id) const
unsigned int TrackerTopology::module ( const DetId id) const

Definition at line 69 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().

Referenced by TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), TrackerAlignmentLevelBuilder::addTIBDetUnitInfo(), TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), TrackerAlignmentLevelBuilder::addTOBDetUnitInfo(), and TrackingNtuple::DetIdCommon::push_back().

69  {
70  uint32_t subdet=id.subdetId();
71  if ( subdet == PixelSubdetector::PixelBarrel )
72  return pxbModule(id);
73  if ( subdet == PixelSubdetector::PixelEndcap )
74  return pxfModule(id);
75  if ( subdet == StripSubdetector::TIB )
76  return tibModule(id);
77  if ( subdet == StripSubdetector::TID )
78  return tidModule(id);
79  if ( subdet == StripSubdetector::TOB )
80  return tobModule(id);
81  if ( subdet == StripSubdetector::TEC )
82  return tecModule(id);
83 
84  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
85  return 0;
86 }
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 413 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.

Referenced by SiStripMonitorTrack::clusterInfos(), SiStripBackPlaneCorrectioNFakeESSource::produce(), and tobDetIdLayerComparator().

413  {
414  switch(id.subdetId()) {
417  case StripSubdetector::TID: switch (tidRing(id)) {
418  case 1: return SiStripDetId::W1A;
419  case 2: return SiStripDetId::W2A;
420  case 3: return SiStripDetId::W3A;
421  }
422  case StripSubdetector::TEC: switch (tecRing(id)) {
423  case 1: return SiStripDetId::W1B;
424  case 2: return SiStripDetId::W2B;
425  case 3: return SiStripDetId::W3B;
426  case 4: return SiStripDetId::W4;
427  //generic function to return DetIds and boolean factors
428  case 5: return SiStripDetId::W5;
429  case 6: return SiStripDetId::W6;
430  case 7: return SiStripDetId::W7;
431  }
432  }
434 }
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
DetId TrackerTopology::partnerDetId ( const DetId id) const

Definition at line 246 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::subdetId(), StripSubdetector::TEC, tecPartnerDetId(), StripSubdetector::TIB, tibPartnerDetId(), StripSubdetector::TID, tidPartnerDetId(), StripSubdetector::TOB, and tobPartnerDetId().

Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), TrackerGeomBuilderFromGeometricDet::buildSilicon(), TTClusterBuilder< T >::produce(), TTStubBuilder< T >::produce(), and tecStack().

246  {
247 
248  uint32_t subdet=id.subdetId();
249  if ( subdet == PixelSubdetector::PixelBarrel )
250  return 0;
251  if ( subdet == PixelSubdetector::PixelEndcap )
252  return 0;
253  if ( subdet == StripSubdetector::TIB )
254  return tibPartnerDetId(id);
255  if ( subdet == StripSubdetector::TID )
256  return tidPartnerDetId(id);
257  if ( subdet == StripSubdetector::TOB )
258  return tobPartnerDetId(id);
259  if ( subdet == StripSubdetector::TEC )
260  return tecPartnerDetId(id);
261 
262  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::partnerDetId";
263  return 0;
264 }
DetId tidPartnerDetId(const DetId &id) const
uint32_t tecPartnerDetId(const DetId &id) const
DetId tibPartnerDetId(const DetId &id) const
DetId tobPartnerDetId(const DetId &id) const
std::string TrackerTopology::print ( DetId  detid) const

Definition at line 266 of file TrackerTopology.cc.

References Exception, isLower(), isRPhi(), isStereo(), isUpper(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pxbLadder(), pxbLayer(), pxbModule(), pxfBlade(), pxfDisk(), pxfModule(), pxfPanel(), pxfSide(), side(), AlCaHLTBitMon_QueryRunRegistry::string, StripSubdetector::TEC, tecModule(), tecPetalInfo(), tecRing(), tecSide(), tecWheel(), StripSubdetector::TIB, tibLayer(), tibModule(), tibStringInfo(), StripSubdetector::TID, tidModuleInfo(), tidRing(), tidSide(), tidWheel(), StripSubdetector::TOB, tobLayer(), tobModule(), and tobRodInfo().

Referenced by TrackingLayer::createFromDetId(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackingRecHitProducer::setupDetIdPipes(), and tobDetIdLayerComparator().

266  {
267  uint32_t subdet=id.subdetId();
268  std::stringstream strstr;
269 
270  if ( subdet == PixelSubdetector::PixelBarrel ) {
271  unsigned int theLayer = pxbLayer(id);
272  unsigned int theLadder = pxbLadder(id);
273  unsigned int theModule = pxbModule(id);
274  strstr << "PixelBarrel"
275  << " Layer " << theLayer
276  << " Ladder " << theLadder
277  << " Module " << theModule ;
278  strstr << " (" << id.rawId() << ")";
279  return strstr.str();
280  }
281 
282  if ( subdet == PixelSubdetector::PixelEndcap ) {
283  unsigned int theSide = pxfSide(id);
284  unsigned int theDisk = pxfDisk(id);
285  unsigned int theBlade = pxfBlade(id);
286  unsigned int thePanel = pxfPanel(id);
287  unsigned int theModule = pxfModule(id);
288  std::string side = (pxfSide(id) == 1 ) ? "-" : "+";
289  strstr << "PixelEndcap"
290  << " Side " << theSide << side
291  << " Disk " << theDisk
292  << " Blade " << theBlade
293  << " Panel " << thePanel
294  << " Module " << theModule ;
295  strstr << " (" << id.rawId() << ")";
296  return strstr.str();
297  }
298 
299  if ( subdet == StripSubdetector::TIB ) {
300  unsigned int theLayer = tibLayer(id);
301  std::vector<unsigned int> theString = tibStringInfo(id);
302  unsigned int theModule = tibModule(id);
305  side = (theString[0] == 1 ) ? "-" : "+";
306  part = (theString[1] == 1 ) ? "int" : "ext";
308  type = (isStereo(id)) ? "stereo" : type;
309  type = (isRPhi(id)) ? "r-phi" : type;
310  type = (isStereo(id) || isRPhi(id)) ? type+" glued": "module";
311  std::string typeUpgrade;
312  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
313  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
314  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade+" stack": "module";
315  strstr << "TIB" << side
316  << " Layer " << theLayer << " " << part
317  << " String " << theString[2];
318  strstr << " Module for phase0 " << theModule << " " << type;
319  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
320  strstr << " (" << id.rawId() << ")";
321  return strstr.str();
322  }
323 
324  if ( subdet == StripSubdetector::TID ) {
325  unsigned int theSide = tidSide(id);
326  unsigned int theWheel = tidWheel(id);
327  unsigned int theRing = tidRing(id);
328  std::vector<unsigned int> theModule = tidModuleInfo(id);
331  side = (tidSide(id) == 1 ) ? "-" : "+";
332  part = (theModule[0] == 1 ) ? "back" : "front";
334  type = (isStereo(id)) ? "stereo" : type;
335  type = (isRPhi(id)) ? "r-phi" : type;
336  type = (isStereo(id) || isRPhi(id)) ? type+" glued": "module";
337  std::string typeUpgrade;
338  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
339  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
340  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade+" stack": "module";
341  strstr << "TID"
342  << " Side " << theSide << side
343  << " Wheel " << theWheel
344  << " Ring " << theRing << " " << part;
345  strstr << " Module for phase0 " << theModule[1] << " " << type;
346  strstr << " Module for phase2 " << theModule[1] << " " << typeUpgrade;
347  strstr << " (" << id.rawId() << ")";
348  return strstr.str();
349  }
350 
351  if ( subdet == StripSubdetector::TOB ) {
352  unsigned int theLayer = tobLayer(id);
353  std::vector<unsigned int> theRod = tobRodInfo(id);
354  unsigned int theModule = tobModule(id);
357  side = (((theRod[0] == 1 ) ? "-" : ((theRod[0] == 2 ) ? "+" : (theRod[0] == 3 ) ? "0" : "")));
358 // side = (theRod[0] == 2 ) ? "+" : "";
359 // side = (theRod[0] == 3 ) ? "0" : "";
361  type = (isStereo(id)) ? "stereo" : type;
362  type = (isRPhi(id)) ? "r-phi" : type;
363  type = (isStereo(id) || isRPhi(id)) ? type+" glued": "module";
364  std::string typeUpgrade;
365  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
366  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
367  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade+" stack": "module";
368  strstr << "TOB" << side
369  << " Layer " << theLayer
370  << " Rod " << theRod[1];
371  strstr << " Module for phase0 " << theModule << " " << type;
372  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
373  strstr << " (" << id.rawId() << ")";
374  return strstr.str();
375  }
376 
377  if ( subdet == StripSubdetector::TEC ) {
378  unsigned int theSide = tecSide(id);
379  unsigned int theWheel = tecWheel(id);
380  unsigned int theModule = tecModule(id);
381  std::vector<unsigned int> thePetal = tecPetalInfo(id);
382  unsigned int theRing = tecRing(id);
384  std::string petal;
385  side = (tecSide(id) == 1 ) ? "-" : "+";
386  petal = (thePetal[0] == 1 ) ? "back" : "front";
388  type = (isStereo(id)) ? "stereo" : type;
389  type = (isRPhi(id)) ? "r-phi" : type;
390  type = (isStereo(id) || isRPhi(id)) ? type+" glued": "module";
391  std::string typeUpgrade;
392  typeUpgrade = (isLower(id)) ? "lower" : typeUpgrade;
393  typeUpgrade = (isUpper(id)) ? "upper" : typeUpgrade;
394  typeUpgrade = (isUpper(id) || isLower(id)) ? typeUpgrade+" stack": "module";
395  strstr << "TEC"
396  << " Side " << theSide << side
397  << " Wheel " << theWheel
398  << " Petal " << thePetal[1] << " " << petal
399  << " Ring " << theRing;
400  strstr << " Module for phase0 " << theModule << " " << type;
401  strstr << " Module for phase2 " << theModule << " " << typeUpgrade;
402  strstr << " (" << id.rawId() << ")";
403 
404  return strstr.str();
405  }
406 
407 
408  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
409  return strstr.str();
410 }
type
Definition: HCALResponse.h:21
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
unsigned int pxbLadder(const DetId &id) const
unsigned int side(const DetId &id) const
bool isStereo(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
bool isLower(const DetId &id) const
std::vector< unsigned int > tecPetalInfo(const DetId &id) const
unsigned int tidSide(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
bool isUpper(const DetId &id) const
unsigned int tecModule(const DetId &id) const
part
Definition: HCALResponse.h:20
unsigned int tobModule(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
bool isRPhi(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
DetId TrackerTopology::pxbDetId ( uint32_t  layer,
uint32_t  ladder,
uint32_t  module 
) const
inline

Definition at line 466 of file TrackerTopology.h.

References hcalTTPDigis_cfi::id, 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 PixelBarrelName::getDetId(), and pxbDetIdLayerComparator().

468  {
469  //uply
471  uint32_t rawid=id.rawId();
475  return DetId(rawid);
476  }
const PixelBarrelValues pbVals_
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::pxbDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 559 of file TrackerTopology.h.

References pxbDetId().

Referenced by HITrackingRegionForPrimaryVtxProducer::estimateMultiplicity(), ctfseeding::HitExtractorPIX::hits(), and HIProtoTrackFilterProducer::produce().

559  {
560  return std::make_pair(pxbDetId(layer, 1,1), SameLayerComparator(this));
561  }
unsigned int layer(const DetId &id) const
DetId pxbDetId(uint32_t layer, uint32_t ladder, uint32_t module) const
unsigned int TrackerTopology::pxbLadder ( const DetId id) const
inline

Definition at line 155 of file TrackerTopology.h.

References TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, and pbVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), HitInfo::getInfo(), align::TrackerNameSpace::TPB::halfBarrelNumber(), TrackCleaner::isCompatible(), SiPixelCoordinates::ladder(), align::TrackerNameSpace::TPB::ladderNumber(), HitComparatorByRadius::operator()(), SiPixelCoordinates::outer(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelBarrelName::PixelBarrelName(), print(), TrackingNtuple::DetIdPixelOnly::push_back(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), TrackerOfflineValidation::setUpTreeMembers(), and ResidualRefitting::StoreTrackerRecHits().

155  {
156  return ((id.rawId()>>pbVals_.ladderStartBit_) & pbVals_.ladderMask_) ;
157  }
const PixelBarrelValues pbVals_
unsigned int TrackerTopology::pxbLayer ( const DetId id) const
inline

Definition at line 144 of file TrackerTopology.h.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelBarrelGeometry(), TrackerAlignmentLevelBuilder::addPXBDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelRecHitsValid::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), AlignmentStats::endJob(), HITrackingRegionProducer::estimateMultiplicity(), SiPixelRecHitsValid::fillBarrel(), TrackerGeometryCompare::fillIdentifiers(), QcdLowPtDQM::fillPixels(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), HitInfo::getInfo(), getITPixelLayerNumber(), GlobalMuonRefitter::getRidOfSelectStationHits(), align::TrackerNameSpace::TPB::halfBarrelNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), align::TrackerNameSpace::TPB::ladderNumber(), SiPixelCoordinates::layer(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::TrackerNameSpace::TPB::layerNumber(), TrajectoryManager::makeSinglePSimHit(), HitComparatorByRadius::operator()(), SiPixelCoordinates::outer(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelBarrelName::PixelBarrelName(), print(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

144  {
145  return int((id.rawId()>>pbVals_.layerStartBit_) & pbVals_.layerMask_);
146  }
const 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 478 of file TrackerTopology.h.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, hcalTTPDigis_cfi::id, 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 PixelEndcapName::getDetId(), and pxfDetIdDiskComparator().

482  {
484  uint32_t rawid=id.rawId();
485  rawid |= (side& pfVals_.sideMask_) << pfVals_.sideStartBit_ |
490  return DetId(rawid);
491  }
const PixelEndcapValues pfVals_
unsigned int side(const DetId &id) const
Definition: DetId.h:18
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::pxfDetIdDiskComparator ( uint32_t  side,
uint32_t  disk 
) const
inline

Definition at line 563 of file TrackerTopology.h.

References pxfDetId().

Referenced by ctfseeding::HitExtractorPIX::hits().

563  {
564  return std::make_pair(pxfDetId(side, disk, 1,1,1), SameLayerComparator(this));
565  }
unsigned int side(const DetId &id) const
DetId pxfDetId(uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
unsigned int TrackerTopology::pxfDisk ( const DetId id) const
inline

Definition at line 455 of file TrackerTopology.h.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelRecHitsValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), SiPixelCoordinates::disk(), AlignmentStats::endJob(), SiPixelRecHitsValid::fillForward(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), getITPixelLayerNumber(), GlobalMuonRefitter::getRidOfSelectStationHits(), align::TrackerNameSpace::TPE::halfDiskNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), TrajectoryManager::makeSinglePSimHit(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), print(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

455  {
456  return int((id.rawId()>>pfVals_.diskStartBit_) & pfVals_.diskMask_);
457  }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::pxfModule ( const DetId id) const
inline
unsigned int TrackerTopology::pxfPanel ( const DetId id) const
inline

Definition at line 461 of file TrackerTopology.h.

References createfilelist::int, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, and pfVals_.

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelRecHitsValid::fillForward(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiPixelTrackResidualSource::getepixrococcupancyontrk(), HitInfo::getInfo(), TrackCleaner::isCompatible(), HitComparatorByRadius::operator()(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelCoordinates::panel(), align::TrackerNameSpace::TPE::panelNumber(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), print(), TrackingNtuple::DetIdPixelOnly::push_back(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), TrackerOfflineValidation::setUpTreeMembers(), and ResidualRefitting::StoreTrackerRecHits().

461  {
462  return int((id.rawId()>>pfVals_.panelStartBit_) & pfVals_.panelMask_);
463  }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::pxfSide ( const DetId id) const
inline

Definition at line 196 of file TrackerTopology.h.

References pfVals_, TrackerTopology::PixelEndcapValues::sideMask_, and TrackerTopology::PixelEndcapValues::sideStartBit_.

Referenced by TrackerAlignmentLevelBuilder::addPXEDetUnitInfo(), SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelTrackingRecHitsValid::analyze(), analyzer::SiPixelLorentzAngle::analyze(), TrackingLayer::createFromDetId(), AlignmentTrackSelector::detailedHitsCheck(), align::TrackerNameSpace::TPE::endcapNumber(), TrackerGeometryCompare::fillIdentifiers(), MillePedeMonitor::fillTrack(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), HitInfo::getInfo(), getITPixelLayerNumber(), GeometricSearchTracker::idToLayer(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), Phase2TrackerDigitizerAlgorithm::pixel_inefficiency(), PixelEndcapName::PixelEndcapName(), print(), TrackerOfflineValidation::setUpTreeMembers(), SiPixelCoordinates::side(), side(), and ResidualRefitting::StoreTrackerRecHits().

196  {
197  return ((id.rawId()>>pfVals_.sideStartBit_)&pfVals_.sideMask_);
198  }
const PixelEndcapValues pfVals_
unsigned int TrackerTopology::side ( const DetId id) const

Definition at line 31 of file TrackerTopology.cc.

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

Referenced by FWTGeoRecoGeometryESProducer::addPixelForwardGeometry(), ElectronSeedAnalyzer::analyze(), MTVHistoProducerAlgoForTracker::getSeedingLayerSetBin(), CAHitQuadrupletGenerator::hitNtuplets(), CAHitQuadrupletGenerator::hitQuadruplets(), SiStripDetCabling::layerSearch(), print(), TrackingNtuple::DetIdCommon::push_back(), and reco::modules::TrackerTrackHitFilter::sideFromId().

31  {
32  uint32_t subdet=id.subdetId();
33  if ( subdet == PixelSubdetector::PixelBarrel )
34  return 0;
35  if ( subdet == PixelSubdetector::PixelEndcap )
36  return pxfSide(id);
37  if ( subdet == StripSubdetector::TIB )
38  return 0;
39  if ( subdet == StripSubdetector::TID )
40  return tidSide(id);
41  if ( subdet == StripSubdetector::TOB )
42  return 0;
43  if ( subdet == StripSubdetector::TEC )
44  return tecSide(id);
45 
46  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::side";
47  return 0;
48 }
unsigned int tidSide(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
unsigned int tecSide(const DetId &id) const
uint32_t TrackerTopology::stack ( const DetId id) const

Definition at line 108 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecStack(), StripSubdetector::TIB, tibStack(), StripSubdetector::TID, tidStack(), StripSubdetector::TOB, and tobStack().

Referenced by TrackerGeomBuilderFromGeometricDet::buildGeomDet(), TTStubAssociator< T >::produce(), TTStubBuilder< T >::produce(), TrackingNtuple::DetIdPhase2OTOnly::push_back(), and tobRodInfo().

108  {
109 
110  uint32_t subdet=id.subdetId();
111  if ( subdet == PixelSubdetector::PixelBarrel )
112  return 0;
113  if ( subdet == PixelSubdetector::PixelEndcap )
114  return 0;
115  if ( subdet == StripSubdetector::TIB )
116  return tibStack(id);
117  if ( subdet == StripSubdetector::TID )
118  return tidStack(id);
119  if ( subdet == StripSubdetector::TOB )
120  return tobStack(id);
121  if ( subdet == StripSubdetector::TEC )
122  return tecStack(id);
123 
124  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::stack";
125 }
uint32_t tibStack(const DetId &id) const
uint32_t tobStack(const DetId &id) const
uint32_t tidStack(const DetId &id) const
uint32_t tecStack(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 493 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_.

Referenced by tecDetIdWheelComparator().

495  {
496 
498  uint32_t rawid=id.rawId();
499 
500  rawid |= (side& tecVals_.sideMask_) << tecVals_.sideStartBit_ |
507  return DetId(rawid);
508  }
const TECValues tecVals_
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
std::pair<DetId, SameLayerComparator> TrackerTopology::tecDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 567 of file TrackerTopology.h.

References tecDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), and CosmicLayerPairs::selectTECHit().

567  {
568  return std::make_pair(tecDetId(side, wheel, 1,1,1,1,1), SameLayerComparator(this));
569  }
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 TrackerTopology::tecGlued ( const DetId id) const
inline

Definition at line 348 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TECValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, and tecVals_.

Referenced by glued(), tecIsDoubleSide(), and tecStack().

348  {
349  uint32_t testId = (id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_;
350  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
351  }
const TECValues tecVals_
return(e1-e2)*(e1-e2)+dp *dp
bool TrackerTopology::tecIsBackPetal ( const DetId id) const
inline
bool TrackerTopology::tecIsDoubleSide ( const DetId id) const
inline

Definition at line 262 of file TrackerTopology.h.

References tecGlued(), and tecRing().

Referenced by AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackingNtuple::DetIdStripOnly::parse(), TrackerOfflineValidation::setUpTreeMembers(), tecIsRPhi(), tecIsStereo(), and TrackerDpgAnalysis::toStringName().

262 { return tecGlued(id)==0 && (tecRing(id)==1 || tecRing(id)==2 || tecRing(id)==5);}
unsigned int tecRing(const DetId &id) const
ring id
uint32_t tecGlued(const DetId &id) const
bool TrackerTopology::tecIsFrontPetal ( const DetId id) const
inline

Definition at line 416 of file TrackerTopology.h.

References tecIsBackPetal().

Referenced by SiStripBadModuleConfigurableFakeESSource::selectDetectors(), and TrackerDpgAnalysis::toStringName().

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

Definition at line 284 of file TrackerTopology.h.

References tecIsDoubleSide(), and tecRPhi().

Referenced by TrackingParticleNumberOfLayers::calculate(), and TrackerDpgAnalysis::toStringName().

284 { return tecRPhi(id)!=0 && !tecIsDoubleSide(id);}
bool tecIsDoubleSide(const DetId &id) const
uint32_t tecRPhi(const DetId &id) const
bool TrackerTopology::tecIsStereo ( const DetId id) const
inline
bool TrackerTopology::tecIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tecIsZPlusSide ( const DetId id) const
inline
uint32_t TrackerTopology::tecLower ( const DetId id) const
inline

Definition at line 309 of file TrackerTopology.h.

References tecStereo().

Referenced by isLower(), and lower().

309 { return tecStereo(id); }
uint32_t tecStereo(const DetId &id) const
unsigned int TrackerTopology::tecModule ( const DetId id) const
inline
unsigned int TrackerTopology::tecOrder ( const DetId id) const
inline
uint32_t TrackerTopology::tecPartnerDetId ( const DetId id) const
inline

Definition at line 396 of file TrackerTopology.h.

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

Referenced by partnerDetId().

396  {
397  if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 1 ) {
398  return DetId( id.rawId() + 1 );
399  } else if ( ((id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ ) == 2 ) {
400  return DetId( id.rawId() - 1 );
401  } else { return DetId(); }
402  }
const TECValues tecVals_
Definition: DetId.h:18
std::vector<unsigned int> TrackerTopology::tecPetalInfo ( const DetId id) const
inline

Definition at line 405 of file TrackerTopology.h.

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

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

405  {
406  std::vector<unsigned int> num;
407  num.push_back(tecOrder(id));
408  num.push_back(tecPetalNumber(id));
409  return num ;
410  }
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 226 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTECGeometry(), SiStripDigiValid::analyze(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiStripFolderOrganizer::getFolderName(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripCalibLorentzAngle::getNewObject(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), ctfseeding::HitExtractorSTRP::hits(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), TrackingNtuple::DetIdOTCommon::parse(), PixelMatchNextLayers::PixelMatchNextLayers(), print(), SiStripLorentzAngleFakeESSource::produce(), align::TrackerNameSpace::TEC::ringNumber(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), tecIsDoubleSide(), and TrackerDpgAnalysis::toStringName().

226  {
227  return ((id.rawId()>>tecVals_.ringStartBit_) & tecVals_.ringMask_) ;
228  }
const TECValues tecVals_
uint32_t TrackerTopology::tecRPhi ( const DetId id) const
inline

Definition at line 330 of file TrackerTopology.h.

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

Referenced by isRPhi(), tecIsRPhi(), and tecUpper().

330  {
331  if ( ((id.rawId() >>tecVals_.sterStartBit_ ) & tecVals_.sterMask_ ) == 2 ) {
332  return ( (id.rawId()>>tecVals_.sterStartBit_) & tecVals_.sterMask_ );
333  } else { return 0; }
334  }
const TECValues tecVals_
unsigned int TrackerTopology::tecSide ( const DetId id) const
inline

Definition at line 184 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripGainFromData::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), HitEff::analyze(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TEC::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), 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(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), side(), tecIsZMinusSide(), and LaserDQM::trackerStatistics().

184  {
185  return ((id.rawId()>>tecVals_.sideStartBit_)&tecVals_.sideMask_);
186  }
const TECValues tecVals_
uint32_t TrackerTopology::tecStack ( const DetId id) const
inline

Definition at line 367 of file TrackerTopology.h.

References partnerDetId(), and tecGlued().

Referenced by stack().

367 { return tecGlued(id); }
uint32_t tecGlued(const DetId &id) const
uint32_t TrackerTopology::tecStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tecUpper ( const DetId id) const
inline

Definition at line 340 of file TrackerTopology.h.

References tecRPhi().

Referenced by isUpper(), and upper().

340 { return tecRPhi(id); }
uint32_t tecRPhi(const DetId &id) const
unsigned int TrackerTopology::tecWheel ( const DetId id) const
inline

Definition at line 206 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTECDetUnitInfo(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TEC::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripPlotGain::getHistos(), SiStripCorrelateBadStripAndNoise::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(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

206  {
207  return ((id.rawId()>>tecVals_.wheelStartBit_) & tecVals_.wheelMask_) ;
208  }
const TECValues tecVals_
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 510 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(), and tibDetIdLayerComparator().

515  {
517  uint32_t rawid=id.rawId();
524  return DetId(rawid);
525  }
const TIBValues tibVals_
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
std::pair<DetId, SameLayerComparator> TrackerTopology::tibDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 571 of file TrackerTopology.h.

References tibDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), CosmicLayerTriplets::init(), and CosmicLayerPairs::selectTIBHit().

571  {
572  return std::make_pair(tibDetId(layer, 1,1,1,1,1), SameLayerComparator(this));
573  }
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
unsigned int layer(const DetId &id) const
uint32_t TrackerTopology::tibGlued ( const DetId id) const
inline

Definition at line 343 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIBValues::sterStartBit_, and tibVals_.

Referenced by cms::ClusterMTCCFilter::filter(), SiStripGainCosmicCalculator::getNewObject(), glued(), tibIsDoubleSide(), and tibStack().

343  {
344  uint32_t testId = (id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_;
345  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
346  }
const TIBValues tibVals_
return(e1-e2)*(e1-e2)+dp *dp
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 150 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTIBDetUnitInfo(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiStripElectronAnalyzer::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFakeAPVParameters::getIndex(), 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::TrackerNameSpace::TIB::halfShellNumber(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::TrackerNameSpace::TIB::layerNumber(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripLorentzAngleFakeESSource::produce(), SiStripElectronAlgo::projectPhiBand(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), align::TrackerNameSpace::TIB::stringNumber(), tibIsDoubleSide(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

150  {
151  return int((id.rawId()>>tibVals_.layerStartBit_) & tibVals_.layerMask_);
152  }
const TIBValues tibVals_
uint32_t TrackerTopology::tibLower ( const DetId id) const
inline

Definition at line 306 of file TrackerTopology.h.

References tibStereo().

Referenced by isLower(), and lower().

306 { return tibStereo(id); }
uint32_t tibStereo(const DetId &id) const
unsigned int TrackerTopology::tibModule ( const DetId id) const
inline
unsigned int TrackerTopology::tibOrder ( const DetId id) const
inline
DetId TrackerTopology::tibPartnerDetId ( const DetId id) const
inline

Definition at line 372 of file TrackerTopology.h.

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

Referenced by partnerDetId().

372  {
373  if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 1 ) {
374  return DetId( id.rawId() + 1 );
375  } else if ( ((id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ ) == 2 ) {
376  return DetId( id.rawId() - 1 );
377  } else { return DetId(); }
378  }
const TIBValues tibVals_
Definition: DetId.h:18
uint32_t TrackerTopology::tibRPhi ( const DetId id) const
inline

Definition at line 318 of file TrackerTopology.h.

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

Referenced by isRPhi(), tibIsRPhi(), and tibUpper().

318  {
319  if ( ((id.rawId() >>tibVals_.sterStartBit_ ) & tibVals_.sterMask_ ) == 2 ) {
320  return ( (id.rawId()>>tibVals_.sterStartBit_) & tibVals_.sterMask_ );
321  } else { return 0; }
322  }
const TIBValues tibVals_
unsigned int TrackerTopology::tibSide ( const DetId id) const
inline
uint32_t TrackerTopology::tibStack ( const DetId id) const
inline

Definition at line 364 of file TrackerTopology.h.

References tibGlued().

Referenced by stack().

364 { return tibGlued(id); }
uint32_t tibGlued(const DetId &id) const
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
uint32_t TrackerTopology::tibUpper ( const DetId id) const
inline

Definition at line 337 of file TrackerTopology.h.

References tibRPhi().

Referenced by isUpper(), and upper().

337 { return tibRPhi(id); }
uint32_t tibRPhi(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 527 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(), and tidDetIdWheelComparator().

532  {
534  uint32_t rawid=id.rawId();
535  rawid |= (side& tidVals_.sideMask_) << tidVals_.sideStartBit_ |
541  return DetId(rawid);
542  }
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_
const TIDValues tidVals_
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::tidDetIdWheelComparator ( uint32_t  side,
uint32_t  wheel 
) const
inline

Definition at line 575 of file TrackerTopology.h.

References tidDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits().

575  {
576  return std::make_pair(tidDetId(side, wheel, 1,1,1,1), SameLayerComparator(this));
577  }
unsigned int side(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 TrackerTopology::tidGlued ( const DetId id) const
inline

Definition at line 358 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TIDValues::sterMask_, TrackerTopology::TIDValues::sterStartBit_, and tidVals_.

Referenced by glued(), tidIsDoubleSide(), and tidStack().

358  {
359  uint32_t testId = (id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_;
360  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
361  }
return(e1-e2)*(e1-e2)+dp *dp
const TIDValues tidVals_
bool TrackerTopology::tidIsBackRing ( const DetId id) const
inline
bool TrackerTopology::tidIsDoubleSide ( const DetId id) const
inline

Definition at line 264 of file TrackerTopology.h.

References tidGlued(), and tidRing().

Referenced by AlignmentStats::endJob(), TrackerOfflineValidationSummary::fillTree(), TrackingNtuple::DetIdStripOnly::parse(), TrackerOfflineValidation::setUpTreeMembers(), tidIsRPhi(), tidIsStereo(), and TrackerDpgAnalysis::toStringName().

264 { return tidGlued(id)==0 && (tidRing(id)==1 || tidRing(id)==2);}
unsigned int tidRing(const DetId &id) const
uint32_t tidGlued(const DetId &id) const
bool TrackerTopology::tidIsFrontRing ( const DetId id) const
inline

Definition at line 451 of file TrackerTopology.h.

References tidIsBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

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

Definition at line 286 of file TrackerTopology.h.

References tidIsDoubleSide(), and tidRPhi().

Referenced by TrackingParticleNumberOfLayers::calculate(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), and TrackerDpgAnalysis::toStringName().

286 { return tidRPhi(id)!=0 && !tidIsDoubleSide(id);}
uint32_t tidRPhi(const DetId &id) const
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
uint32_t TrackerTopology::tidLower ( const DetId id) const
inline

Definition at line 307 of file TrackerTopology.h.

References tidStereo().

Referenced by isLower(), and lower().

307 { return tidStereo(id); }
uint32_t tidStereo(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 440 of file TrackerTopology.h.

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

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

440  {
441  std::vector<unsigned int> num;
442  num.push_back( tidOrder(id) );
443  num.push_back( tidModule(id) );
444  return num ;
445  }
unsigned int tidModule(const DetId &id) const
unsigned int tidOrder(const DetId &id) const
unsigned int TrackerTopology::tidOrder ( const DetId id) const
inline
DetId TrackerTopology::tidPartnerDetId ( const DetId id) const
inline

Definition at line 388 of file TrackerTopology.h.

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

Referenced by partnerDetId().

388  {
389  if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 1 ) {
390  return DetId( id.rawId() + 1 );
391  } else if ( ((id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ ) == 2 ) {
392  return DetId( id.rawId() - 1 );
393  } else { return DetId(); }
394  }
Definition: DetId.h:18
const TIDValues tidVals_
unsigned int TrackerTopology::tidRing ( const DetId id) const
inline

Definition at line 229 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripDigiValid::analyze(), OuterTrackerMonitorTTCluster::analyze(), OuterTrackerMonitorTTStub::analyze(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), SiStripFolderOrganizer::getFolderName(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndRing(), SiStripHistoId::getSubdetid(), ctfseeding::HitExtractorSTRP::hits(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), TrackingNtuple::DetIdOTCommon::parse(), PixelMatchNextLayers::PixelMatchNextLayers(), print(), align::TrackerNameSpace::TID::ringNumber(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), tidIsDoubleSide(), and TrackerDpgAnalysis::toStringName().

229  {
230  return ((id.rawId()>>tidVals_.ringStartBit_) & tidVals_.ringMask_) ;
231  }
const TIDValues tidVals_
uint32_t TrackerTopology::tidRPhi ( const DetId id) const
inline

Definition at line 324 of file TrackerTopology.h.

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

Referenced by isRPhi(), tidIsRPhi(), and tidUpper().

324  {
325  if ( ((id.rawId() >>tidVals_.sterStartBit_ ) & tidVals_.sterMask_ ) == 2 ) {
326  return ( (id.rawId()>>tidVals_.sterStartBit_) & tidVals_.sterMask_ );
327  } else { return 0; }
328  }
const TIDValues tidVals_
unsigned int TrackerTopology::tidSide ( const DetId id) const
inline

Definition at line 192 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TID::endcapNumber(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), getOTLayerNumber(), 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(), SiStripTrackerMapCreator::printTopModules(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), side(), ResidualRefitting::StoreTrackerRecHits(), and tidIsZMinusSide().

192  {
193  return ((id.rawId()>>tidVals_.sideStartBit_)&tidVals_.sideMask_);
194  }
const TIDValues tidVals_
uint32_t TrackerTopology::tidStack ( const DetId id) const
inline

Definition at line 365 of file TrackerTopology.h.

References tidGlued().

Referenced by stack().

365 { return tidGlued(id); }
uint32_t tidGlued(const DetId &id) const
uint32_t TrackerTopology::tidStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tidUpper ( const DetId id) const
inline

Definition at line 338 of file TrackerTopology.h.

References tidRPhi().

Referenced by isUpper(), and upper().

338 { return tidRPhi(id); }
uint32_t tidRPhi(const DetId &id) const
unsigned int TrackerTopology::tidWheel ( const DetId id) const
inline

Definition at line 209 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTIDDetUnitInfo(), FWTGeoRecoGeometryESProducer::addTIDGeometry(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::TrackerNameSpace::TID::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), getOTLayerNumber(), 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(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), TrackerDpgAnalysis::toStringName(), and TrackerAlignableId::typeAndLayerFromDetId().

209  {
210  return ((id.rawId()>>tidVals_.wheelStartBit_) & tidVals_.wheelMask_) ;
211  }
const TIDValues tidVals_
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 544 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.

Referenced by tobDetIdLayerComparator().

548  {
550  uint32_t rawid=id.rawId();
556  return DetId(rawid);
557  }
Detector identifier class for the strip tracker.
Definition: SiStripDetId.h:17
const TOBValues tobVals_
Definition: DetId.h:18
unsigned int layer(const DetId &id) const
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> TrackerTopology::tobDetIdLayerComparator ( uint32_t  layer) const
inline

Definition at line 579 of file TrackerTopology.h.

References getITPixelLayerNumber(), getOTLayerNumber(), moduleGeometry(), print(), AlCaHLTBitMon_QueryRunRegistry::string, and tobDetId().

Referenced by ctfseeding::HitExtractorSTRP::hits(), CosmicLayerTriplets::init(), and CosmicLayerPairs::selectTOBHit().

579  {
580  return std::make_pair(tobDetId(layer, 1,1,1,1), SameLayerComparator(this));
581  }
DetId tobDetId(uint32_t layer, uint32_t rod_fw_bw, uint32_t rod, uint32_t module, uint32_t ster) const
unsigned int layer(const DetId &id) const
uint32_t TrackerTopology::tobGlued ( const DetId id) const
inline

Definition at line 353 of file TrackerTopology.h.

References reco::return(), TrackerTopology::TOBValues::sterMask_, TrackerTopology::TOBValues::sterStartBit_, and tobVals_.

Referenced by glued(), tobIsDoubleSide(), and tobStack().

353  {
354  uint32_t testId = (id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_;
355  return ( testId == 0 ) ? 0 : (id.rawId() - testId);
356  }
const TOBValues tobVals_
return(e1-e2)*(e1-e2)+dp *dp
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 147 of file TrackerTopology.h.

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

Referenced by TrackerAlignmentLevelBuilder::addTOBDetUnitInfo(), SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiStripElectronAnalyzer::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), TrackingLayer::createFromDetId(), SiStripBadComponentsDQMServiceReader::detIdToString(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), SiStripBackPlaneCorrectionDQM::fillMEsForLayer(), SiStripLorentzAngleDQM::fillMEsForLayer(), TrackerOfflineValidationSummary::fillTree(), GlobalDigisProducer::fillTrk(), GlobalDigisAnalyzer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), cms::ClusterMTCCFilter::filter(), MonitorTrackResidualsBase< pixel_or_strip >::findSubdetAndLayer(), SiStripCablingDQM::getActiveDetIds(), SiStripFolderOrganizer::getFolderName(), SiStripCorrelateBadStripAndNoise::getHistos(), SiStripPlotGain::getHistos(), SiStripCorrelateNoise::getHistos(), SiStripFakeAPVParameters::getIndex(), SiStripLAProfileBooker::getlayer(), SiStripFolderOrganizer::getLayerFolderName(), SiStripBaseCondObjDQM::getLayerNameAndId(), SiStripGainCosmicCalculator::getNewObject(), SiStripCalibLorentzAngle::getNewObject(), getOTLayerNumber(), GlobalMuonRefitter::getRidOfSelectStationHits(), SiStripBaseCondObjDQM::GetSameLayerDetId(), PrintRecoObjects::getString(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripFolderOrganizer::GetSubDetAndLayerThickness(), SiStripHistoId::getSubdetid(), GeometricSearchTracker::idToLayer(), TrajectoryAtInvalidHit::isDoubleSided(), HitEff::isDoubleSided(), layer(), TkAlCaOverlapTagger::layerFromId(), AlignmentPrescaler::layerFromId(), align::TrackerNameSpace::TOB::layerNumber(), TrajectoryManager::makeSinglePSimHit(), moduleGeometry(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripLorentzAngleFakeESSource::produce(), SiStripElectronAlgo::projectPhiBand(), SiStripBadModuleConfigurableFakeESSource::selectDetectors(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerOfflineValidation::setUpTreeMembers(), ResidualRefitting::StoreTrackerRecHits(), tobIsDoubleSide(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

147  {
148  return int((id.rawId()>>tobVals_.layerStartBit_) & tobVals_.layerMask_);
149  }
const TOBValues tobVals_
uint32_t TrackerTopology::tobLower ( const DetId id) const
inline

Definition at line 308 of file TrackerTopology.h.

References tobStereo().

Referenced by isLower(), and lower().

308 { return tobStereo(id); }
uint32_t tobStereo(const DetId &id) const
unsigned int TrackerTopology::tobModule ( const DetId id) const
inline
DetId TrackerTopology::tobPartnerDetId ( const DetId id) const
inline

Definition at line 380 of file TrackerTopology.h.

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

Referenced by partnerDetId().

380  {
381  if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 1 ) {
382  return DetId( id.rawId() + 1 );
383  } else if ( ((id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ ) == 2 ) {
384  return DetId( id.rawId() - 1 );
385  } else { return DetId(); }
386  }
const TOBValues tobVals_
Definition: DetId.h:18
unsigned int TrackerTopology::tobRod ( const DetId id) const
inline
std::vector<unsigned int> TrackerTopology::tobRodInfo ( const DetId id) const
inline
uint32_t TrackerTopology::tobRPhi ( const DetId id) const
inline

Definition at line 312 of file TrackerTopology.h.

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

Referenced by isRPhi(), tobIsRPhi(), and tobUpper().

312  {
313  if ( ((id.rawId() >>tobVals_.sterStartBit_ ) & tobVals_.sterMask_ ) == 2 ) {
314  return ( (id.rawId()>>tobVals_.sterStartBit_) & tobVals_.sterMask_ );
315  } else { return 0; }
316  }
const TOBValues tobVals_
unsigned int TrackerTopology::tobSide ( const DetId id) const
inline
uint32_t TrackerTopology::tobStack ( const DetId id) const
inline

Definition at line 366 of file TrackerTopology.h.

References tobGlued().

Referenced by stack().

366 { return tobGlued(id); }
uint32_t tobGlued(const DetId &id) const
uint32_t TrackerTopology::tobStereo ( const DetId id) const
inline
uint32_t TrackerTopology::tobUpper ( const DetId id) const
inline

Definition at line 339 of file TrackerTopology.h.

References tobRPhi().

Referenced by isUpper(), and upper().

339 { return tobRPhi(id); }
uint32_t tobRPhi(const DetId &id) const
uint32_t TrackerTopology::upper ( const DetId id) const

Definition at line 146 of file TrackerTopology.cc.

References Exception, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, StripSubdetector::TEC, tecUpper(), StripSubdetector::TIB, tibUpper(), StripSubdetector::TID, tidUpper(), StripSubdetector::TOB, and tobUpper().

Referenced by tobRodInfo().

146  {
147 
148  uint32_t subdet=id.subdetId();
149  if ( subdet == PixelSubdetector::PixelBarrel )
150  return 0;
151  if ( subdet == PixelSubdetector::PixelEndcap )
152  return 0;
153  if ( subdet == StripSubdetector::TIB )
154  return tibUpper(id);
155  if ( subdet == StripSubdetector::TID )
156  return tidUpper(id);
157  if ( subdet == StripSubdetector::TOB )
158  return tobUpper(id);
159  if ( subdet == StripSubdetector::TEC )
160  return tecUpper(id);
161 
162  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::upper";
163 }
uint32_t tecUpper(const DetId &id) const
uint32_t tibUpper(const DetId &id) const
uint32_t tobUpper(const DetId &id) const
uint32_t tidUpper(const DetId &id) const

Member Data Documentation

const BitmaskAndSubdet TrackerTopology::bits_per_field[DETID_FIELDS_MAX]
private

Definition at line 619 of file TrackerTopology.h.

Referenced by getField(), and hasField().

const PixelBarrelValues TrackerTopology::pbVals_
private

Definition at line 606 of file TrackerTopology.h.

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

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