HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoSimEvent.h
Go to the documentation of this file.
1 #ifndef HARPOSIMEVENT_H
2 #define HARPOSIMEVENT_H
3 
5 //
6 // HarpoSimEvent
7 //
8 // Description of the event
9 //
10 
11 #include "TObject.h"
12 #include "HarpoDetEvent.h"
13 #include "HarpoSimStrips.h"
14 #include "TpcSimIonisationTrack.h"
15 #include "TpcSimMCEvent.h"
16 
17 #include "HarpoDet.h"
18 #include "HarpoDccMap.h"
19 #include <list>
20 
21 #define EVENT_BUFFER_SIZE 2000000
22 
23 
24 class HarpoSimEvent : public HarpoDetEvent {
25 
26 public:
27  HarpoSimEvent();
28  virtual ~HarpoSimEvent();
29  /* void SetPlane(Int_t plane) { fPlane = plane; } */
30  /* void SetHeader(UShort_t *data); */
31  /* void SetHeader(UInt_t len, UInt_t evnum); */
32  /* void SetData(UShort_t *data,size_t dlen=EVENT_BUFFER_SIZE); */
33  // void ResetData();
34  /* Int_t GetPLane() { return fPlane; } */
35 
36  // void SetHeader(UShort_t *data);
37  void SetHeader(UInt_t len, UInt_t evnum);
38  /* UShort_t *GetData(); */
39 
40  // HarpoDccMap *GetMap(); //! Ruturn pointer to decoded data Map
41 
42  void print() const;
43 
44  /* Bool_t IsZeroSuppressed(Int_t after=0); //! Data Format */
45  /* Bool_t IsPlaneX() { return fPlane == 0; } //! Which PLane X or Y */
46  ULong_t GetTimeStamp(Int_t /* after */ =0);
47  // Debug data
48  /* UShort_t *fEventData; // Event data buffer */
49 
50  Int_t AddStrips(Int_t iTr, HarpoSimStrips* strips);
51  Int_t AddIonisationTrack(Int_t iTr, TpcSimIonisationTrack* tr);
54  Int_t GetNtracks(){return fNtracks;}
55 
56  void SetMCEvent(TpcSimMCEvent* event){fMCEvent = event;};
58 
59  /* HarpoDccMap* GetMap(Int_t plane){ */
60  /* if(plane == XDCC) return fDccMapX; */
61  /* if(plane == YDCC) return fDccMapY; */
62  /* return NULL; */
63  /* } */
64  /* void SetDccMapX(HarpoDccMap* map) {fDccMapX = map;} */
65  /* void SetDccMapY(HarpoDccMap* map) {fDccMapY = map;} */
66 
67  // void Reset();
68 
69 
70 private:
71  static const Int_t fkMaxNtracks = 100;
72  Int_t fNstrips;
73  Int_t fNtracks;
74 
75  TClonesArray* fIonisationTracks;
77 
78  ClassDef(HarpoSimEvent,1) //Event structure
79 };
80 
81 #endif
void SetHeader(UInt_t len, UInt_t evnum)
virtual ~HarpoSimEvent()
TpcSimIonisationTrack * GetIonisationTrack(Int_t iTr)
static const Int_t fkMaxNtracks
Definition: HarpoSimEvent.h:71
ULong_t GetTimeStamp(Int_t=0)
A virtual class store event data for un detector.
Definition: HarpoDetEvent.h:32
Int_t GetNtracks()
Definition: HarpoSimEvent.h:54
TpcSimMCEvent * fMCEvent
Definition: HarpoSimEvent.h:76
void SetMCEvent(TpcSimMCEvent *event)
Definition: HarpoSimEvent.h:56
void DeleteIonisationTracks()
Definition: HarpoSimEvent.h:53
A class store HARPO row DCC event data and header. End provide access metods to the row data...
Definition: HarpoSimEvent.h:24
TClonesArray * fIonisationTracks
Definition: HarpoSimEvent.h:75
Int_t AddIonisationTrack(Int_t iTr, TpcSimIonisationTrack *tr)
Int_t AddStrips(Int_t iTr, HarpoSimStrips *strips)
TpcSimMCEvent * GetMCEvent()
Definition: HarpoSimEvent.h:57
void print() const