00001 #ifndef TkrSiCluster_H 00002 #define TkrSiCluster_H 00003 00004 #include "TObject.h" 00005 00006 // =================================== 00007 // Silicon Cluster 00008 // =================================== 00009 00011 00019 class TkrSiCluster : public TObject 00020 { 00021 00022 public: 00024 typedef enum { 00025 X = 0, 00026 Y 00027 } TKRAxes; 00028 00029 private : 00031 UInt_t m_id; 00033 UInt_t m_layer; 00035 TKRAxes m_xy; 00036 00038 // HMA Question - what if a cluster is an even # of strips 00039 // which strip number is provided as the "center" strip? 00040 UShort_t m_centerStrip; 00042 UShort_t m_numStrips; 00043 00045 Float_t m_position; 00046 00047 //(HMA Question: z position of the layer???) 00049 Float_t m_z; 00050 00051 public: 00052 00054 // in this case there are no pointers in the class, so 00055 // users may utilize either constructor 00056 TkrSiCluster(); 00057 TkrSiCluster(UInt_t id); 00058 00060 virtual ~TkrSiCluster(); 00061 00063 void Clean(); 00064 // Create isn't necessary since there are no pointers 00065 // in this class 00066 00068 UInt_t getId() { return m_id; }; 00069 void setId(UInt_t id) { m_id = id; }; 00070 00072 UInt_t getLayer() { return m_layer; }; 00073 void setLayer(UInt_t layer) { m_layer = layer; }; 00074 00076 TKRAxes getXY() { return (m_xy ? Y : X); }; 00077 void setXY(TKRAxes xyVal) { m_xy = xyVal; }; 00078 00080 UShort_t getCenterStrip() { return m_centerStrip; }; 00081 void setCenterStrip(UShort_t center) { m_centerStrip = center; }; 00082 00084 UShort_t getNumStrips() { return m_numStrips; }; 00085 void setNumStrips(UShort_t num) { m_numStrips = num; }; 00086 00088 Float_t getPosition() { return m_position; }; 00089 void setPosition(Float_t pos) { m_position = pos; }; 00090 00092 Float_t getZPosition() { return m_z; }; 00093 void setZPosition(Float_t z) { m_z = z; }; 00094 00095 ClassDef(TkrSiCluster,1) 00096 }; 00097 #endif
1.2.3 written by Dimitri van Heesch,
© 1997-2000