test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
align::tib Namespace Reference

Functions

unsigned int barrelNumber (align::ID, const TrackerTopology *)
 Barrel number is 1 for all align::ID's which belong to this barrel. More...
 
unsigned int halfBarrelNumber (align::ID, const TrackerTopology *)
 Half barrel number is 1 at -z side and 2 at +z side. More...
 
unsigned int halfShellNumber (align::ID, const TrackerTopology *)
 Half shell number is 1 for bottom (-y) and 2 for top (+y). More...
 
unsigned int layerNumber (align::ID, const TrackerTopology *)
 Layer number increases with rho from 1 to 8. More...
 
unsigned int moduleNumber (align::ID, const TrackerTopology *)
 Module number increases with |z| from 1 to 3. More...
 
unsigned int stringNumber (align::ID, const TrackerTopology *)
 
unsigned int surfaceNumber (align::ID, const TrackerTopology *)
 Surface number is 1 for inner and 2 for outer. More...
 

Variables

std::vector< unsigned int > sphs
 Number of strings for each surface of a half shell. More...
 

Function Documentation

unsigned int align::tib::barrelNumber ( align::ID  ,
const TrackerTopology  
)
inline

Barrel number is 1 for all align::ID's which belong to this barrel.

Definition at line 102 of file TIBNameSpace.h.

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

103 {
104  return 1;
105 }
unsigned int align::tib::halfBarrelNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Half barrel number is 1 at -z side and 2 at +z side.

Definition at line 97 of file TIBNameSpace.h.

References TrackerTopology::tibStringInfo().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

98 {
99  return tTopo->tibStringInfo(id)[0];
100 }
std::vector< unsigned int > tibStringInfo(const DetId &id) const
unsigned int align::tib::halfShellNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Half shell number is 1 for bottom (-y) and 2 for top (+y).

Definition at line 79 of file TIBNameSpace.h.

References cmsLHEtoEOSManager::l, alignCSCRings::s, sphs, TrackerTopology::tibLayer(), and TrackerTopology::tibStringInfo().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

80 {
81 
82 
83  std::vector<unsigned int> s = tTopo->tibStringInfo(id);
84  // s[1]: surface lower = 1, upper = 2
85  // s[2]: string no. increases with phi
86 
87  unsigned int l = 2 * (tTopo->tibLayer(id) - 1) + s[1] - 1;
88 
89  return s[2] > sphs[l] ? 1 : 2;
90 }
unsigned int tibLayer(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
std::vector< unsigned int > sphs
Number of strings for each surface of a half shell.
Definition: TIBNameSpace.h:27
unsigned int align::tib::layerNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Layer number increases with rho from 1 to 8.

Definition at line 92 of file TIBNameSpace.h.

References TrackerTopology::tibLayer().

Referenced by ME0GeometryBuilderFromDDD::buildGeometry(), TkHistoMap::getMap(), TrackerAlignableIndexer::TrackerAlignableIndexer(), and TrackerAlignableId::typeAndLayerFromDetId().

93 {
94  return tTopo->tibLayer(id);
95 }
unsigned int tibLayer(const DetId &id) const
unsigned int align::tib::moduleNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Module number increases with |z| from 1 to 3.

Definition at line 53 of file TIBNameSpace.h.

References TrackerTopology::tibModule().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

54 {
55  return tTopo->tibModule(id);
56 }
unsigned int tibModule(const DetId &id) const
unsigned int align::tib::stringNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

String number increases with |phi| from right (1) to left (sphs) of each half shell.

Definition at line 58 of file TIBNameSpace.h.

References cmsLHEtoEOSManager::l, alignCSCRings::s, sphs, TrackerTopology::tibLayer(), and TrackerTopology::tibStringInfo().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

59 {
60 
61 
62  std::vector<unsigned int> s = tTopo->tibStringInfo(id);
63  // s[1]: surface lower = 1, upper = 2
64  // s[2]: string no. increases with phi
65 
66  unsigned int l = 2 * (tTopo->tibLayer(id) - 1) + s[1] - 1;
67 
68 // String on +y surface: number = s (1 to sphs)
69 // String in -y surface: number = 2 * sphs + 1 - s (1 to sphs)
70 
71  return s[2] > sphs[l] ? 2 * sphs[l] + 1 - s[2] : s[2];
72 }
unsigned int tibLayer(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
std::vector< unsigned int > sphs
Number of strings for each surface of a half shell.
Definition: TIBNameSpace.h:27
unsigned int align::tib::surfaceNumber ( align::ID  id,
const TrackerTopology tTopo 
)
inline

Surface number is 1 for inner and 2 for outer.

Definition at line 74 of file TIBNameSpace.h.

References TrackerTopology::tibStringInfo().

Referenced by TrackerAlignableIndexer::TrackerAlignableIndexer().

75 {
76  return tTopo->tibStringInfo(id)[1];
77 }
std::vector< unsigned int > tibStringInfo(const DetId &id) const

Variable Documentation

std::vector< unsigned int > align::tib::sphs

Number of strings for each surface of a half shell.

Definition at line 27 of file TIBNameSpace.h.

Referenced by TrackerAlignmentLevelBuilder::buildTIBAlignmentLevels(), halfShellNumber(), and stringNumber().