CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TIDNameSpace.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignment_TIDNameSpace_H
2 #define Alignment_CommonAlignment_TIDNameSpace_H
3 
17 
18 namespace align
19 {
20  namespace tid
21  {
23  inline unsigned int moduleNumber( align::ID );
24 
26  inline unsigned int sideNumber( align::ID );
27 
29  inline unsigned int ringNumber( align::ID );
30 
32  inline unsigned int diskNumber( align::ID );
33 
35  inline unsigned int endcapNumber( align::ID );
36  }
37 }
38 
40 {
41  return TIDDetId(id).module()[1];
42 }
43 
45 {
46  return TIDDetId(id).module()[0];
47 }
48 
50 {
51  return TIDDetId(id).ring();
52 }
53 
55 {
56  return TIDDetId(id).wheel();
57 }
58 
60 {
61  return TIDDetId(id).side();
62 }
63 
64 #endif
uint32_t ID
Definition: Definitions.h:26
unsigned int ringNumber(align::ID)
Ring number increases with rho from 1 to 3.
Definition: TIDNameSpace.h:49
unsigned int ring() const
ring id
Definition: TIDDetId.h:55
std::vector< unsigned int > module() const
det id
Definition: TIDDetId.h:64
unsigned int diskNumber(align::ID)
Disk number increases with |z| from 1 to 3.
Definition: TIDNameSpace.h:54
unsigned int side() const
positive or negative id
Definition: TIDDetId.h:45
unsigned int sideNumber(align::ID)
Side number is 1 for back ring and 2 for front (towards IP).
Definition: TIDNameSpace.h:44
unsigned int endcapNumber(align::ID)
Endcap number is 1 at -z side and 2 at +z side.
Definition: TIDNameSpace.h:59
unsigned int moduleNumber(align::ID)
Module number increases with phi.
Definition: TIDNameSpace.h:39
unsigned int wheel() const
wheel id
Definition: TIDDetId.h:50