00001
00002
00003
00004
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 #ifndef STSVTGEANTHITS_HH
00040 #define STSVTGEANTHITS_HH
00041
00042 #define MAX_HITS 200
00043
00044 #include "StSvtClassLibrary/StSvtHybridObject.hh"
00045 #include <vector>
00046 #ifndef ST_NO_NAMESPACES
00047 using std::vector;
00048 #endif
00049 #include "StThreeVector.hh"
00050
00051 class StSvtWaferCoordinate;
00052 class StSvtLocalCoordinate;
00053 class StGlobalCoordinate;
00054
00055 class StSvtGeantHits : public StSvtHybridObject
00056 {
00057 public:
00058 StSvtGeantHits(int barrel, int ladder, int wafer, int hybrid);
00059 virtual ~StSvtGeantHits();
00060
00061 void setNumOfHits(int nhits);
00062 void setPeak(int index, float peak);
00063 void setGeantHit(int index ,int* svtAtt, float* AnTime);
00064 void setGeantHit(int index , StSvtWaferCoordinate* waferCoord);
00065 void setLocalCoord( int index, StThreeVector<double>* x );
00066 void setGlobalCoord(int index, StThreeVector<double>* x);
00067 void setTrackId(int index ,int idtrk);
00068 int getTrackId(int index);
00069
00070 int numberOfHits();
00071 float peak(int index);
00072 StSvtWaferCoordinate* waferCoordinate();
00073 StSvtLocalCoordinate* localCoordinate();
00074 StGlobalCoordinate* globalCoordinate();
00075
00076 private:
00077
00078 int mNumOfHits;
00079 StSvtWaferCoordinate *mWaferCoord;
00080 StSvtLocalCoordinate *mLocalCoord;
00081 StGlobalCoordinate *mGlobalCoord;
00082 int *mIdTrack;
00083 float *mPeak;
00084
00085 ClassDef(StSvtGeantHits,1)
00086 };
00087
00088 inline int StSvtGeantHits::numberOfHits() {return mNumOfHits ;}
00089 inline float StSvtGeantHits::peak(int index) {return mPeak[index];}
00090 inline StSvtWaferCoordinate* StSvtGeantHits::waferCoordinate(){return mWaferCoord ;}
00091 inline StGlobalCoordinate* StSvtGeantHits::globalCoordinate() {return mGlobalCoord;}
00092 inline StSvtLocalCoordinate* StSvtGeantHits::localCoordinate(){return mLocalCoord ;}
00093
00094 #endif