CMS 3D CMS Logo

TotemT1Organization.h
Go to the documentation of this file.
1 #ifndef Forward_TotemT1Organization_h
2 #define Forward_TotemT1Organization_h 1
3 // -*- C++ -*-
4 //
5 // Package: Forward
6 // Class : TotemT1Organization
7 //
17 //
18 // Original Author: R. Capra
19 // Created: Tue May 16 10:14:34 CEST 2006
20 //
21 
22 // system include files
23 
24 // user include files
25 
27 
29 
30 public:
31 
32  // ---------- public enums -------------------------------
33 
34  enum ObjectType {
36  Upper=1,
37  Lower=2,
40  Frame1=5,
47  Frame5=12,
51  };
52 
53 public:
54 
55  // ---------- Constructor and destructor -----------------
57  ~TotemT1Organization() override;
58 
59  // ---------- member functions ---------------------------
60  uint32_t getUnitID(const G4Step* aStep) const override;
61 
62  int getCurrentUnitID(void) const;
63  void setCurrentUnitID(int currentUnitID);
64 
65  // ---------- Detector position --------------------------
66 
67  int getCurrentDetectorPosition(void) const;
68  void setCurrentDetectorPosition(int currentDetectorPosition);
69 
70  // ---------- Plane: between 0 and (nPlanes-1) (or -1 for Undefined)
71  int getCurrentPlane(void) const;
72  void setCurrentPlane(int currentPlane);
73 
74  // ---------- CSC: between 0 and 5 (or -1 for Undefined)
75  int getCurrentCSC(void) const;
76  void setCurrentCSC(int currentCSC);
77 
78  // ---------- Layer: between 0 and (nLayers-1) (or -1 for Undefined)
79  int getCurrentLayer(void) const;
80  void setCurrentLayer(int currentLayer);
81 
82  // ---------- Object Type --------------------------------
83 
84  ObjectType getCurrentObjectType(void) const;
85  void setCurrentObjectType(ObjectType currentObjectType);
86 
87  int fromObjectTypeToInt(ObjectType objectType);
88  int fromObjectTypeToInt(ObjectType objectType, int layer);
89 
90  // ---------- Private methods ----------------------------
91 
92 private:
93  uint32_t getUnitID(const G4Step* aStep);
94 
95  void _checkUnitIDUpdate(void) const;
96  void _checkDataUpdate(void) const;
97 
98  void _FromUnitIDToData(void);
99  void _FromDataToUnitID(void);
100 
101  // ---------- Private data members -----------------------
110 
111 };
112 #endif
void setCurrentObjectType(ObjectType currentObjectType)
uint32_t getUnitID(const G4Step *aStep) const override
void _checkDataUpdate(void) const
void setCurrentDetectorPosition(int currentDetectorPosition)
void setCurrentLayer(int currentLayer)
void setCurrentUnitID(int currentUnitID)
int getCurrentDetectorPosition(void) const
void _checkUnitIDUpdate(void) const
int getCurrentUnitID(void) const
int getCurrentPlane(void) const
int getCurrentCSC(void) const
void setCurrentPlane(int currentPlane)
int getCurrentLayer(void) const
void setCurrentCSC(int currentCSC)
int fromObjectTypeToInt(ObjectType objectType)
ObjectType getCurrentObjectType(void) const