CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TOBNameSpace.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_TOBNameSpace_H
2 #define Alignment_CommonAlignment_TOBNameSpace_H
3 
17 
18 namespace align
19 {
20  namespace tob
21  {
23  inline unsigned int moduleNumber( align::ID );
24 
26  inline unsigned int rodNumber( align::ID );
27 
29  inline unsigned int layerNumber( align::ID );
30 
32  inline unsigned int halfBarrelNumber( align::ID );
33  }
34 }
35 
37 {
38  return TOBDetId(id).module();
39 }
40 
42 {
43  return TOBDetId(id).rod()[1];
44 }
45 
47 {
48  return TOBDetId(id).layer();
49 }
50 
52 {
53  return TOBDetId(id).rod()[0];
54 }
55 
56 #endif
unsigned int layer() const
layer id
Definition: TOBDetId.h:39
unsigned int rodNumber(align::ID)
Rod number increases with phi.
Definition: TOBNameSpace.h:41
uint32_t ID
Definition: Definitions.h:26
std::vector< unsigned int > rod() const
rod id
Definition: TOBDetId.h:49
unsigned int moduleNumber(align::ID)
Module number increases with |z| from 1 to 6.
Definition: TOBNameSpace.h:36
unsigned int halfBarrelNumber(align::ID)
HalfBarrel number is 1 at -z side and 2 at +z side.
Definition: TOBNameSpace.h:51
unsigned int module() const
detector id
Definition: TOBDetId.h:58
unsigned int layerNumber(align::ID)
Layer number increases with rho from 1 to 6.
Definition: TOBNameSpace.h:46