StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtGstarTxtReader.h
1 /***************************************************************************
2  *
3  *
4  *
5  * Author: Mike Lisa, Ohio State, lisa@mps.ohio-state.edu
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * This is the HbtEventReader class to be used when reading
10  * event-generator (e.g. mevsim) files in the GSTAR text format.
11  *
12  ***************************************************************************
13  *
14  *
15  **************************************************************************/
16 
17 #ifndef StHbtGstarTxtReader_hh
18 #define StHbtGstarTxtReader_hh
19 
20 class StEvent;
21 //VP class ifstream;
22 
23 #ifdef __ROOT__
24 #include "StMaker.h"
25 #endif
26 #include "StHbtMaker/Infrastructure/StHbtString.hh"
27 #include "StHbtMaker/Base/StHbtEventReader.hh"
28 
30 
31 private:
32  ifstream* mInputStream;
33  const char* mFileName;
34 
35 public:
37  StHbtGstarTxtReader(char* FileName);
39 
40  // generic StHbtEventReader methods
41  StHbtEvent* ReturnHbtEvent();
42  StHbtString Report();
43  // virtual int WriteHbtEvent(StHbtEvent*);
44  int Init(const char* ReadWrite, StHbtString& Message);
45  void Finish();
46 
47  // methods special to this Reader
48  void SetFileName(char* file);
49 #ifdef __ROOT__
50 ClassDef(StHbtGstarTxtReader,0)
51 #endif
52 };
53 
54 inline void StHbtGstarTxtReader::SetFileName(char* file){mFileName=file;}
55 
56 
57 #endif