StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFttHitCalibMaker.h
1 #ifndef STAR_StFttHitCalibMaker_H
2 #define STAR_StFttHitCalibMaker_H
3 
4 
5 /***************************************************************************
6  *
7  * $Id: StFttHitCalibMaker.h,v 0.1 2017/02/21 17:50:32 tlusty Exp $
8  * StFttHitCalibMaker - class to fille the StEvent from DAQ reader
9  *--------------------------------------------------------------------------
10  *
11  ***************************************************************************/
12 #include "StMaker.h"
13 
14 // ROOT
15 #include "TH1.h"
16 #include "TH2.h"
17 #include "TH2Poly.h"
18 #include "TTree.h"
19 #include "TCanvas.h"
20 #include "TString.h"
21 
22 // STL
23 #include <vector>
24 
25 #include "HitCalibHelper.h"
26 
27 class StEvent;
28 class StFttCollection;
29 class StFttRawHit;
30 class StFttDb;
31 
33 {
34 private:
35 
36 public:
37 
39  StFttHitCalibMaker(const char *name="fttHitCalib");
41 
42  Int_t Init();
43  Int_t InitRun(Int_t);
44  Int_t FinishRun(Int_t);
45  Int_t Finish();
46  Int_t Make();
47 
48  void WriteCalibrationToPlainText();
49 
50  enum CalibMode {
51  Live = 0,
52  Production = 1,
53  Calibration = 2
54  };
55 
56  void SetMode( StFttHitCalibMaker::CalibMode mode ){
57  mCalibMode = mode;
58  }
59 
60  StEvent* mEvent;
61  StFttCollection* mFttCollection;
62  StFttDb* mFttDb;
63  HitCalibHelper* mHelper;
64  StFttHitCalibMaker::CalibMode mCalibMode;
65 
66  bool mDebug = false;
67 
68  ClassDef(StFttHitCalibMaker, 1)
69 
70 };
71 
72 #endif
StFttHitCalibMaker(const char *name="fttHitCalib")
Default constructor.