Diana Software
MRootFileReader.hh
Go to the documentation of this file.
1 
69 #ifndef _M_ROOT_FILE_READER_H_
70 #define _M_ROOT_FILE_READER_H_
71 
72 #include "QRootFileReaderBase.hh"
73 #include "QDiana.hh"
74 #include <string>
75 #include <map>
76 
77 
78 class QChain;
79 class TEntryList;
80 class TFile;
81 class TBranch;
82 
83 
85 
86 public:
93  virtual void Init(Diana::QEventAssembler& eva);
94 
101  virtual bool Do(Diana::QEventAssembler& eva);
102 
108  virtual void Done();
109 
111  const QError& JumpToEvent(Long64_t event);
112 
113 private:
115  TFile* fRootInput;
117  // std::string fCutsFile;
119  TEntryList *fEntryList;
121  Long64_t fEntryListEntry;
123  Long64_t fFileCounter;
124 
125  friend class MLightRootFileReader;
126 };
127 
128 #endif
Reader for diana and apollo root files.
Long64_t fFileCounter
Variable for storing file counter in order to check if file changes.
virtual void Init(Diana::QEventAssembler &eva)
Init method is called before event loop.
TFile * fRootInput
Pointer to the currently open ROOT file.
friend class MLightRootFileReader
virtual bool Do(Diana::QEventAssembler &eva)
Do method is called for each event.
const QError & JumpToEvent(Long64_t event)
Jump to particular event in the loop.
virtual void Done()
Done method is called after event loop.
TEntryList * fEntryList
???
Long64_t fEntryListEntry
Entry in the loop if a Cut is specified.
TChain used in diana.
Definition: QChain.hh:23
error class with error type and description
Definition: QError.hh:115
Base class for readers for diana and apollo root files.