CMS 3D CMS Logo

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

Variables

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

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().

{
  return TIBDetId(id).string()[0];
}
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().

{
  TIBDetId detId(id);

  std::vector<unsigned int> s = detId.string();
  // s[1]: surface lower = 1, upper = 2
  // s[2]: string no. increases with phi

  unsigned int l = 2 * (detId.layer() - 1) + s[1] - 1;

  return s[2] > sphs[l] ? 1 : 2;
}
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().

{
  return TIBDetId(id).module();
}
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().

{
  TIBDetId detId(id);

  std::vector<unsigned int> s = detId.string();
  // s[1]: surface lower = 1, upper = 2
  // s[2]: string no. increases with phi

  unsigned int l = 2 * (detId.layer() - 1) + s[1] - 1;

// String on +y surface: number = s                (1 to sphs)
// String in -y surface: number = 2 * sphs + 1 - s (1 to sphs)

  return s[2] > sphs[l] ? 2 * sphs[l] + 1 - s[2] : s[2];
}
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().

{
  return TIBDetId(id).string()[1];
}

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().