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 public:
30  // ---------- public enums -------------------------------
31 
32  enum ObjectType {
33  Undefined = 0,
34  Upper = 1,
35  Lower = 2,
38  Frame1 = 5,
43  Frame4Left = 10,
45  Frame5 = 12,
49  };
50 
51 public:
52  // ---------- Constructor and destructor -----------------
54  ~TotemT1Organization() override;
55 
56  // ---------- member functions ---------------------------
57  uint32_t getUnitID(const G4Step* aStep) const override;
58 
59  int getCurrentUnitID(void) const;
60  void setCurrentUnitID(int currentUnitID);
61 
62  // ---------- Detector position --------------------------
63 
64  int getCurrentDetectorPosition(void) const;
65  void setCurrentDetectorPosition(int currentDetectorPosition);
66 
67  // ---------- Plane: between 0 and (nPlanes-1) (or -1 for Undefined)
68  int getCurrentPlane(void) const;
69  void setCurrentPlane(int currentPlane);
70 
71  // ---------- CSC: between 0 and 5 (or -1 for Undefined)
72  int getCurrentCSC(void) const;
73  void setCurrentCSC(int currentCSC);
74 
75  // ---------- Layer: between 0 and (nLayers-1) (or -1 for Undefined)
76  int getCurrentLayer(void) const;
77  void setCurrentLayer(int currentLayer);
78 
79  // ---------- Object Type --------------------------------
80 
81  ObjectType getCurrentObjectType(void) const;
82  void setCurrentObjectType(ObjectType currentObjectType);
83 
84  int fromObjectTypeToInt(ObjectType objectType);
85  int fromObjectTypeToInt(ObjectType objectType, int layer);
86 
87  // ---------- Private methods ----------------------------
88 
89 private:
90  uint32_t getUnitID(const G4Step* aStep);
91 
92  void _checkUnitIDUpdate(void) const;
93  void _checkDataUpdate(void) const;
94 
95  void _FromUnitIDToData(void);
96  void _FromDataToUnitID(void);
97 
98  // ---------- Private data members -----------------------
107 };
108 #endif
TotemVDetectorOrganization
Definition: TotemVDetectorOrganization.h:11
TotemT1Organization::InternalLower
Definition: TotemT1Organization.h:37
TotemT1Organization::Frame4Left
Definition: TotemT1Organization.h:43
TotemT1Organization::setCurrentCSC
void setCurrentCSC(int currentCSC)
Definition: TotemT1Organization.cc:147
TotemT1Organization::_needUpdateData
bool _needUpdateData
Definition: TotemT1Organization.h:100
TotemT1Organization::setCurrentUnitID
void setCurrentUnitID(int currentUnitID)
Definition: TotemT1Organization.cc:98
TotemT1Organization::Triangle6Left
Definition: TotemT1Organization.h:46
TotemT1Organization::Upper
Definition: TotemT1Organization.h:34
TotemT1Organization::getCurrentObjectType
ObjectType getCurrentObjectType(void) const
Definition: TotemT1Organization.cc:171
TotemT1Organization::_currentUnitID
int _currentUnitID
Definition: TotemT1Organization.h:101
TotemT1Organization::setCurrentLayer
void setCurrentLayer(int currentLayer)
Definition: TotemT1Organization.cc:163
TotemT1Organization::Frame3Right
Definition: TotemT1Organization.h:42
TotemT1Organization::Lower
Definition: TotemT1Organization.h:35
TotemT1Organization::getCurrentPlane
int getCurrentPlane(void) const
Definition: TotemT1Organization.cc:122
TotemT1Organization::setCurrentDetectorPosition
void setCurrentDetectorPosition(int currentDetectorPosition)
Definition: TotemT1Organization.cc:114
TotemT1Organization::_currentDetectorPosition
int _currentDetectorPosition
Definition: TotemT1Organization.h:102
TotemT1Organization::getCurrentUnitID
int getCurrentUnitID(void) const
Definition: TotemT1Organization.cc:89
TotemT1Organization::InternalUpper
Definition: TotemT1Organization.h:36
TotemT1Organization::TotemT1Organization
TotemT1Organization()
Definition: TotemT1Organization.cc:27
TotemT1Organization::_currentObjectType
ObjectType _currentObjectType
Definition: TotemT1Organization.h:106
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
TotemT1Organization::_FromDataToUnitID
void _FromDataToUnitID(void)
Definition: TotemT1Organization.cc:278
TotemT1Organization::Frame5
Definition: TotemT1Organization.h:45
TotemT1Organization::Triangle6Right
Definition: TotemT1Organization.h:47
TotemT1Organization::Undefined
Definition: TotemT1Organization.h:33
TotemT1Organization::ObjectType
ObjectType
Definition: TotemT1Organization.h:32
TotemT1Organization::Frame3Left
Definition: TotemT1Organization.h:41
TotemT1Organization::Frame4Right
Definition: TotemT1Organization.h:44
TotemT1Organization::Frame2Left
Definition: TotemT1Organization.h:39
TotemT1Organization::getCurrentDetectorPosition
int getCurrentDetectorPosition(void) const
Definition: TotemT1Organization.cc:106
TotemT1Organization::getCurrentCSC
int getCurrentCSC(void) const
Definition: TotemT1Organization.cc:139
TotemT1Organization::Frame2Right
Definition: TotemT1Organization.h:40
TotemT1Organization::fromObjectTypeToInt
int fromObjectTypeToInt(ObjectType objectType)
Definition: TotemT1Organization.cc:187
TotemT1Organization::setCurrentPlane
void setCurrentPlane(int currentPlane)
Definition: TotemT1Organization.cc:131
TotemT1Organization::_checkDataUpdate
void _checkDataUpdate(void) const
Definition: TotemT1Organization.cc:217
TotemT1Organization::MaxObjectTypes
Definition: TotemT1Organization.h:48
TotemT1Organization
Definition: TotemT1Organization.h:28
TotemT1Organization::_needUpdateUnitID
bool _needUpdateUnitID
Definition: TotemT1Organization.h:99
TotemT1Organization::Frame1
Definition: TotemT1Organization.h:38
TotemT1Organization::_checkUnitIDUpdate
void _checkUnitIDUpdate(void) const
Definition: TotemT1Organization.cc:204
TotemVDetectorOrganization.h
TotemT1Organization::getUnitID
uint32_t getUnitID(const G4Step *aStep) const override
Definition: TotemT1Organization.cc:44
TotemT1Organization::_currentCSC
int _currentCSC
Definition: TotemT1Organization.h:104
TotemT1Organization::_currentLayer
int _currentLayer
Definition: TotemT1Organization.h:105
TotemT1Organization::~TotemT1Organization
~TotemT1Organization() override
Definition: TotemT1Organization.cc:38
TotemT1Organization::_FromUnitIDToData
void _FromUnitIDToData(void)
Definition: TotemT1Organization.cc:230
TotemT1Organization::_currentPlane
int _currentPlane
Definition: TotemT1Organization.h:103
TotemT1Organization::getCurrentLayer
int getCurrentLayer(void) const
Definition: TotemT1Organization.cc:155
TotemT1Organization::setCurrentObjectType
void setCurrentObjectType(ObjectType currentObjectType)
Definition: TotemT1Organization.cc:179