ndmspc 0.20250304.0
Loading...
Searching...
No Matches
HepEvent.h
1#ifndef HepEvent_H
2#define HepEvent_H
3
4#include <TObject.h>
5#include <TClonesArray.h>
6#include "HepTrack.h"
7
8namespace Ndmspc {
9namespace Hep {
16
17class Event : public TObject {
18
19 public:
20 Event();
21 Event(Long64_t id, Double_t vx = 0.0, Double_t vy = 0.0, Double_t vz = 0.0);
22 virtual ~Event();
23
65
66 Long64_t GetID() const { return fID; }
67 Double_t GetVx() const { return fVx; }
68 Double_t GetVy() const { return fVy; }
69 Double_t GetVz() const { return fVz; }
70
71 void SetID(Long64_t id) { fID = id; }
72 void SetVx(Double_t vx) { fVx = vx; }
73 void SetVy(Double_t vy) { fVy = vy; }
74 void SetVz(Double_t vz) { fVz = vz; }
75
76 Long64_t GetNTrack() const { return fNTracks; }
77 Track * GetTrack(Long64_t id) { return (Track *)fTracks->At(id); }
78 Track * AddTrack();
79
80 virtual void Print(Option_t * option = "") const;
81 virtual void Clear(Option_t * option = "");
82
83 void BuildVertexRandom();
84
85 private:
86 Long64_t fID;
87 Double_t fVx;
88 Double_t fVy;
89 Double_t fVz;
90 Int_t fNTracks;
91
93 TClonesArray * fTracks; //->
94
95 // TODO
97 Event(const Event &);
98 Event & operator=(const Event &);
99
101 ClassDef(Event, 1);
103};
104
105} // namespace Hep
106} // namespace Ndmspc
107#endif /* HepEvent_H */
Event object.
Definition HepEvent.h:17
Track * GetTrack(Long64_t id)
Definition HepEvent.h:77
void SetID(Long64_t id)
Definition HepEvent.h:71
void BuildVertexRandom()
Definition HepEvent.cxx:81
Track * AddTrack()
Definition HepEvent.cxx:40
void SetVy(Double_t vy)
Definition HepEvent.h:73
Double_t fVy
Vertex y.
Definition HepEvent.h:88
Double_t fVz
Vertex z.
Definition HepEvent.h:89
void SetVx(Double_t vx)
Definition HepEvent.h:72
Event & operator=(const Event &)
not implemented
void SetVz(Double_t vz)
Definition HepEvent.h:74
Double_t GetVy() const
Vertex y component.
Definition HepEvent.h:68
Long64_t GetID() const
Event ID.
Definition HepEvent.h:66
Long64_t fID
ID of event.
Definition HepEvent.h:86
TClonesArray * fTracks
Array with all tracks.
Definition HepEvent.h:93
Double_t GetVz() const
Vertex z component.
Definition HepEvent.h:69
virtual void Clear(Option_t *option="")
Definition HepEvent.cxx:67
Long64_t GetNTrack() const
Definition HepEvent.h:76
Double_t fVx
Vertex x.
Definition HepEvent.h:87
Event(const Event &)
Copy constructor.
Double_t GetVx() const
Vertex x component.
Definition HepEvent.h:67
Int_t fNTracks
Number of tracks.
Definition HepEvent.h:90
virtual void Print(Option_t *option="") const
Definition HepEvent.cxx:47
Track object.
Definition HepTrack.h:15