test
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 
18 
19 namespace align
20 {
21  namespace tec
22  {
24  inline unsigned int moduleNumber(align::ID, const TrackerTopology*);
25 
27  inline unsigned int ringNumber(align::ID, const TrackerTopology*);
28 
30  inline unsigned int petalNumber(align::ID, const TrackerTopology*);
31 
33  inline unsigned int sideNumber(align::ID, const TrackerTopology*);
34 
36  inline unsigned int diskNumber(align::ID, const TrackerTopology*);
37 
39  inline unsigned int endcapNumber(align::ID, const TrackerTopology*);
40  }
41 }
42 
43 unsigned int align::tec::moduleNumber(align::ID id, const TrackerTopology* tTopo)
44 {
45  return tTopo->tecModule(id);
46 }
47 
48 unsigned int align::tec::ringNumber(align::ID id, const TrackerTopology* tTopo)
49 {
50  return tTopo->tecRing(id);
51 }
52 
53 unsigned int align::tec::petalNumber(align::ID id, const TrackerTopology* tTopo)
54 {
55  return tTopo->tecPetalInfo(id)[1];
56 }
57 
58 unsigned int align::tec::sideNumber(align::ID id, const TrackerTopology* tTopo)
59 {
60  return tTopo->tecPetalInfo(id)[0];
61 }
62 
63 unsigned int align::tec::diskNumber(align::ID id, const TrackerTopology* tTopo)
64 {
65  return tTopo->tecWheel(id);
66 }
67 
68 unsigned int align::tec::endcapNumber(align::ID id, const TrackerTopology* tTopo)
69 {
70  return tTopo->tecSide(id);
71 }
72 
73 #endif
unsigned int endcapNumber(align::ID, const TrackerTopology *)
Endcap number is 1 at -z side and 2 at +z side.
Definition: TECNameSpace.h:68
unsigned int diskNumber(align::ID, const TrackerTopology *)
Disk number increases with |z| from 1 to 9.
Definition: TECNameSpace.h:63
unsigned int petalNumber(align::ID, const TrackerTopology *)
Petal number increases with phi from 1 to 8.
Definition: TECNameSpace.h:53
unsigned int tecRing(const DetId &id) const
ring id
uint32_t ID
Definition: Definitions.h:26
unsigned int ringNumber(align::ID, const TrackerTopology *)
Ring number increases with rho.
Definition: TECNameSpace.h:48
unsigned int moduleNumber(align::ID, const TrackerTopology *)
Module number increases (decreases) with phi for +z (-z) endcap.
Definition: TECNameSpace.h:43
std::vector< unsigned int > tecPetalInfo(const DetId &id) const
unsigned int tecModule(const DetId &id) const
unsigned int sideNumber(align::ID, const TrackerTopology *)
Side number is 1 for back disk and 2 for front (towards IP).
Definition: TECNameSpace.h:58
unsigned int tecWheel(const DetId &id) const
unsigned int tecSide(const DetId &id) const