00001 #ifndef STAR_StClusterDisplay
00002 #define STAR_StClusterDisplay
00003 #include "StMaker.h"
00004 #include <TH2.h>
00005 #include "Stiostream.h"
00006 #include "TString.h"
00007 #include "StEmcRawMaker/defines.h"
00008 #include "TCanvas.h"
00009
00010 #define N1 5
00011 #define N2 3
00012 class StEmcGeom;
00013
00014 class StClusterDisplay : public StMaker
00015 {
00016 private:
00017
00018 protected:
00019 TH1F* mHist1D[N1][MAXDETBARREL];
00020 TH2F* mHist2D[N2][MAXDETBARREL];
00021 TCanvas* mCanvas[MAXDETBARREL];
00022 StEmcGeom* mGeo[MAXDETBARREL];
00023 Bool_t mDraw;
00024 Float_t mTh[MAXDETBARREL];
00025
00026 public:
00027
00028 StClusterDisplay(const char *name="Teste");
00029 virtual ~StClusterDisplay();
00030 virtual Int_t Init();
00031 virtual Int_t Make();
00032 virtual Int_t Finish();
00033 virtual Int_t SaveHist();
00034 void setDraw(Bool_t a)
00035 {
00036 mDraw = a;
00037 }
00038 void setHitThreshold(Int_t det, Float_t th)
00039 {
00040 mTh[det-1] = th;
00041 }
00042
00043 ClassDef(StClusterDisplay, 1)
00044 };
00045
00046 #endif