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)
 Half barrel number is 1 at -z side and 2 at +z side. More...
 
unsigned int halfShellNumber (align::ID)
 Half shell number is 1 for bottom (-y) and 2 for top (+y). More...
 
unsigned int layerNumber (align::ID)
 Layer number increases with rho from 1 to 8. More...
 
unsigned int moduleNumber (align::ID)
 Module number increases with |z| from 1 to 3. More...
 
unsigned int stringNumber (align::ID)
 
unsigned int surfaceNumber (align::ID)
 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)
inline

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

Definition at line 90 of file TIBNameSpace.h.

References TIBDetId::string().

Referenced by TrackerCounters::TrackerCounters().

91 {
92  return TIBDetId(id).string()[0];
93 }
std::vector< unsigned int > string() const
string id
Definition: TIBDetId.h:53
unsigned int align::tib::halfShellNumber ( align::ID  id)
inline

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

Definition at line 72 of file TIBNameSpace.h.

References prof2calltree::l, TIBDetId::layer(), asciidump::s, sphs, and TIBDetId::string().

Referenced by TrackerCounters::TrackerCounters().

73 {
74  TIBDetId detId(id);
75 
76  std::vector<unsigned int> s = detId.string();
77  // s[1]: surface lower = 1, upper = 2
78  // s[2]: string no. increases with phi
79 
80  unsigned int l = 2 * (detId.layer() - 1) + s[1] - 1;
81 
82  return s[2] > sphs[l] ? 1 : 2;
83 }
const unsigned int sphs[]
Number of strings for each surface of a half shell.
Definition: TIBNameSpace.h:23
string s
Definition: asciidump.py:422
unsigned int align::tib::layerNumber ( align::ID  id)
inline
unsigned int align::tib::moduleNumber ( align::ID  id)
inline

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

Definition at line 46 of file TIBNameSpace.h.

References TIBDetId::module().

Referenced by TrackerCounters::TrackerCounters().

47 {
48  return TIBDetId(id).module();
49 }
unsigned int module() const
detector id
Definition: TIBDetId.h:61
unsigned int align::tib::stringNumber ( align::ID  id)
inline

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

Definition at line 51 of file TIBNameSpace.h.

References prof2calltree::l, TIBDetId::layer(), asciidump::s, sphs, and TIBDetId::string().

Referenced by SiStripBaseCondObjDQM::bookSummaryProfileMEs(), SiStripLorentzAngleDQM::fillMEsForLayer(), SiStripMonitorMuonHLT::GeometryFromTrackGeom(), and TrackerCounters::TrackerCounters().

52 {
53  TIBDetId detId(id);
54 
55  std::vector<unsigned int> s = detId.string();
56  // s[1]: surface lower = 1, upper = 2
57  // s[2]: string no. increases with phi
58 
59  unsigned int l = 2 * (detId.layer() - 1) + s[1] - 1;
60 
61 // String on +y surface: number = s (1 to sphs)
62 // String in -y surface: number = 2 * sphs + 1 - s (1 to sphs)
63 
64  return s[2] > sphs[l] ? 2 * sphs[l] + 1 - s[2] : s[2];
65 }
const unsigned int sphs[]
Number of strings for each surface of a half shell.
Definition: TIBNameSpace.h:23
string s
Definition: asciidump.py:422
unsigned int align::tib::surfaceNumber ( align::ID  id)
inline

Surface number is 1 for inner and 2 for outer.

Definition at line 67 of file TIBNameSpace.h.

References TIBDetId::string().

Referenced by TrackerCounters::TrackerCounters().

68 {
69  return TIBDetId(id).string()[1];
70 }
std::vector< unsigned int > string() const
string id
Definition: TIBDetId.h:53

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

Referenced by halfShellNumber(), and stringNumber().