StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofMuDstEval.h
1 #ifndef StTofMuDstEval_HH
2 #define StTofMuDstEval_HH
3 
4 #ifndef StMaker_H
5 #include "StMaker.h"
6 #endif
7 
8 #define VHRBIN2PS 24.414 // Very High resolution mode, pico-second per bin
9  // 1000*25/1024 (ps/chn)
10 #define HRBIN2PS 97.656 // High resolution mode, pico-second per bin
11  // 97.65625= 1000*100/1024 (ps/chn)
12 
13 
14 class StMuTrack;
15 class StMuEvent;
16 class StMuTofHit;
17 class TRandom;
18 class StMuEvent;
19 class StMuDst;
20 class StFileI;
21 class TChain;
22 class TClonesArray;
23 class StMuDstMaker;
24 class StEvent;
25 class StTofCollection;
26 class StSortTofRawData;
27 class StTofrGeometry;
28 
29 #include "TFile.h"
30 #include "TObject.h"
31 #include "TTree.h"
32 #include "TBranch.h"
33 #include "TClonesArray.h"
34 
35 
36 #include <vector>
37 #ifndef ST_NO_NAMESPACES
38 using std::vector;
39 #endif
40 
41 
42 
43 class StTofMuDstEval : public StMaker {
44 
45  protected:
46 
47  public:
48 
49  StMaker* currentChain;
50  StTofMuDstEval(const char* name = "StTofMuDstEval",
51  StMuDstMaker *maker = 0);
52  ~StTofMuDstEval();
53  void Clear(const char* opt="");
54  Int_t Init();
55 
56 
57  Int_t Make();
58  Int_t Finish();
59 
60  void GetPvpdNHits(int &nEast, int &nWest);
61  Float_t GetUncorrectedTot(StMuTofHit *tofHit);
62  void GetLocalHitPosition(StMuTofHit *tofHit, Double_t* local);
63 
64  private:
65  static const Int_t mNPVPD = 6;
66  static const Int_t mNTOFr5 = 192;
67 
68  StMuDstMaker *mMuDstMaker;
69  StMuDst *mMuDst;
70 
71  StEvent *mEvent;
72  StTofCollection *mTofCollection;
73  StSortTofRawData *mSortTofRawData;
74  StTofrGeometry *mTofrGeom;
75 
76  virtual const char* GetCVS() const
77  {static const char cvs[]="Tag $Name: $ $Id: StTofMuDstEval.h,v 1.2 2014/08/06 11:43:47 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs;}
78 
79  // the following is a ROOT macro that is needed in all ROOT accessible code
80  ClassDef(StTofMuDstEval, 1)
81 
82 };
83 
84 #endif
85