test
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 
18 
19 namespace align
20 {
21  namespace tid
22  {
24  inline unsigned int moduleNumber(align::ID, const TrackerTopology*);
25 
27  inline unsigned int sideNumber(align::ID, const TrackerTopology*);
28 
30  inline unsigned int ringNumber(align::ID, const TrackerTopology*);
31 
33  inline unsigned int diskNumber(align::ID, const TrackerTopology*);
34 
36  inline unsigned int endcapNumber(align::ID, const TrackerTopology*);
37  }
38 }
39 
40 unsigned int align::tid::moduleNumber(align::ID id, const TrackerTopology* tTopo)
41 {
42  return tTopo->tidModuleInfo(id)[1];
43 }
44 
45 unsigned int align::tid::sideNumber(align::ID id, const TrackerTopology* tTopo)
46 {
47  return tTopo->tidModuleInfo(id)[0];
48 }
49 
50 unsigned int align::tid::ringNumber(align::ID id, const TrackerTopology* tTopo)
51 {
52  return tTopo->tidRing(id);
53 }
54 
55 unsigned int align::tid::diskNumber(align::ID id, const TrackerTopology* tTopo)
56 {
57  return tTopo->tidWheel(id);
58 }
59 
60 unsigned int align::tid::endcapNumber(align::ID id, const TrackerTopology* tTopo)
61 {
62  return tTopo->tidSide(id);
63 }
64 
65 #endif
unsigned int tidRing(const DetId &id) const
std::vector< unsigned int > tidModuleInfo(const DetId &id) const
uint32_t ID
Definition: Definitions.h:26
unsigned int tidWheel(const DetId &id) const
unsigned int diskNumber(align::ID, const TrackerTopology *)
Disk number increases with |z| from 1 to 3.
Definition: TIDNameSpace.h:55
unsigned int tidSide(const DetId &id) const
unsigned int ringNumber(align::ID, const TrackerTopology *)
Ring number increases with rho from 1 to 3.
Definition: TIDNameSpace.h:50
unsigned int sideNumber(align::ID, const TrackerTopology *)
Side number is 1 for back ring and 2 for front (towards IP).
Definition: TIDNameSpace.h:45
unsigned int endcapNumber(align::ID, const TrackerTopology *)
Endcap number is 1 at -z side and 2 at +z side.
Definition: TIDNameSpace.h:60
unsigned int moduleNumber(align::ID, const TrackerTopology *)
Module number increases with phi.
Definition: TIDNameSpace.h:40