HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoDccEvent.h
Go to the documentation of this file.
1 #ifndef HARPODCCEVENT_H
2 #define HARPODCCEVENT_H
3 
5 //
6 // HarpoDccEvent
7 //
8 // Description of the event
9 //
10 
11 #include "TObject.h"
12 #include "HarpoDetEvent.h"
13 
14 #include "HarpoDet.h"
15 #include "HarpoDccFrame.h"
16 #include "HarpoDccMap.h"
17 #include "HarpoDccDecode.h"
18 #include <list>
19 
20 #define EVENT_BUFFER_SIZE 2000000
21 
22 class HarpoDccEvent : public HarpoDetEvent {
23 
24 public:
25  HarpoDccEvent();
26  virtual ~HarpoDccEvent();
27  void SetPlane(Int_t plane) { fDet = plane; }
28 
29  void SetHeader(UShort_t *data);
30  void SetHeader(UInt_t len, UInt_t evnum);
31 
32  void SetData(UShort_t *data,size_t dlen=EVENT_BUFFER_SIZE);
33  // void ResetData();
34  Int_t GetPLane() { return fDet; }
35 
36  UShort_t *GetData();
37 
38  HarpoDccMap *GetMap(); // Ruturn pointer to decoded data Map
39  void SetMap(HarpoDccMap* map){fEventMap = map;}
40 
41  void print() const;
42 
43  Bool_t IsZeroSuppressed(Int_t after=0); // Data Format
44  void SetZeroSuppressed(Bool_t val){fZeroSuppr = val;} // Data Format
45  Bool_t IsPlaneX() { return fDet == 0; } // Which PLane X or Y
46  ULong_t GetTimeStamp(Int_t after=0);
47 
49 
50  // Debug data
51  UShort_t *fEventData;
52  std::list<HarpoDccFrame> fFrames; // List of Dcc Frames for this event
53  Bool_t UnPackData(); // Convert dcc data to Detector Map
54 
55 private:
56 
57  HarpoDccMap *fEventMap; //-> class HarpoEvent must delete map object
58 
60 
61  Bool_t fZeroSuppr;
62  ULong_t fTimeStamp;
63 
64  ClassDef(HarpoDccEvent,1) //Event structure
65 };
66 
67 #endif
Bool_t fZeroSuppr
we will not save it in Tree
Definition: HarpoDccEvent.h:61
#define EVENT_BUFFER_SIZE
Definition: HarpoDccEvent.h:20
A virtual class store event data for un detector.
Definition: HarpoDetEvent.h:32
Bool_t UnPackData()
void SetZeroSuppressed(Bool_t val)
Definition: HarpoDccEvent.h:44
HarpoDccMap * fEventMap
Definition: HarpoDccEvent.h:57
virtual ~HarpoDccEvent()
void print() const
void SetHeader(UShort_t *data)
UShort_t * fEventData
Definition: HarpoDccEvent.h:51
ULong_t GetTimeStamp(Int_t after=0)
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
Int_t GetPLane()
Definition: HarpoDccEvent.h:34
HarpoDccDecode * decoder
Definition: HarpoDccEvent.h:59
A class which define DCC channel mapping.
Bool_t IsPlaneX()
Definition: HarpoDccEvent.h:45
void SetPedestals(HarpoPedestal *obj)
Ste/Get Pedstal object.
Definition: HarpoDccMap.h:67
void SetPlane(Int_t plane)
Definition: HarpoDccEvent.h:27
ULong_t fTimeStamp
Definition: HarpoDccEvent.h:62
UShort_t * GetData()
void SetMap(HarpoDccMap *map)
Definition: HarpoDccEvent.h:39
std::list< HarpoDccFrame > fFrames
Event data buffer.
Definition: HarpoDccEvent.h:52
HarpoDccMap * GetMap()
Bool_t IsZeroSuppressed(Int_t after=0)
void SetPedestals(HarpoPedestal *p)
Definition: HarpoDccEvent.h:48
void SetData(UShort_t *data, size_t dlen=EVENT_BUFFER_SIZE)
A class store HARPO EVENT : header and row data. Its provide also the methods for access to this data...
Definition: HarpoDccEvent.h:22