StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEEmcDAQ2Ped.h
1 //Used to generate pedestals from daq file histograms
2 
3 #ifndef StEEmcDAQ2Ped_HH
4 #define StEEmcDAQ2Ped_HH
5 
6 #include "StMaker.h"
7 #include "TFile.h"
8 #include "TH2F.h"
9 
10 class StEEmcDb;
11 #include "StEEmcUtil/EEfeeRaw/EEname2Index.h"
12 #include "StEEmcUtil/EEfeeRaw/EEdims.h"
13 
14 class StEEmcDAQ2Ped : public StMaker {
15 
16  public:
17 
18  StEEmcDAQ2Ped(const char* name, TFile* file);
19  virtual ~StEEmcDAQ2Ped();
20 
21  virtual Int_t Init();
22  virtual Int_t InitRun(int runNo);
23  virtual Int_t Finish();
24  virtual Int_t Make();
25  void initHistos();
26  void ChooseSet(int x){mSet = x;}
27  void MappingFile(TString x){mappingFile = x;}
28 
29  //Histogram
30  void SetHList(TObjArray * x){mHList=x;}
31 
32  private:
33  StEEmcDb* mEeDb;
34  TH1F* hPix[6][140];
35  TH2F* h2D;
36  TObjArray *mHList;
37  TFile* mDAQHistos;
38  TH1* esmd[50];
39  TH1* esmdSec[12][2];
40  TH1* etow[6];
41  TH1* xLowEtow; TH1* xHighEtow; TH1* xDiffEtow; TH2* xCorrEtow;
42  TH1* xLowEsmd; TH1* xHighEsmd; TH1* xDiffEsmd; TH2* xCorrEsmd;
43  TH1* xTestEsmd;
44  int mSet;
45  TString mappingFile;
46  ClassDef(StEEmcDAQ2Ped,1)
47 
48  };
49 
50 
51 #endif
virtual Int_t Make()
virtual Int_t Finish()