StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRtsReaderMaker.h
1 #ifndef STAR_StRtsReaderMaker_H
2 #define STAR_StRtsReaderMaker_H
3 
4 /***************************************************************************
5  *
6  * $Id: StRtsReaderMaker.h,v 1.10 2014/08/06 11:42:55 jeromel Exp $
7  * StRtsReaderMaker - class to fille the StEvewnt from DAQ reader
8  *--------------------------------------------------------------------------
9  *
10  ***************************************************************************/
11 
12 #include "StMaker.h"
13 
14 class daqReader;
15 class daq_dta;
16 class StRtsTable;
17 class StStreamFile;
18 
20 {
21  private:
22  daqReader *fRtsReader;
23  StStreamFile *fDatReader;
24  StRtsTable *fRtsTable;
25  TString fLastQuery;
26  daq_dta *fBank;
27 
28  protected:
29  TDataSet *FillTable();
30  void FillDaqHeader();
31  StRtsTable *InitTable(const char *detName,const char *bankName);
32  daqReader *InitReader();
33 
34  public:
35 
36  StRtsReaderMaker(const char *name="rts_reader");
37  ~StRtsReaderMaker() ;
38  TDataSet *FindDataSet (const char* logInput,const StMaker *uppMk,
39  const StMaker *dowMk) const;
40  virtual void Clear(Option_t *option="");
41  virtual Int_t Make();
42  virtual Int_t Init();
43  virtual Int_t InitRun(int run) ;
44  virtual void SetDaqReader(daqReader *reader);
45  virtual void SetDatReader(StStreamFile *reader);
46 
47  // cvs
48  virtual const char *GetCVS() const
49  {
50  static const char cvs[]="Tag $Name: $Id: built " __DATE__ " " __TIME__ ; return cvs;
51  }
52 
53  ClassDef(StRtsReaderMaker, 0) //StRtsReaderMaker - class to fill the StEvent from DAQ reader
54 };
55 
56 #endif
virtual Int_t Make()
virtual void Clear(Option_t *option="")
User defined functions.