StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFmsHitMaker.h
1 #ifndef ST_FMS_HIT_MAKER_H
2 #define ST_FMS_HIT_MAKER_H
3 
18 //modified by Yuxi Pan 03/28/2013
19 class StFmsDbMaker;
20 class StFmsCollection;
21 class StMuFmsCollection;
22 
23 #include "TMatrix.h"
24 #include "StMaker.h"
25 using namespace std;
26 
27 class StFmsHitMaker : public StMaker {
28 public:
29  StFmsHitMaker(const char* name = "StFmsHitMaker");
30  ~StFmsHitMaker();
31 
32  void Clear(Option_t* option = "");
33  Int_t Init();
34  Int_t InitRun(Int_t runNumber); //called by StMaker when switch to a new run#
35  Int_t Make();
36  Int_t Finish();
37 
38  //For Time Dep Corr based on LED
39  void SetTimeDepCorr(int correct=0) {mTimeDepCorr=correct;} //Use Time Dep. Corrections
40  void SetTowerRej(int rej=1) {mTowerRej=rej;} //Use Tower Rejection mode //!
41 
42  //Correcting ADC zero suppression done wrong online
43  void SetCorrectAdcOffByOne(int v=1) {mCorrectAdcOffByOne=v;}
44 
47  void SetReadMuDst(int v=1) {mReadMuDst=v;} //Set to read MuDst
48 
49  TMatrix** GetEnergyMatrices();
50  Bool_t Legal(Int_t iew,Int_t nstb,Int_t row0,Int_t col0);
51  virtual const char *GetCVS() const
52  {static const char cvs[]="Tag $Name: $ $Id: StFmsHitMaker.h,v 1.5 2018/01/12 20:05:19 akio Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
53 
54 private:
55  StFmsDbMaker* mFmsDbMaker;
56  StFmsCollection* mFmsCollection;
57  StMuFmsCollection* mMuFmsColl;
58  Int_t mCorrectAdcOffByOne=1;
59  Int_t readMuDst();
60  Int_t mReadMuDst=0;
61  Int_t mTimeDepCorr=0;
62  Int_t mTowerRej=0;
63  Int_t mCurrentRunNumber=0;
64  ClassDef(StFmsHitMaker,1);
65 };
66 
67 #endif
void SetReadMuDst(int v=1)
Definition: StFmsHitMaker.h:47
StFmsHitMaker.
Definition: StFmsHitMaker.h:27