StHbtGstarTxtReader.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /***************************************************************************
  2. *
  3. * $Id:
  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. * $Log:
  15. **************************************************************************/
  16. #ifndef StHbtGstarTxtReader_hh
  17. #define StHbtGstarTxtReader_hh
  18. class StEvent;
  19. //VP class ifstream;
  20. #ifdef __ROOT__
  21. #include "StMaker.h"
  22. #endif
  23. #include "StHbtMaker/Infrastructure/StHbtString.hh"
  24. #include "StHbtMaker/Base/StHbtEventReader.hh"
  25. class StHbtGstarTxtReader : public StHbtEventReader{
  26. private:
  27. ifstream* mInputStream; //!
  28. const char* mFileName; //!
  29. public:
  30. StHbtGstarTxtReader();
  31. StHbtGstarTxtReader(char* FileName);
  32. ~StHbtGstarTxtReader();
  33. // generic StHbtEventReader methods
  34. StHbtEvent* ReturnHbtEvent();
  35. StHbtString Report();
  36. // virtual int WriteHbtEvent(StHbtEvent*);
  37. int Init(const char* ReadWrite, StHbtString& Message);
  38. void Finish();
  39. // methods special to this Reader
  40. void SetFileName(char* file);
  41. #ifdef __ROOT__
  42. ClassDef(StHbtGstarTxtReader,0)
  43. #endif
  44. };
  45. inline void StHbtGstarTxtReader::SetFileName(char* file){mFileName=file;}
  46. #endif