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
00040
00041
00042
00043
00044
00045
00046 #ifndef STSVTANALYSEDHYBRIDCLUSTERS_HH
00047 #define STSVTANALYSEDHYBRIDCLUSTERS_HH
00048 #include <string.h>
00049 #include "StSvtClassLibrary/StSvtHybridObject.hh"
00050 #include "StarClassLibrary/StThreeVector.hh"
00051 #include "StEvent/StSvtHit.h"
00052
00053 class StSvtAnalysis;
00054 class scs_spt_st;
00055 class StSvtWaferCoordinate;
00056
00057 typedef struct StSvtHitData
00058 {
00059
00060 int id;
00061 int id_cluster;
00062 int id_globtrk;
00063 int id_match;
00064 int id_track;
00065 int id_simtrk;
00066
00067 int peakAdc;
00068 int numOfAnodesInClu;
00069 int numOfPixelsInClu;
00070 double mom2[2];
00071 float uv[2];
00072 float anode;
00073 float timeb;
00074 StSvtHitData(){memset(this,0,sizeof(StSvtHitData));}
00075 } StSvtHitData;
00076
00077
00078
00079 class StSvtAnalysedHybridClusters : public StSvtHybridObject
00080 {
00081 public:
00082
00083 StSvtAnalysedHybridClusters(int barrel, int ladder, int wafer, int hybrid);
00084 virtual ~StSvtAnalysedHybridClusters();
00085
00086 void setMembers(int numOfClu, int index);
00087 int setSvtHit(StSvtAnalysis* mSvtAnalysis, float T0Jitter);
00088 int setSvtHit(scs_spt_st* mSrsHit, StSvtWaferCoordinate* WaferCoord);
00089
00090 StSvtHitData* svtHitData();
00091 StSvtHit* svtHit();
00092 void ReSize();
00093 int numOfHits();
00094 StThreeVector<double>* WaferPosition();
00095
00096
00097
00098 private:
00099
00100 int mNumOfHits;
00101 unsigned int mHardWarePosition;
00102 StSvtHitData* mSvtHitData;
00103 StSvtHit* mSvtHit;
00104 StThreeVector<double>* mPos;
00105
00106 };
00107
00108 inline StSvtHitData* StSvtAnalysedHybridClusters::svtHitData(){ return mSvtHitData;}
00109 inline StSvtHit* StSvtAnalysedHybridClusters::svtHit(){ return mSvtHit;}
00110 inline int StSvtAnalysedHybridClusters::numOfHits(){ return mNumOfHits;}
00111 inline StThreeVector<double>* StSvtAnalysedHybridClusters::WaferPosition(){ return mPos;}
00112 #endif
00113
00114
00115