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 #ifndef STTOFSIMMAKER_HH
00031 #define STTOFSIMMAKER_HH
00032 #include "StMaker.h"
00033
00034 class StEvent;
00035 class TH1F;
00036 class StTofCalibration;
00037 class StTofSimParam;
00038 class StTofGeometry;
00039 class StTofMCSlat;
00040 struct g2t_ctf_hit_st;
00041
00042 class StTofSimMaker : public StMaker{
00043 private:
00044 StTofGeometry* mGeomDb;
00045 StTofCalibration* mCalibDb;
00046 StTofSimParam* mSimDb;
00047
00048 StEvent *mEvent;
00049 TH1F* mdE;
00050 TH1F* mdS;
00051 TH1F* mNumberOfPhotoelectrons;
00052 TH1F* mT;
00053 TH1F* mTime;
00054 TH1F* mTime1;
00055 TH1F* mPMlength;
00056 TH1F* mAdc;
00057 TH1F* mTdc;
00058
00059
00060 protected:
00061 StTofMCSlat detectorResponse(g2t_ctf_hit_st*);
00062 void fillRaw(void);
00063 void electronicNoise(void);
00064 void fillEvent();
00065 float slatResponseExp(float&);
00066
00067 public:
00068 StTofSimMaker(const char *name="TofSim");
00069 virtual ~StTofSimMaker();
00070 virtual Int_t Init();
00071 Int_t InitRun(int);
00072 Int_t FinishRun(int);
00073 virtual Int_t Make();
00074 virtual Int_t Finish();
00075
00076 virtual const char *GetCVS() const
00077 {static const char cvs[]="Tag $Name: $ $Id: StTofSimMaker.h,v 1.4 2003/09/10 19:47:38 perev Exp $ built "__DATE__" "__TIME__ ; return cvs;}
00078
00079 ClassDef(StTofSimMaker,0)
00080 };
00081 #endif