00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef StEmcRawHit_hh
00044 #define StEmcRawHit_hh
00045
00046 #include "StObject.h"
00047 #include "StEnumerations.h"
00048
00049 class StEmcGeom;
00050
00051 class StEmcRawHit : public StObject {
00052 public:
00053 StEmcRawHit();
00054 StEmcRawHit(StDetectorId, unsigned int, unsigned int, unsigned int, unsigned int);
00055 StEmcRawHit(StDetectorId, unsigned int, unsigned int, unsigned int, unsigned int, float);
00056 StEmcRawHit(const StEmcRawHit&);
00057
00058 ~StEmcRawHit();
00059
00060 StDetectorId detector() const;
00061 void modEtaSub(int &m, int &e, int &s) const;
00062 unsigned int softId(int det) const;
00063
00064 unsigned int module() const;
00065 unsigned int eta() const;
00066 int sub() const;
00067 unsigned int calibrationType() const;
00068 unsigned int adc() const;
00069 float energy() const;
00070
00071 void setId(StDetectorId, unsigned int, unsigned int, unsigned int);
00072 void setCalibrationType(const unsigned int);
00073 void setAdc(const unsigned int);
00074 void setEnergy(const float);
00075
00076 protected:
00077 unsigned int bits(unsigned int, unsigned int) const;
00078
00079 protected:
00080 UInt_t mId;
00081 UInt_t mAdc;
00082 Float_t mEnergy;
00083
00084 static StEmcGeom* mGeom;
00085
00086 ClassDef(StEmcRawHit,1)
00087 };
00088 #endif
00089
00090