HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoFeminosEvent.h
Go to the documentation of this file.
1 #ifndef HARPOFEMINOSEVENT_H
2 #define HARPOFEMINOSEVENT_H
3 
5 //
6 // HarpoFeminosEvent
7 //
8 // Description of the event
9 //
10 
11 #include "TObject.h"
12 #include "HarpoDetEvent.h"
13 
14 #include "HarpoDet.h"
15 #include "HarpoFeminosFrame.h"
16 #include "HarpoDccMap.h"
17 #include "HarpoDccDecode.h"
18 #include <list>
19 
20 #define EVENT_BUFFER_SIZE 2000000
21 
23 
24 public:
26  virtual ~HarpoFeminosEvent();
27 
28  void SetPlane(Int_t plane) { fPlane = plane; }
29 
30  void SetHeader(UShort_t *data);
31  void SetHeader(UInt_t len, UInt_t evnum);
32 
33  Int_t GetPlane() { return fPlane; }
34 
35  HarpoDccMap *GetMap();
36  void SetMap(HarpoDccMap* map){fEventMap = map;}
37 
38  void print() const;
39 
40  Bool_t IsPlaneX() { return fPlane == XDCC; }
41 
42  void SetZeroSuppressed(ULong_t zs) { fZeroSuppress = zs; }
43  ULong_t GetZeroSuppressed() { return fZeroSuppress; }
44  Bool_t IsZeroSuppressed();
45 
46  void SetTimeStamp(ULong_t ts) { fTimeStamp = ts; }
47  ULong_t GetTimeStamp(Int_t /* after */ = 0 ) { return fTimeStamp; }
48  //
49  void SetDecoder(HarpoDccDecode *d) { decoder = d; }
50  // Debug data
51  //UShort_t *fEventData; // Event data buffer
52  std::list<HarpoFeminosFrame> fFrames; // List of Dcc Frames for this event
53 private:
54 
55  Int_t fPlane; // plane x or plane y
56 
57  ULong_t fTimeStamp;
58  ULong_t fZeroSuppress;
59 
60  HarpoDccMap *fEventMap; // class HarpoEvent must delete map object
61 
63 
64  ClassDef(HarpoFeminosEvent,1) //Event structure
65 };
66 
67 #endif
HarpoDccDecode * decoder
void SetDecoder(HarpoDccDecode *d)
A virtual class store event data for un detector.
Definition: HarpoDetEvent.h:32
HarpoDccMap * fEventMap
std::list< HarpoFeminosFrame > fFrames
void SetZeroSuppressed(ULong_t zs)
Which PLane X or Y.
void SetTimeStamp(ULong_t ts)
Data Format.
ULong_t GetZeroSuppressed()
A class store HARPO row FEMINOS event data and header. End provide access metods to the row data...
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
HarpoDccMap * GetMap()
void SetMap(HarpoDccMap *map)
Ruturn pointer to decoded data Map.
A class which define DCC channel mapping.
Unknown Detector.
Definition: HarpoDet.h:18
void SetPlane(Int_t plane)
ULong_t GetTimeStamp(Int_t=0)
void SetHeader(UShort_t *data)