StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcEqualMaker.h
1 #ifndef STAR_StEmcEqualMaker
2 #define STAR_StEmcEqualMaker
3 #include "StMaker.h"
4 #include "TH2.h"
5 #include "TH1.h"
6 #include "StEmcCalibrationMaker.h"
7 #include "TString.h"
8 #include "TF1.h"
9 #include "StEmcCalibMaker.h"
10 
11 #define MAXTRACK 10000
12 #define MAXBEMC 4
13 #define MAXCHANNEL 18000
14 #define MAXTOWERCHANNEL 18000
15 
17 {
18  protected:
19  TH1F *mA;
20  TH1F *mB;
21  TH1F *mStatus;
22  TH1F *mRefSlopes;
23  TH1F *mRefAmps;
24  TH1F *mSlopes;
25  TH1F *mAmps;
26  TH1F *mADistr;
27  TH1F *mBDistr;
28  TH2F *mSlopesTheta;
29 
30  public:
31 
32  StEmcEqualMaker(const char *name="EmcEqual");
33  virtual ~StEmcEqualMaker();
34  virtual Int_t Init();
35  virtual Int_t Make();
36  virtual Int_t Finish();
37  virtual void Clear(Option_t *option="");
38 
39  void equalize(int=4,int = 2,bool = false);
40  void equalizeRelative(int,int,int=4,bool=false);
41  void equalizeToFunction(int,TF1*);
42 
43  void calcSlopes();
44 
45  void saveEqual(int=0,int=0);
46  void loadEqual(char*);
47 
48  TH1F* getA() { return mA;}
49  TH1F* getB() { return mB;}
50  TH1F* getStatus() { return mStatus;}
51  TH1F* getRefSlopes() { return mRefSlopes;}
52  TH1F* getRefAmps() { return mRefAmps;}
53  TH1F* getSlopes() { return mSlopes;}
54  TH1F* getAmps() { return mAmps;}
55  TH2F* getSlopesTheta() { return mSlopesTheta;}
56 
57  TH1F* getEtaBinSpec(int,int,TH2F* SPEC=0);
58  TH1F* rebin(int,const char *name = "tmp",TH2F* SPEC = NULL);
59 
60  void drawEtaBin(int, int,TH2F* SPEC=0);
61 
62  ClassDef(StEmcEqualMaker, 1)
63 };
64 
65 #endif
virtual Int_t Make()
virtual void Clear(Option_t *option="")
User defined functions.
virtual Int_t Finish()