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

const unsigned int sphs [] = {13, 15, 17, 19, 22, 23, 26, 28}
 Number of strings for each surface of a half shell. More...
 

Function Documentation

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 91 of file TIBNameSpace.h.

References TrackerTopology::tibStringInfo().

Referenced by TrackerCounters::TrackerCounters().

92 {
93  return tTopo->tibStringInfo(id)[0];
94 }
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 73 of file TIBNameSpace.h.

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

Referenced by TrackerCounters::TrackerCounters().

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

Layer number increases with rho from 1 to 8.

Definition at line 86 of file TIBNameSpace.h.

References TrackerTopology::tibLayer().

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

87 {
88  return tTopo->tibLayer(id);
89 }
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 47 of file TIBNameSpace.h.

References TrackerTopology::tibModule().

Referenced by TrackerCounters::TrackerCounters().

48 {
49  return tTopo->tibModule(id);
50 }
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 52 of file TIBNameSpace.h.

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

Referenced by TrackerCounters::TrackerCounters().

53 {
54 
55 
56  std::vector<unsigned int> s = tTopo->tibStringInfo(id);
57  // s[1]: surface lower = 1, upper = 2
58  // s[2]: string no. increases with phi
59 
60  unsigned int l = 2 * (tTopo->tibLayer(id) - 1) + s[1] - 1;
61 
62 // String on +y surface: number = s (1 to sphs)
63 // String in -y surface: number = 2 * sphs + 1 - s (1 to sphs)
64 
65  return s[2] > sphs[l] ? 2 * sphs[l] + 1 - s[2] : s[2];
66 }
unsigned int tibLayer(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
const unsigned int sphs[]
Number of strings for each surface of a half shell.
Definition: TIBNameSpace.h:24
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 68 of file TIBNameSpace.h.

References TrackerTopology::tibStringInfo().

Referenced by TrackerCounters::TrackerCounters().

69 {
70  return tTopo->tibStringInfo(id)[1];
71 }
std::vector< unsigned int > tibStringInfo(const DetId &id) const

Variable Documentation

const unsigned int align::tib::sphs[] = {13, 15, 17, 19, 22, 23, 26, 28}

Number of strings for each surface of a half shell.

Definition at line 24 of file TIBNameSpace.h.

Referenced by halfShellNumber(), and stringNumber().