StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFpsRawDaqReader.h
1 /*
2  *
3  * \class StFpsRawMaker
4  *
5  */
6 
7 #ifndef STAR_StFpsRawDaqReader_HH
8 #define STAR_StFpsRawDaqReader_HH
9 
10 #include "StRoot/St_base/Stypes.h"
11 #include "StMaker.h"
12 class daqReader;
13 class StFmsDbMaker;
14 
15 class StEvent;
16 class StTriggerData;
17 class StFmsCollection;
18 
19 class StFpsRawDaqReader : public StMaker {
20  public:
21  StFpsRawDaqReader( const Char_t* name = "fpsRawDaqReader", const Char_t *daqFileName = "");
22  virtual ~StFpsRawDaqReader();
23 
24  void setFilename( std::string filename );
25 
26  virtual Int_t Init();
27  virtual Int_t Make();
28  virtual void Clear( Option_t *opts = "" );
29 
30  void setRun(int v) {mRun=v;}
31  virtual Int_t prepareEnvironment();
32  unsigned long long trgMask(){return mTrgMask;}
33  unsigned int rccFps(){return mRccFps;}
34  unsigned int rccFpost(){return mRccFpost;}
35  StTriggerData* trgdata(){return mTrg;}
36 
37  // Get CVS
38  virtual const char *GetCVS() const;
39 
40  protected:
41  Int_t mDate, mTime;
42  StEvent *mEvent;
43  StFmsCollection *mFmsCollectionPtr;
44 
45  private:
46  std::string mDaqFileName, mDbMkrName;
47  daqReader *mRdr;
48  StFmsDbMaker *mFmsDbMkr;
49  unsigned int mRun=0;
50  StTriggerData* mTrg;
51 
52  unsigned long long mTrgMask;
53  unsigned int mRccFps;
54  unsigned int mRccFpost;
55 
56  ClassDef(StFpsRawDaqReader,1);
57 };
58 
59 // inline functions
60 inline void StFpsRawDaqReader::setFilename( std::string filename ){ mDaqFileName = filename; };
61 inline const char *StFpsRawDaqReader::GetCVS() const {
62  static const char cvs[] = "Tag $Name: $ $Id: StFpsRawDaqReader.h,v 1.7 2019/03/14 15:29:15 akio Exp $ built " __DATE__ " " __TIME__ ;
63  return cvs;
64 };
65 
66 #endif
67 
68 /*
69  * $Id: StFpsRawDaqReader.h,v 1.7 2019/03/14 15:29:15 akio Exp $
70  * $Log: StFpsRawDaqReader.h,v $
71  * Revision 1.7 2019/03/14 15:29:15 akio
72  * fixing wrong comit
73  *
74  * Revision 1.5 2017/02/18 18:25:40 akio
75  * adding RCC counter reading from meta
76  *
77  * Revision 1.4 2015/08/13 16:45:48 jeromel
78  * Quick fix for spin folks
79  *
80  * Revision 1.3 2015/05/21 18:23:51 akio
81  * *** empty log message ***
82  *
83  * Revision 1.2 2015/02/28 02:58:56 akio
84  * Some bug fixes
85  *
86  * Revision 1.1 2015/02/26 20:26:38 akio
87  * Adding raw daq file (or EVP) reader for FPS (not for offline BFC, but for online use)
88  *
89  */
virtual void Clear(Option_t *opts="")
User defined functions.
virtual Int_t Make()