StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StClusterDisplay.h
1 #ifndef STAR_StClusterDisplay
2 #define STAR_StClusterDisplay
3 #include "StMaker.h"
4 #include <TH2.h>
5 #include "Stiostream.h"
6 #include "TString.h"
7 #include "StEmcRawMaker/defines.h"
8 #include "TCanvas.h"
9 
10 #define N1 5
11 #define N2 3
12 class StEmcGeom;
13 
14 class StClusterDisplay : public StMaker
15 {
16 private:
17 
18 protected:
19  TH1F* mHist1D[N1][MAXDETBARREL];
20  TH2F* mHist2D[N2][MAXDETBARREL];
21  TCanvas* mCanvas[MAXDETBARREL];
22  StEmcGeom* mGeo[MAXDETBARREL];
23  Bool_t mDraw;
24  Float_t mTh[MAXDETBARREL];
25 
26 public:
27 
28  StClusterDisplay(const char *name="Teste");
29  virtual ~StClusterDisplay();
30  virtual Int_t Init();
31  virtual Int_t Make();
32  virtual Int_t Finish();
33  virtual Int_t SaveHist();
34  void setDraw(Bool_t a)
35  {
36  mDraw = a;
37  }
38  void setHitThreshold(Int_t det, Float_t th)
39  {
40  mTh[det-1] = th;
41  }
42 
43  ClassDef(StClusterDisplay, 1)
44 };
45 
46 #endif
virtual Int_t Make()
virtual Int_t Finish()