CMS 3D CMS Logo

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