00001
00002
00003
00004
00005
00006 #ifndef EMCASCIIDBMAKER_H
00007 #define EMCASCIIDBMAKER_H
00008
00009
00010 #include "StMaker.h"
00011
00012 class StEEmcDb;
00013 class StEmcGeom;
00014 class StEmcDecoder;
00015
00016 class StEmcAsciiDbMaker : public StMaker {
00017 public:
00018 StEmcAsciiDbMaker();
00019 ~StEmcAsciiDbMaker();
00020
00021 Int_t Init();
00022 virtual Int_t InitRun(int runNo);
00023 Int_t Make();
00024 Int_t Finish();
00025 virtual void Clear(const Option_t* = "");
00026
00027
00028 void SetHList(TObjArray * x){mHList=x;}
00029 void SetGain60Et() { mgain60Et=true; }
00030
00031 private:
00032
00033 StEEmcDb *mEeDb;
00034 StEmcGeom *mGeomB;
00035 StEmcDecoder *mMappB;
00036 bool mgain60Et;
00037
00038 void exportBtowDb(TString fname, int runNo, int yyyymmdd,int hhmmss);
00039 void exportEtowDb(TString fname, int runNo, int yyyymmdd,int hhmmss);
00040
00041 TObjArray *mHList;
00042 enum {mxH=4};
00043 TH1 * hA[mxH];
00044
00045 void initAuxHisto();
00046 ClassDef(StEmcAsciiDbMaker,0)
00047 };
00048
00049 #endif
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061