StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtFlowPicoReader.h
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 
12 
14 {
15  public:
16  StHbtFlowPicoReader(string to_do_list_inp, int nevents);
18  using StHbtEventReader::Init; // do not hide it
19  int Init(); /* read the list of files to be processed */
20  StHbtEvent* ReturnHbtEvent(); /* if no StHbtEvent can be returned,
21  return a null pointer. */
22  StHbtString Report();
23  int GetNevents(); /* returns events read from input */
24  // int WriteHbtEvent(StHbtEvent*);
25 
26  private:
27  string to_do_list_inp; // file name with the list of input files
28  int crrnt_eventI; // number of c
29  int NEVENTS; // number of events to analyze as requested by user
30  long Nentries;
31  int crrnt_entry;
32  int NEvt_in_chain;
33  int nb; // number of bytes in the current entry
34  int Nbytes; // running sum of nb
35  flow_pDST* pDST;
36  TChain* DST_Chain;
37  vector<string> L_runs;
38  ClassDef(StHbtFlowPicoReader,1)
39 };
40 
41 inline int StHbtFlowPicoReader::GetNevents() {return NEvt_in_chain;}
42 #endif