GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TOrderedRawFile.h
Go to the documentation of this file.
1 #ifndef TORDEREDRAWFILE_H
2 #define TORDEREDRAWFILE_H
3 
4 #include <map>
5 
6 #include "TRawEvent.h"
7 #include "TRawEventSource.h"
8 
10 
11 public:
14 
15  void SetDepth(int depth) { this->depth = depth; }
16  int GetDepth() { return depth; }
17 
18  virtual std::string SourceDescription() const { return unordered->SourceDescription(); }
19  virtual std::string Status() const { return unordered->Status(); }
20  virtual int GetLastErrno() const { return unordered->GetLastErrno(); }
21  virtual std::string GetLastError() const { return unordered->GetLastError(); }
22 
23 private:
24  virtual int GetEvent(TRawEvent& event);
25 
27 
28  int depth;
30  bool finished;
31 
32  int fillqueue();
33 
34  std::multimap<long,TRawEvent> event_queue;
35 
37 };
38 
39 
40 #endif