StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFttRawHitMaker.h
1 /***************************************************************************
2  *
3  * StFttRawHitMaker.h
4  *
5  * Author: jdb 2021
6  ***************************************************************************
7  *
8  * Description: StFttRawHitMaker - class to fill the StEvent from DAQ reader
9  *
10  ***************************************************************************/
11 #ifndef STFTTRAWHITMAKER_H
12 #define STFTTRAWHITMAKER_H
13 
14 #include "StRTSBaseMaker.h"
15 
16 #include <vector>
17 
18 #ifdef __CINT__
19 struct stgc_vmm_t;
20 #else
21 #include <RTS/src/DAQ_STGC/daq_stgc.h>
22 #endif
23 
24 class StEvent;
25 class StFttCollection;
26 
28 
29 public:
30  StFttRawHitMaker( const char* name = "stgc" );
31 
32  Int_t Init();
33  Int_t InitRun( Int_t );
34  Int_t FinishRun( Int_t );
35  Int_t Finish();
36  Int_t Make();
37 
38  void setReadMuDst( int r = 0 ) { mReadMuDst = r; }
39 
40  void PrintTheVMM( stgc_vmm_t * the_vmm ){
41  u_char feb = the_vmm[0].feb_vmm >> 2 ; // feb [0..5]
42  u_char vm = the_vmm[0].feb_vmm & 3 ; // VMM [0..3]
43 
44  printf(" FEB %d:%d, ch %02d: ADC %d, BCID %d, TB %d, BCID_Delta %d\n",feb,vm,the_vmm[0].ch,the_vmm[0].adc,the_vmm[0].bcid, the_vmm[0].tb, the_vmm[0].bcid_delta) ;
45  }
46 
47 private:
48  StEvent* mEvent;
49  StFttCollection* mFttCollection;
50  Int_t mRunYear;
51  Bool_t mDebug;
52  Int_t mReadMuDst;
53 
54  int readMuDst();
55 
56  ClassDef( StFttRawHitMaker, 1 )
57 };
58 
59 #endif // STFTTRAWHITMAKER_H
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...