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 // $Id: TotemT1Organization.h,v 1.1 2006/05/17 16:18:57 sunanda Exp $
21 //
22 
23 // system include files
24 
25 // user include files
26 
28 #include "globals.hh"
29 
31 
32 public:
33 
34  // ---------- public enums -------------------------------
35 
36  enum ObjectType {
38  Upper=1,
39  Lower=2,
42  Frame1=5,
49  Frame5=12,
53  };
54 
55 public:
56 
57  // ---------- Constructor and destructor -----------------
59  virtual ~TotemT1Organization();
60 
61  // ---------- member functions ---------------------------
62  uint32_t GetUnitID(const G4Step* aStep);
63  uint32_t GetUnitID(const G4Step* aStep) const;
64 
65  int GetCurrentUnitID(void) const;
66  void SetCurrentUnitID(int currentUnitID);
67 
68  // ---------- Detector position --------------------------
69 
70  int GetCurrentDetectorPosition(void) const;
71  void SetCurrentDetectorPosition(int currentDetectorPosition);
72 
73  // ---------- Plane: between 0 and (nPlanes-1) (or -1 for Undefined)
74  int GetCurrentPlane(void) const;
75  void SetCurrentPlane(int currentPlane);
76 
77  // ---------- CSC: between 0 and 5 (or -1 for Undefined)
78  int GetCurrentCSC(void) const;
79  void SetCurrentCSC(int currentCSC);
80 
81  // ---------- Layer: between 0 and (nLayers-1) (or -1 for Undefined)
82  int GetCurrentLayer(void) const;
83  void SetCurrentLayer(int currentLayer);
84 
85  // ---------- Object Type --------------------------------
86 
87  ObjectType GetCurrentObjectType(void) const;
88  inline void SetCurrentObjectType(ObjectType currentObjectType);
89 
90  int FromObjectTypeToInt(ObjectType objectType);
91  int FromObjectTypeToInt(ObjectType objectType, int layer);
92 
93 private:
94  // ---------- Private methods ----------------------------
95  void _checkUnitIDUpdate(void) const;
96  void _checkDataUpdate(void) const;
97 
98  void _FromUnitIDToData(void);
99  void _FromDataToUnitID(void);
100 
101 
102 private:
103  // ---------- Private data members -----------------------
112 
113 };
114 #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)