CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 #include "globals.hh"
28 
30 
31 public:
32 
33  // ---------- public enums -------------------------------
34 
35  enum ObjectType {
37  Upper=1,
38  Lower=2,
41  Frame1=5,
48  Frame5=12,
52  };
53 
54 public:
55 
56  // ---------- Constructor and destructor -----------------
58  virtual ~TotemT1Organization();
59 
60  // ---------- member functions ---------------------------
61  uint32_t GetUnitID(const G4Step* aStep);
62  uint32_t GetUnitID(const G4Step* aStep) const;
63 
64  int GetCurrentUnitID(void) const;
65  void SetCurrentUnitID(int currentUnitID);
66 
67  // ---------- Detector position --------------------------
68 
69  int GetCurrentDetectorPosition(void) const;
70  void SetCurrentDetectorPosition(int currentDetectorPosition);
71 
72  // ---------- Plane: between 0 and (nPlanes-1) (or -1 for Undefined)
73  int GetCurrentPlane(void) const;
74  void SetCurrentPlane(int currentPlane);
75 
76  // ---------- CSC: between 0 and 5 (or -1 for Undefined)
77  int GetCurrentCSC(void) const;
78  void SetCurrentCSC(int currentCSC);
79 
80  // ---------- Layer: between 0 and (nLayers-1) (or -1 for Undefined)
81  int GetCurrentLayer(void) const;
82  void SetCurrentLayer(int currentLayer);
83 
84  // ---------- Object Type --------------------------------
85 
86  ObjectType GetCurrentObjectType(void) const;
87  inline void SetCurrentObjectType(ObjectType currentObjectType);
88 
89  int FromObjectTypeToInt(ObjectType objectType);
90  int FromObjectTypeToInt(ObjectType objectType, int layer);
91 
92 private:
93  // ---------- Private methods ----------------------------
94  void _checkUnitIDUpdate(void) const;
95  void _checkDataUpdate(void) const;
96 
97  void _FromUnitIDToData(void);
98  void _FromDataToUnitID(void);
99 
100 
101 private:
102  // ---------- Private data members -----------------------
111 
112 };
113 #endif
void SetCurrentUnitID(int currentUnitID)
void _checkDataUpdate(void) const
int GetCurrentDetectorPosition(void) const
ObjectType GetCurrentObjectType(void) const
int GetCurrentCSC(void) const
void SetCurrentCSC(int currentCSC)
void SetCurrentLayer(int currentLayer)
uint32_t GetUnitID(const G4Step *aStep)
int GetCurrentUnitID(void) const
void _checkUnitIDUpdate(void) const
void SetCurrentDetectorPosition(int currentDetectorPosition)
void SetCurrentObjectType(ObjectType currentObjectType)
int GetCurrentLayer(void) const
void SetCurrentPlane(int currentPlane)
int GetCurrentPlane(void) const
int FromObjectTypeToInt(ObjectType objectType)