StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBemcStatusMaker.h
1 #ifndef STELECTRONBEMCSTATUSMAKER_H
2 #define STELECTRONBEMCSTATUSMAKER_H
3 
4 #include "StMaker.h"
5 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
6 class StEEmcDb;
7 
8 #include "TFile.h"
9 #include "TTree.h"
10 #include "TH2.h"
11 
12 #include <string>
13 using namespace std;
14 
15 class StBemcStatusMaker : public StMaker {
16  public:
17  StBemcStatusMaker(StMuDstMaker* mudstmaker);
19 
20  virtual Int_t Init();
21  virtual Int_t Make();
22  virtual Int_t Finish();
23 
24  void setOutputDirectory(const Char_t *directory){mOutputDirectory = directory;}
25  void setOutputFilePrefix(const Char_t *prefix){mOutputFilePrefix = prefix;}
26 
27  //private:
28  TH2F* getBemcAdcHist(Int_t runnumber);
29  TH2F* getBemcEnergyHist(Int_t runnumber);
30  TH2F* getEemcAdcHist(Int_t runnumber);
31  TH2F* getEemcEnergyHist(Int_t runnumber);
32  private:
33  string mOutputDirectory;
34  string mOutputFilePrefix;
35  TFile* mOutputFile;
36  TTree* mOutputTree;
37  Float_t mFillNumber;
38  Int_t mEemcStatusBits[720];
39  Int_t mEemcFailBits[720];
40  Int_t mBemcStatusBits[4800];
41  Int_t mTheDate;
42  Int_t mTheTime;
43  Bool_t mFirstEvent;
44  StMuDstMaker* mMuDstMaker;
45  StEEmcDb* eeDb;
46 
47  ClassDef(StBemcStatusMaker,0)
48 };
49 
50 #endif