hlit-ana  0.0.0
 All Classes Functions Variables Pages
HlitEvent.h
1 #ifndef HlitEvent_cxx
2 #define HlitEvent_cxx
3 
4 #include <TObject.h>
5 #include <TClonesArray.h>
6 #include "HlitTrack.h"
7 
14 
15 class HlitEvent : public TObject {
16 
17 public:
18  HlitEvent();
19  HlitEvent(Long64_t id, Double_t vx = 0.0, Double_t vy = 0.0,
20  Double_t vz = 0.0);
21  virtual ~HlitEvent();
22 
64 
65  Long64_t GetID() const { return fID; }
66  Double_t GetVx() const { return fVx; }
67  Double_t GetVy() const { return fVy; }
68  Double_t GetVz() const { return fVz; }
69 
70  void SetID(Long64_t id) { fID = id; }
71  void SetVx(Double_t vx) { fVx = vx; }
72  void SetVy(Double_t vy) { fVy = vy; }
73  void SetVz(Double_t vz) { fVz = vz; }
74 
75  Long64_t GetNTrack() const { return fNTracks; }
76  HlitTrack *GetTrack(Long64_t id) { return (HlitTrack *)fTracks->At(id); }
78 
79  virtual void Print(Option_t *option = "") const;
80  virtual void Clear(Option_t *option = "");
81 
82  void BuildVertexRandom();
83 
84 private:
85  Long64_t fID;
86  Double_t fVx;
87  Double_t fVy;
88  Double_t fVz;
89  Int_t fNTracks;
90 
92  TClonesArray *fTracks; //->
93 
94  // TODO
96  HlitEvent(const HlitEvent &);
97  HlitEvent &operator=(const HlitEvent &);
98 
100  ClassDef(HlitEvent, 1);
102 };
103 
104 #endif
Track object.
Definition: HlitTrack.h:13
virtual void Clear(Option_t *option="")
Definition: HlitEvent.cxx:61
HlitEvent & operator=(const HlitEvent &)
not implemented
Double_t GetVy() const
Vertex y component.
Definition: HlitEvent.h:67
Double_t fVy
Vertex y.
Definition: HlitEvent.h:87
Double_t fVx
Vertex x.
Definition: HlitEvent.h:86
Double_t GetVx() const
Vertex x component.
Definition: HlitEvent.h:66
HlitTrack * GetTrack(Long64_t id)
Definition: HlitEvent.h:76
void SetID(Long64_t id)
Definition: HlitEvent.h:70
Long64_t GetID() const
Event ID.
Definition: HlitEvent.h:65
TClonesArray * fTracks
Array with all tracks.
Definition: HlitEvent.h:92
Event object.
Definition: HlitEvent.h:15
Int_t fNTracks
Number of tracks.
Definition: HlitEvent.h:89
Double_t fVz
Vertex z.
Definition: HlitEvent.h:88
Long64_t fID
ID of event.
Definition: HlitEvent.h:85
void BuildVertexRandom()
Definition: HlitEvent.cxx:74
Double_t GetVz() const
Vertex z component.
Definition: HlitEvent.h:68
void SetVz(Double_t vz)
Definition: HlitEvent.h:73
void SetVy(Double_t vy)
Definition: HlitEvent.h:72
virtual ~HlitEvent()
Definition: HlitEvent.cxx:26
HlitTrack * AddTrack()
Definition: HlitEvent.cxx:35
Long64_t GetNTrack() const
Definition: HlitEvent.h:75
void SetVx(Double_t vx)
Definition: HlitEvent.h:71
virtual void Print(Option_t *option="") const
Definition: HlitEvent.cxx:41