Cat
Event.h
Go to the documentation of this file.
1 // $Id: Event.h,v 1.6 2008/06/04 08:35:14 fmachefe Exp $
2 #ifndef INCLUDE_EVENT_H
3 #define INCLUDE_EVENT_H 1
4 
5 // Include files
6 #include <vector>
7 
8 // Root Include files
9 #include "TROOT.h"
10 #include "TObject.h"
11 #include "TClonesArray.h"
12 #include "TRefArray.h"
13 #include "TRef.h"
14 
15 #include "EventHeader.h"
16 
23 class Event : public TObject {
24 public:
26  Event( );
27  virtual ~Event( );
28  void setRun ( unsigned long irun ) {
29  EvtHdr.setRun ( irun );
30  }
31  void Clear(Option_t *option ="");
32  void newEvt();
33  void addData( int , int , int );
34  TClonesArray* getData() { return fgData;}
35  ClassDef(Event,1)
36 protected:
37 
38 private:
39  EventHeader EvtHdr;
40  unsigned long nData;
41  TClonesArray *raw; //->
42  static TClonesArray *fgData;
43  TRef fLastData; //reference pointer to last Data
44 };
45 
46 #endif // INCLUDE_EVENT_H
virtual ~Event()
Destructor.
Definition: Event.cpp:35
static TClonesArray * fgData
Definition: Event.h:42
void addData(int, int, int)
Definition: Event.cpp:40
void newEvt()
Definition: Event.cpp:54
TClonesArray * raw
Definition: Event.h:41
void setRun(unsigned long irun)
Definition: Event.h:28
ClassDef(Event, 1) protected unsigned long nData
Definition: Event.h:35
TClonesArray * getData()
Definition: Event.h:34
Event()
Standard constructor.
TRef fLastData
Definition: Event.h:43
Definition: Event.h:23
void Clear(Option_t *option="")
Definition: Event.cpp:48