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
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 #ifndef STAR_StSvtHit
00063 #define STAR_StSvtHit
00065 // //
00066
00067
00069 #ifndef StMaker_H
00070 #include "StMaker.h"
00071 #endif
00072 #include "TH2.h"
00073
00074
00075
00076 class TFile;
00077 class TNtuple;
00078 class StSvtGeometry;
00079 class StSvtHybridCollection;
00080 class StSvtAnalysedHybridClusters;
00081 class StSvtData;
00082 class StSvtGeantHits;
00083 class StSvtT0;
00084
00085 class StSvtHitMaker : public StMaker
00086 {
00087 public:
00088 StSvtHitMaker(const char *name = "SvtHit");
00089 StSvtHitMaker(StSvtHitMaker& svthit);
00090 ~StSvtHitMaker();
00091
00092 virtual Int_t Init();
00093 virtual Int_t InitRun(int runumber);
00094 virtual Int_t Make();
00095 virtual Int_t Finish();
00096 Int_t FillHistograms();
00097 Int_t GetSvtRawData();
00098 Int_t GetSvtClusterData();
00099 Int_t GetSvtGeometry();
00100 Int_t GetSvtDriftVelocity();
00101 Int_t GetSvtDriftCurve();
00102 Int_t GetSvtT0();
00103 void TransformIntoSpacePoint();
00104 void SaveIntoNtuple(int numOfCluster, int index);
00105 void SetWriteNtuple(int iwrite){iWrite = iwrite;};
00106 void SetFileNames(char* name1="/dev/null", char* name2="/dev/null");
00107 Int_t Eval();
00108 double LaserTemperatureCorrection();
00109
00110 virtual const char *GetCVS() const
00111 {static const char cvs[]="Tag $Name: $ $Id: StSvtHitMaker.h,v 1.20 2009/11/23 16:44:55 fisyak Exp $ built "__DATE__" "__TIME__ ; return cvs;}
00112
00113
00114 protected:
00115
00116 int iWrite;
00117
00118
00119 StSvtGeometry *m_geom;
00120 StSvtHybridCollection *mSvtCluColl;
00121 StSvtHybridCollection *mSvtGeantHitColl;
00122 StSvtHybridCollection *m_driftVeloc;
00123 StSvtHybridCollection *m_driftCurve;
00124 StSvtT0 *m_t0;
00125
00126 StSvtAnalysedHybridClusters *mSvtBigHit;
00127
00128 StSvtData *mSvtData;
00129 StSvtGeantHits *mSvtGeantHit;
00130 TH2F *m_x_vs_y;
00131 int mNwaf_no;
00132 TH2F **m_waf_no;
00133
00134 TNtuple *m_ClusTuple;
00135 TFile *m_hfile;
00136
00137
00138 TH1F *mTimeHitResolution;
00139 TH1F *mAnodeHitResolution;
00140 TH1F *mXHitResolution;
00141 TH1F *mYHitResolution;
00142 TH1F *mZHitResolution;
00143 TH2F *mHitResolution;
00144
00145 char* filenameN;
00146 char* filenameC;
00147
00148 ClassDef(StSvtHitMaker,0)
00149
00150 };
00151
00152
00153 #endif