HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoEvent.h
Go to the documentation of this file.
1 #ifndef HARPOEVENT_H
2 #define HARPOEVENT_H
3 
5 //
6 // HarpoEvent
7 //
8 // Description of the event
9 //
10 
11 #include "TObject.h"
12 #include "TMatrixD.h"
13 
14 #include "HarpoDetSet.h"
15 #include "HarpoRecoEvent.h"
16 #include "HarpoDetEvent.h"
17 #include "HarpoEventHeader.h"
18 #include "HarpoRunHeader.h"
19 #include "HarpoDccMap.h"
20 
21 
22 /* typedef struct EventHeader_t {
23  UInt_t eventSize;
24  UInt_t eventNumb;
25 } EventHeader_t;
26 */
27 
28 // Just PlaceHolder for RawEvent objects
29 class HarpoEvent : public TObject {
30 
31 public:
32  HarpoEvent();
33  HarpoEvent(const HarpoEvent &event);
34  virtual ~HarpoEvent();
35 
36  void SetHeader(HarpoEventHeader *data);
38 
39  void SetDetEvent(HarpoDetEvent *event,ULong_t plane=XDCC);
40  HarpoDetEvent *GetDetEvent(Long_t plane=XDCC);
41 
44 
47  if(fRecoEvent==NULL) fRecoEvent = new HarpoRecoEvent();
48  return fRecoEvent;
49  }
50  Bool_t HasRecoEvent(){return (fRecoEvent != NULL);}
51 
52  void print();
53 
54  // void SetDccMap(HarpoDccMap *data,Long_t plane=XDCC);
55  HarpoDccMap *GetDccMap(Long_t plane=XDCC);
56 
57  //void print();
58 
59  // Bool_t IsZeroSuppressed(Long_t plane=XDCC); //! Data Format
60  ULong_t GetTimeStamp(Long_t plane=XDCC);
61 
62  void ResetEvent();
63 
64 protected:
65  HarpoEventHeader *fEventHeader; //-> Top level header
67 
69 
71 
72  ClassDef(HarpoEvent,1) //HarpoEvent not defined new cluss members
73 };
74 
75 #endif
HarpoRecoEvent * SetRecoEvent(HarpoRecoEvent *evt)
Definition: HarpoEvent.h:45
void print()
Definition: HarpoEvent.cxx:123
HarpoRecoEvent * GetRecoEvent()
Definition: HarpoEvent.h:46
A virtual class store event data for un detector.
Definition: HarpoDetEvent.h:32
void ResetEvent()
Definition: HarpoEvent.cxx:165
A class hold HARPO run iformation.
Object containing the reconstruction information for one event (with array of HarpoRecoClusters Harpo...
HarpoRunHeader * GetRunHeader()
Definition: HarpoEvent.h:43
FullEvent Header not scecific to the detectors The class is ....
unpacked dcc data The class contains the data map for DCC or Feminos The data is stored as a 2D TMatr...
Definition: HarpoDccMap.h:29
HarpoDetEvent * GetDetEvent(Long_t plane=XDCC)
Definition: HarpoEvent.cxx:93
void SetHeader(HarpoEventHeader *data)
Definition: HarpoEvent.cxx:75
void SetRunHeader(HarpoRunHeader *rh)
Definition: HarpoEvent.h:42
HarpoRunHeader * fRunHeader
Definition: HarpoEvent.h:70
Unknown Detector.
Definition: HarpoDet.h:18
HarpoEventHeader * fEventHeader
Definition: HarpoEvent.h:65
HarpoEventHeader * GetHeader()
Definition: HarpoEvent.cxx:80
A class store HARPO row event data and header. Provide access metods to the row event data...
Definition: HarpoEvent.h:29
virtual ~HarpoEvent()
Definition: HarpoEvent.cxx:51
ULong_t GetTimeStamp(Long_t plane=XDCC)
Definition: HarpoEvent.cxx:149
void SetDetEvent(HarpoDetEvent *event, ULong_t plane=XDCC)
Definition: HarpoEvent.cxx:85
HarpoDccMap * GetDccMap(Long_t plane=XDCC)
Definition: HarpoEvent.cxx:108
Bool_t HasRecoEvent()
Definition: HarpoEvent.h:50
HarpoDetEvent ** fDetEvent
Definition: HarpoEvent.h:66
HarpoRecoEvent * fRecoEvent
list of raw events
Definition: HarpoEvent.h:68