StHbtFlowPicoReader.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef StHbtFlowPicoReader_h
  2. #define StHbtFlowPicoReader_h
  3. #include "StHbtMaker/Base/StHbtEventReader.hh"
  4. #include "StHbtMaker/Infrastructure/StHbtString.hh"
  5. #include "flow_pDST.h"
  6. #include <vector>
  7. #include <string.h>
  8. /* http://www.star.bnl.gov/STAR/comp/pkg/dev/StRoot/StHbtMaker/doc/#Reader
  9. outlines the requirements for this type of class.
  10. */
  11. class StHbtFlowPicoReader : public StHbtEventReader
  12. {
  13. public:
  14. StHbtFlowPicoReader(string to_do_list_inp, int nevents);
  15. ~StHbtFlowPicoReader();
  16. using StHbtEventReader::Init; // do not hide it
  17. int Init(); /* read the list of files to be processed */
  18. StHbtEvent* ReturnHbtEvent(); /* if no StHbtEvent can be returned,
  19. return a null pointer. */
  20. StHbtString Report();
  21. int GetNevents(); /* returns events read from input */
  22. // int WriteHbtEvent(StHbtEvent*);
  23. private:
  24. string to_do_list_inp; // file name with the list of input files
  25. int crrnt_eventI; // number of c
  26. int NEVENTS; // number of events to analyze as requested by user
  27. long Nentries;
  28. int crrnt_entry;
  29. int NEvt_in_chain;
  30. int nb; // number of bytes in the current entry
  31. int Nbytes; // running sum of nb
  32. flow_pDST* pDST;
  33. TChain* DST_Chain;
  34. vector<string> L_runs;
  35. ClassDef(StHbtFlowPicoReader,1)
  36. };
  37. inline int StHbtFlowPicoReader::GetNevents() {return NEvt_in_chain;}
  38. #endif