StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AliStHbtEventReader.h
1 #ifndef AliStHbtEventReader_hh
2 #define AliStHbtEventReader_hh
3 
4 #include "StHbtMaker/Base/StHbtEventReader.hh"
5 #include "StHbtMaker/Infrastructure/StHbtEnumeration.hh"
6 
7 #include "StMaker.h"
8 #include "StChain.h"
9 #include "St_DataSetIter.h"
10 
11 #include "StEvent/StEnumerations.h"
13 
14 
15 
16 #include <string>
17 #include <stdlib.h>
18 //#include <iterator.h>
19 //#include <algo.h>
20 
21 class StHbtEvent;
22 //class Event;
23 class StIOMaker;
24 class TFile;
25 class TTree;
26 class TChain;
27 class AliStHbtEvent;
28 class AliStHbtTrack;
29 
31 
32 private:
33  StIOMaker* mIOMaker;
34 
35  StHbtIOMode mIOMode;
36  string mCurrentFileName;
37  string mDir;
38  string mFile;
39  string mFilter;
40 
41  int mMaxFiles;
42 
43  int mDebug;
44  TChain* mTChain;
45  TFile* mCurrentFile;
46  TTree* mTTree;
47 
48  string mInputDir;
49  AliStHbtEvent* mEvent;
50  StHbtEvent* mHbtEvent;
51 
52  unsigned int mEventIndex;
53 
54  StHbtEvent* read();
55  int initRead(string dir, string file, string filter, int mMaxFiles);
56  int uninitRead();
57 
58  int fillChain(TChain* chain, const char* dir, const char* filter, const int maxFiles);
59  int fillChain(TChain* chain, const char* list, const int maxFiles);
60 
61  protected:
62 
63  public:
64  AliStHbtEventReader(StHbtIOMode mode, StIOMaker* io,
65  const char* dirName, const char* fileName,
66  const char* filter=".", int maxFiles=999);
67 
69 
70  StHbtEvent* ReturnHbtEvent();
71 
72  StHbtString Report();
73 
74  void SetDebug(int);
75 
76 
77  ClassDef(AliStHbtEventReader, 1)
78 };
79 
80 inline void AliStHbtEventReader::SetDebug(int debug) {mDebug=debug;}
81 
82 #endif
83