StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBTofMaker.h
1 #ifndef STAR_StBTofMaker_H
2 #define STAR_StBTofMaker_H
3 
4 /***************************************************************************
5  *
6  * $Id: StBTofMaker.h,v 1.3 2015/07/28 22:50:03 smirnovd Exp $
7  * StBTofMaker - class to fille the StEvent from DAQ reader
8  *--------------------------------------------------------------------------
9  *
10  ***************************************************************************/
11 #include "StMaker.h"
12 #include <vector>
13 #ifndef ST_NO_NAMESPACES
14 using std::vector;
15 #endif
16 
17 #define VHRBIN2PS 24.4140625 // Very High resolution mode, pico-second per bin
18  // 1000*25/1024 (ps/chn)
19 #define HRBIN2PS 97.65625 // High resolution mode, pico-second per bin
20  // 97.65625= 1000*100/1024 (ps/chn)
21 
22 class StEvent;
23 class StBTofCollection;
24 class StBTofRawHit;
26 class StBTofHit;
28 #include "StBTofUtil/StBTofSortRawHit.h"
29 class StBTofINLCorr;
30 class StBTofDaqMap;
31 
32 
33 #if !defined(ST_NO_TEMPLATE_DEF_ARGS) || defined(__CINT__)
34 typedef vector<Int_t> IntVec;
35 typedef vector<UInt_t> UIntVec;
36 #else
37 typedef vector<Int_t, allocator<Int_t>> IntVec;
38 typedef vector<UInt_t, allocator<UInt_t>> UIntVec;
39 #endif
40 
41 
46 class StBTofMaker : public StMaker
47 {
48  private:
49  StEvent *mStEvent;
50 
51  void fillBTofHitCollection();
52 
53  Int_t mNValidTrays;
54  unsigned int mTriggerTimeStamp[4];
55  StBTofCollection* mBTofCollection;
56  StBTofRawHitCollection* mRawHitCollection;
57  StBTofHitCollection* mHitCollection;
58  StBTofDaqMap* mBTofDaqMap;
59  StBTofINLCorr* mBTofINLCorr;
60  StBTofSortRawHit* mBTofSortRawHit;
61 
62  static const Int_t mNVPD = 19;
63  static const Int_t mWestVpdTrayId = 121;
64  static const Int_t mEastVpdTrayId = 122;
65 
66  Bool_t mDoINLCorr;
67  Bool_t mDoTriggerCut;
68 
69  protected:
71 
72  public:
73 
75  StBTofMaker(const char *name="tof_raw");
76 
77  ~StBTofMaker() ;
78 
79  void Clear(Option_t* option="");
80  Int_t Init();
81  Int_t InitRun(Int_t);
82  Int_t FinishRun(Int_t);
83  Int_t Finish();
84  Int_t Make();
85 
86  void doINLCorr(const Bool_t val=kTRUE);
87  void doTriggerCut(const Bool_t val=kTRUE);
88 
90  virtual const char *GetCVS() const
91  {
92  static const char cvs[]="Tag $Name: $Id: built " __DATE__ " " __TIME__ ; return cvs;
93  }
94 
95  ClassDef(StBTofMaker, 1)
96 };
97 
98 inline void StBTofMaker::doINLCorr(const Bool_t val) { mDoINLCorr = val; }
99 inline void StBTofMaker::doTriggerCut(const Bool_t val) { mDoTriggerCut = val; }
100 
101 #endif
Int_t Make()
virtual const char * GetCVS() const
cvs
Definition: StBTofMaker.h:90
StBTofCollection * GetBTofCollection()
Switch to turn on trigger cut.
Int_t Finish()
void Clear(Option_t *option="")
User defined functions.
Definition: StBTofMaker.cxx:48
StBTofMaker(const char *name="tof_raw")
Default constructor.
Definition: StBTofMaker.cxx:30