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
 
std::string print (DetId detid) const
 
DetId pxbDetId (uint32_t layer, uint32_t ladder, uint32_t module) const
 
unsigned int pxbLadder (const DetId &id) const
 
unsigned int pxbLayer (const DetId &id) const
 
unsigned int pxbModule (const DetId &id) const
 
unsigned int pxfBlade (const DetId &id) const
 
DetId pxfDetId (uint32_t side, uint32_t disk, uint32_t blade, uint32_t panel, uint32_t module) const
 
unsigned int pxfDisk (const DetId &id) const
 
unsigned int pxfModule (const DetId &id) const
 
unsigned int pxfPanel (const DetId &id) const
 
unsigned int pxfSide (const DetId &id) const
 
DetId tecDetId (uint32_t side, uint32_t wheel, uint32_t petal_fw_bw, uint32_t petal, uint32_t ring, uint32_t module, uint32_t ster) const
 
uint32_t tecGlued (const DetId &id) const
 
bool tecIsBackPetal (const DetId &id) const
 
bool tecIsDoubleSide (const DetId &id) const
 
bool tecIsFrontPetal (const DetId &id) const
 
bool tecIsRPhi (const DetId &id) const
 
bool tecIsStereo (const DetId &id) const
 
bool tecIsZMinusSide (const DetId &id) const
 
bool tecIsZPlusSide (const DetId &id) const
 
unsigned int tecModule (const DetId &id) const
 
unsigned int tecOrder (const DetId &id) const
 
std::vector< unsigned int > tecPetalInfo (const DetId &id) const
 
unsigned int tecPetalNumber (const DetId &id) const
 
unsigned int tecRing (const DetId &id) const
 ring id 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 20 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 getDetLayer(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and CkfDebugger::layer().

20  {
21  uint32_t subdet=id.subdetId();
22  if ( subdet == PixelSubdetector::PixelBarrel )
23  return pxbLayer(id);
24  if ( subdet == PixelSubdetector::PixelEndcap )
25  return pxfDisk(id);
26  if ( subdet == StripSubdetector::TIB )
27  return tibLayer(id);
28  if ( subdet == StripSubdetector::TID )
29  return tidWheel(id);
30  if ( subdet == StripSubdetector::TOB )
31  return tobLayer(id);
32  if ( subdet == StripSubdetector::TEC )
33  return tecWheel(id);
34 
35  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::layer";
36  return 0;
37 }
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 39 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().

39  {
40  uint32_t subdet=id.subdetId();
41  if ( subdet == PixelSubdetector::PixelBarrel )
42  return pxbModule(id);
43  if ( subdet == PixelSubdetector::PixelEndcap )
44  return pxfModule(id);
45  if ( subdet == StripSubdetector::TIB )
46  return tibModule(id);
47  if ( subdet == StripSubdetector::TID )
48  return tidModule(id);
49  if ( subdet == StripSubdetector::TOB )
50  return tobModule(id);
51  if ( subdet == StripSubdetector::TEC )
52  return tecModule(id);
53 
54  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
55  return 0;
56 }
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
std::string TrackerTopology::print ( DetId  detid) const

Definition at line 58 of file TrackerTopology.cc.

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

Referenced by MuonAssociatorByHits::getMatchedIds().

58  {
59  uint32_t subdet=id.subdetId();
60  std::stringstream strstr;
61 
62  if ( subdet == PixelSubdetector::PixelBarrel ) {
63  strstr << "(PixelBarrel "
64  << pxbLayer(id) << ','
65  << pxbLadder(id) << ','
66  << pxbModule(id) << ')';
67  return strstr.str();
68  }
69 
70  if ( subdet == PixelSubdetector::PixelEndcap ) {
71  strstr << "(PixelEndcap "
72  << pxfDisk(id) << ','
73  << pxfBlade(id) << ','
74  << pxfPanel(id) << ','
75  << pxfModule(id) << ')';
76  return strstr.str();
77  }
78 
79  if ( subdet == StripSubdetector::TIB ) {
80  unsigned int theLayer = tibLayer(id);
81  std::vector<unsigned int> theString = tibStringInfo(id);
82  unsigned int theModule = tibModule(id);
83  std::string side;
85  side = (theString[0] == 1 ) ? "-" : "+";
86  part = (theString[1] == 1 ) ? "int" : "ext";
88  type = (tibStereo(id) == 0) ? "r-phi" : "stereo";
89  type = (tibGlued(id) == 0) ? type : type+" glued";
90  type = (tibIsDoubleSide(id)) ? "double side" : type;
91  strstr << "TIB" << side
92  << " Layer " << theLayer << " " << part
93  << " String " << theString[2]
94  << " Module " << theModule << " " << type
95  << " (" << id.rawId() << ")";
96  return strstr.str();
97  }
98 
99  if ( subdet == StripSubdetector::TID ) {
100  unsigned int theDisk = tidWheel(id);
101  unsigned int theRing = tidRing(id);
102  std::vector<unsigned int> theModule = tidModuleInfo(id);
103  std::string side;
105  side = (tidSide(id) == 1 ) ? "-" : "+";
106  part = (theModule[0] == 1 ) ? "back" : "front";
108  type = (tidStereo(id) == 0) ? "r-phi" : "stereo";
109  type = (tidGlued(id) == 0) ? type : type+" glued";
110  type = (tidIsDoubleSide(id)) ? "double side" : type;
111  strstr << "TID" << side
112  << " Disk " << theDisk
113  << " Ring " << theRing << " " << part
114  << " Module " << theModule[1] << " " << type
115  << " (" << id.rawId() << ")";
116  return strstr.str();
117  }
118 
119  if ( subdet == StripSubdetector::TOB ) {
120  unsigned int theLayer = tobLayer(id);
121  std::vector<unsigned int> theRod = tobRodInfo(id);
122  unsigned int theModule = tobModule(id);
123  std::string side;
125  side = (theRod[0] == 1 ) ? "-" : "+";
127  type = (tobStereo(id) == 0) ? "r-phi" : "stereo";
128  type = (tobGlued(id) == 0) ? type : type+" glued";
129  type = (tobIsDoubleSide(id)) ? "double side" : type;
130  strstr << "TOB" << side
131  << " Layer " << theLayer
132  << " Rod " << theRod[1]
133  << " Module " << theModule << " " << type
134  << " (" << id.rawId() << ")";
135  return strstr.str();
136  }
137 
138  if ( subdet == StripSubdetector::TEC ) {
139  unsigned int theWheel = tecWheel(id);
140  unsigned int theModule = tecModule(id);
141  std::vector<unsigned int> thePetal = tecPetalInfo(id);
142  unsigned int theRing = tecRing(id);
143  std::string side;
144  std::string petal;
145  side = (tecSide(id) == 1 ) ? "-" : "+";
146  petal = (thePetal[0] == 1 ) ? "back" : "front";
148  type = (tecStereo(id) == 0) ? "r-phi" : "stereo";
149  type = (tecGlued(id) == 0) ? type : type+" glued";
150  type = (tecIsDoubleSide(id)) ? "double side" : type;
151  strstr << "TEC" << side
152  << " Wheel " << theWheel
153  << " Petal " << thePetal[1] << " " << petal
154  << " Ring " << theRing
155  << " Module " << theModule << " " << type
156  << " (" << id.rawId() << ")";
157 
158  return strstr.str();
159  }
160 
161 
162  throw cms::Exception("Invalid DetId") << "Unsupported DetId in TrackerTopology::module";
163  return strstr.str();
164 }
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
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 370 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().

372  {
373  //uply
375  uint32_t rawid=id.rawId();
379  return DetId(rawid);
380  }
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 115 of file TrackerTopology.h.

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

Referenced by SiPixelDigiValid::analyze(), SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), SiPixelMuonHLT::analyze(), SiPixelLorentzAngle::analyze(), SiPixelDigitizerAlgorithm::digitize(), 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(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), align::tpb::ladderNumber(), reco::modules::TrackerTrackHitFilter::Rule::layer(), layer(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), align::tpb::layerNumber(), SiPixelDigitizerAlgorithm::make_digis(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), print(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

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

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

Definition at line 359 of file TrackerTopology.h.

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

Referenced by SiPixelDigiValid::analyze(), SiPixelErrorEstimation::analyze(), SiPixelLorentzAngle::analyze(), SiPixelMuonHLT::analyze(), 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(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), TrackCleaner::isCompatible(), SeedMergerPixelLayer::isContainsDetector(), reco::modules::TrackerTrackHitFilter::Rule::layer(), layer(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), TrajectoryManager::makeSinglePSimHit(), AlignmentParameterSelector::outsideDetIdRanges(), SiPixelDigitizerAlgorithm::pixel_inefficiency(), print(), ResidualRefitting::StoreTrackerRecHits(), and TrackerAlignableId::typeAndLayerFromDetId().

359  {
360  return int((id.rawId()>>pfVals_.diskStartBit_) & pfVals_.diskMask_);
361  }
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
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 397 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_.

399  {
400 
402  uint32_t rawid=id.rawId();
403 
404  rawid |= (side& tecVals_.sideMask_) << tecVals_.sideStartBit_ |
411  return DetId(rawid);
412  }
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 278 of file TrackerTopology.h.

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

Referenced by print().

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

Definition at line 223 of file TrackerTopology.h.

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

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

223 { 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 320 of file TrackerTopology.h.

References tecIsBackPetal().

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

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

Definition at line 303 of file TrackerTopology.h.

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

Referenced by TrackerDpgAnalysis::toStringName().

303 { 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 236 of file TrackerTopology.h.

References tecIsZMinusSide().

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

236 {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 309 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().

309  {
310  std::vector<unsigned int> num;
311  num.push_back(tecOrder(id));
312  num.push_back(tecPetalNumber(id));
313  return num ;
314  }
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 199 of file TrackerTopology.h.

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

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

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

Definition at line 157 of file TrackerTopology.h.

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

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

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

Definition at line 179 of file TrackerTopology.h.

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

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tec::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), 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(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), HLTTrackerHaloFilter::hltFilter(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), reco::modules::TrackerTrackHitFilter::Rule::layer(), layer(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), PixelMatchNextLayers::PixelMatchNextLayers(), print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

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

419  {
421  uint32_t rawid=id.rawId();
428  return DetId(rawid);
429  }
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 270 of file TrackerTopology.h.

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

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

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

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

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

304 { 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

Definition at line 242 of file TrackerTopology.h.

References tibIsDoubleSide(), and tibStereo().

Referenced by SiPixelErrorEstimation::analyze(), AlignmentStats::endJob(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), and ShallowClustersProducer::moduleVars::moduleVars().

242 {return tibStereo(id)!=0 && !tibIsDoubleSide(id);}
bool tibIsDoubleSide(const DetId &id) const
uint32_t tibStereo(const DetId &id) const
bool TrackerTopology::tibIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tibIsZPlusSide ( const DetId id) const
inline

Definition at line 230 of file TrackerTopology.h.

References tibIsZMinusSide().

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

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

Definition at line 121 of file TrackerTopology.h.

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

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), 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(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), align::tib::halfShellNumber(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), HitEff::isDoubleSided(), TrajectoryAtInvalidHit::isDoubleSided(), reco::modules::TrackerTrackHitFilter::Rule::layer(), layer(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), align::tib::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripElectronAlgo::projectPhiBand(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), align::tib::stringNumber(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), tibIsDoubleSide(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

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

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

436  {
438  uint32_t rawid=id.rawId();
439  rawid |= (side& tidVals_.sideMask_) << tidVals_.sideStartBit_ |
445  return DetId(rawid);
446  }
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 294 of file TrackerTopology.h.

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

Referenced by print().

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

Definition at line 225 of file TrackerTopology.h.

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

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

225 { 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 355 of file TrackerTopology.h.

References tidIsBackRing().

Referenced by TrackerDpgAnalysis::toStringName().

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

Definition at line 305 of file TrackerTopology.h.

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

Referenced by TrackerDpgAnalysis::toStringName().

305 { 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

Definition at line 243 of file TrackerTopology.h.

References tidIsDoubleSide(), and tidStereo().

Referenced by AlignmentStats::endJob(), SiStripFolderOrganizer::getFolderName(), and ShallowClustersProducer::moduleVars::moduleVars().

243 {return tidStereo(id)!=0 && !tidIsDoubleSide(id);}
uint32_t tidStereo(const DetId &id) const
bool tidIsDoubleSide(const DetId &id) const
bool TrackerTopology::tidIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tidIsZPlusSide ( const DetId id) const
inline

Definition at line 233 of file TrackerTopology.h.

References tidIsZMinusSide().

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

233 {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 344 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().

344  {
345  std::vector<unsigned int> num;
346  num.push_back( tidOrder(id) );
347  num.push_back( tidModule(id) );
348  return num ;
349  }
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 202 of file TrackerTopology.h.

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

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

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

Definition at line 165 of file TrackerTopology.h.

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

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), 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(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripUtility::getSubDetectorTag(), SiStripFolderOrganizer::getSubDetFolderAndTag(), SiStripHistoId::getSubdetid(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripTrackerMapCreator::printBadModuleList(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), and tidIsZMinusSide().

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

Definition at line 182 of file TrackerTopology.h.

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

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), SiStripBadComponentsDQMServiceReader::detIdToString(), align::tid::diskNumber(), AlignmentStats::endJob(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::extractBadAPVSandStrips(), SiStripHotStripAlgorithmFromClusterOccupancy::extractBadStrips(), SiStripQualityDQM::fillGrandSummaryMEs(), TrackerGeometryCompare::fillIdentifiers(), 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(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), reco::modules::TrackerTrackHitFilter::Rule::layer(), layer(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), TrackerDpgAnalysis::toStringName(), and TrackerAlignableId::typeAndLayerFromDetId().

182  {
183  return ((id.rawId()>>tidVals_.wheelStartBit_) & tidVals_.wheelMask_) ;
184  }
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 448 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.

452  {
454  uint32_t rawid=id.rawId();
460  return DetId(rawid);
461  }
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 286 of file TrackerTopology.h.

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

Referenced by print().

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

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

222 { 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 302 of file TrackerTopology.h.

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

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

302 { 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

Definition at line 240 of file TrackerTopology.h.

References tobIsDoubleSide(), and tobStereo().

Referenced by SiPixelErrorEstimation::analyze(), AlignmentStats::endJob(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), and ShallowClustersProducer::moduleVars::moduleVars().

240 {return tobStereo(id)!=0 && !tobIsDoubleSide(id);}
bool tobIsDoubleSide(const DetId &id) const
uint32_t tobStereo(const DetId &id) const
bool TrackerTopology::tobIsZMinusSide ( const DetId id) const
inline
bool TrackerTopology::tobIsZPlusSide ( const DetId id) const
inline

Definition at line 227 of file TrackerTopology.h.

References tobIsZMinusSide().

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

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

Definition at line 118 of file TrackerTopology.h.

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

Referenced by SiStripHitEffFromCalibTree::algoAnalyze(), SiStripCalibLorentzAngle::algoBeginJob(), SiStripDigiValid::analyze(), SiStripQualityStatistics::analyze(), SiStripLAProfileBooker::analyze(), SiPixelErrorEstimation::analyze(), SiStripBaseCondObjDQM::bookSummaryProfileMEs(), HitEff::checkLayer(), SiStripElectronAlgo::coarseHitSelection(), 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(), SiStripBaseCondObjDQM::getStringNameAndId(), SiStripFolderOrganizer::GetSubDetAndLayer(), SiStripHistoId::getSubdetid(), TrackerRecHit::init(), CheckHitPattern::interpretDetId(), HitEff::isDoubleSided(), TrajectoryAtInvalidHit::isDoubleSided(), reco::modules::TrackerTrackHitFilter::Rule::layer(), layer(), AlignmentPrescaler::layerFromId(), TkAlCaOverlapTagger::layerFromId(), reco::modules::TrackerTrackHitFilter::layerFromId(), align::tob::layerNumber(), TrajectoryManager::makeSinglePSimHit(), ShallowClustersProducer::moduleVars::moduleVars(), AlignmentParameterSelector::outsideDetIdRanges(), print(), SiStripElectronAlgo::projectPhiBand(), SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy::setBasicTreeParameters(), SiStripFolderOrganizer::setLayerFolder(), ResidualRefitting::StoreTrackerRecHits(), SiStripNoiseNormalizedWithApvGainBuilder::subDetAndLayer(), SiStripApvGainBuilderFromTag::subDetAndLayer(), tobIsDoubleSide(), TrackerDpgAnalysis::toStringName(), LaserDQM::trackerStatistics(), and TrackerAlignableId::typeAndLayerFromDetId().

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

215  {
216  std::vector<unsigned int> num;
217  num.push_back( tobSide(id) );
218  num.push_back( tobRod(id) );
219  return num ;
220  }
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 467 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