GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TGEBEvent.h
Go to the documentation of this file.
1 #ifndef _TGEBEVENT_H_
2 #define _TGEBEVENT_H_
3 
4 #include "TRawEvent.h"
5 
6 class TMode3;
7 
8 class TGEBEvent : public TRawEvent {
9 public:
10  TGEBEvent();
11  TGEBEvent(const TRawEvent&);
12  virtual ~TGEBEvent();
13 
14  long GetTimestamp() const;
15 
16  const char* GetPayload() const;
18 
19  virtual void Clear(Option_t *opt ="");
20  virtual void Print(Option_t *opt ="") const;
21 
22  ClassDef(TGEBEvent, 0);
23 };
24 
25 class TGEBMode3Event : public TObject {
26 public:
28  : fEvent(event) {
30  }
31 
32  TGEBEvent& GetFragment(size_t fragnum) { return fragments[fragnum]; }
33  size_t NumFragments() const { return fragments.size(); }
34 
35 private:
36  void BuildFragments();
37 
39  std::vector<TGEBEvent> fragments;
40 
42 };
43 
44 #endif /* _TGEBEVENT_H_ */