StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtAsciiReader.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  * ASCII files.
11  *
12  ***************************************************************************
13  *
14  *
15  **************************************************************************/
16 
17 #ifndef StHbtAsciiReader_hh
18 #define StHbtAsciiReader_hh
19 
20 //VP class ifstream;
21 //VP class ofstream;
22 class StHbtEvent;
23 
24 #include "StHbtMaker/Infrastructure/StHbtString.hh"
25 #include "StHbtMaker/Base/StHbtEventReader.hh"
26 
27 
29 
30 private:
31  unsigned short mStHbtEventVersion;
32  unsigned short mStHbtTrackVersion;
33  unsigned short mStHbtV0Version;
34 
35  ifstream* mInputStream;
36  ofstream* mOutputStream;
37  const char* mFileName;
38 
39 public:
41  StHbtAsciiReader(char* FileName);
43 
44  // generic StHbtEventReader methods
45  //StHbtString Report();
46  StHbtEvent* ReturnHbtEvent();
47  int WriteHbtEvent(StHbtEvent*);
48  int Init(const char* ReadWrite, StHbtString& Message);
49  void Finish();
50 
51  // methods special to this Reader
52  void SetFileName(char* file);
53 #ifdef __ROOT__
54  ClassDef(StHbtAsciiReader, 0)
55 #endif
56 };
57 
58 inline void StHbtAsciiReader::SetFileName(char* file){mFileName=file;}
59 
60 
61 #endif
int Init(const char *ReadWrite, StHbtString &Message)
temp += this->Report();