HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoDetEvent.h
Go to the documentation of this file.
1 #ifndef HARPODETEVENT_H
2 #define HARPODETEVENT_H
3 
5 //
6 // HarpoDetEvent
7 //
8 // Description of the event for a single detector
9 //
10 
11 #include "TObject.h"
12 #include "HarpoDetHeader.h"
13 #include "HarpoDccMap.h"
14 #include "Pmm2Mes.h"
15 #include "Pmm2MesList.h"
16 
17 
18 // No support fr structure in ROOT Tree
19 
20 /* typedef struct EventHeader_t { */
21 /* UInt_t eventSize; */
22 /* UInt_t eventNumb; */
23 /* } EventHeader_t; */
24 
27  public:
28  UInt_t eventSize;
29  UInt_t eventNumb;
30 };
31 
32 class HarpoDetEvent : public TObject {
33 
34 public:
36  virtual ~HarpoDetEvent() {}
37 
38  virtual const EventHeader_t *GetHeader() const
39  { return &fEventHeader;} ;
40 
41  virtual ULong_t GetTimeStamp(Int_t after=0) = 0;
42 
43  void SetDet(Int_t det) {fDet = det;}
44  Int_t GetDet() {return fDet;}
45 
46  /* virtual void Reset() = 0; */
47 
48  // Dummy methods, must be implemented in Dcc, Fenimos, Pmm2 Events
49  virtual HarpoDccMap *GetMap(); // Return pointer to decoded data Map
50  virtual Pmm2MesVect *GetMesurements();
51 
54 
55  void print() const;
56 
57 protected:
58 
59  Int_t fDet;
62 
63 
64  ClassDef(HarpoDetEvent,1) //Event structure
65 };
66 
67 
68 #endif
A class hold HARPO run iformation.
HarpoDetHeader * fRunHeader
Definition: HarpoDetEvent.h:61
Int_t GetDet()
Definition: HarpoDetEvent.h:44
A virtual class store event data for un detector.
Definition: HarpoDetEvent.h:32
virtual ULong_t GetTimeStamp(Int_t after=0)=0
HarpoDetHeader * GetRunHeader()
Definition: HarpoDetEvent.h:53
void SetRunHeader(HarpoDetHeader *rh)
Return pointer to decoded pmm2 data vector.
Definition: HarpoDetEvent.h:52
UInt_t eventSize
Raw Event size.
Definition: HarpoDetEvent.h:28
void SetDet(Int_t det)
Definition: HarpoDetEvent.h:43
EventHeader_t fEventHeader
Definition: HarpoDetEvent.h:60
virtual HarpoDccMap * GetMap()
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
void print() const
Harpo Event Header.
Definition: HarpoDetEvent.h:26
virtual ~HarpoDetEvent()
Definition: HarpoDetEvent.h:36
virtual const EventHeader_t * GetHeader() const
Definition: HarpoDetEvent.h:38
A list of all mesurements in one Event for Pmm2 v2 card The class is place holder for all unpacked me...
Definition: Pmm2MesList.h:19
UInt_t eventNumb
Event number in run.
Definition: HarpoDetEvent.h:29
virtual Pmm2MesVect * GetMesurements()
Return pointer to decoded Pmm2 data vector.