ndmspc
0.20250128.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
8
namespace
Ndmspc {
9
namespace
Hep {
16
17
class
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 */
Ndmspc::Hep::Event
Event object.
Definition
HepEvent.h:17
Ndmspc::Hep::Event::GetTrack
Track * GetTrack(Long64_t id)
Definition
HepEvent.h:77
Ndmspc::Hep::Event::~Event
virtual ~Event()
Definition
HepEvent.cxx:30
Ndmspc::Hep::Event::SetID
void SetID(Long64_t id)
Definition
HepEvent.h:71
Ndmspc::Hep::Event::BuildVertexRandom
void BuildVertexRandom()
Definition
HepEvent.cxx:81
Ndmspc::Hep::Event::AddTrack
Track * AddTrack()
Definition
HepEvent.cxx:40
Ndmspc::Hep::Event::SetVy
void SetVy(Double_t vy)
Definition
HepEvent.h:73
Ndmspc::Hep::Event::fVy
Double_t fVy
Vertex y.
Definition
HepEvent.h:88
Ndmspc::Hep::Event::fVz
Double_t fVz
Vertex z.
Definition
HepEvent.h:89
Ndmspc::Hep::Event::SetVx
void SetVx(Double_t vx)
Definition
HepEvent.h:72
Ndmspc::Hep::Event::operator=
Event & operator=(const Event &)
not implemented
Ndmspc::Hep::Event::Event
Event()
Definition
HepEvent.cxx:12
Ndmspc::Hep::Event::SetVz
void SetVz(Double_t vz)
Definition
HepEvent.h:74
Ndmspc::Hep::Event::GetVy
Double_t GetVy() const
Vertex y component.
Definition
HepEvent.h:68
Ndmspc::Hep::Event::GetID
Long64_t GetID() const
Event ID.
Definition
HepEvent.h:66
Ndmspc::Hep::Event::fID
Long64_t fID
ID of event.
Definition
HepEvent.h:86
Ndmspc::Hep::Event::fTracks
TClonesArray * fTracks
Array with all tracks.
Definition
HepEvent.h:93
Ndmspc::Hep::Event::GetVz
Double_t GetVz() const
Vertex z component.
Definition
HepEvent.h:69
Ndmspc::Hep::Event::Clear
virtual void Clear(Option_t *option="")
Definition
HepEvent.cxx:67
Ndmspc::Hep::Event::GetNTrack
Long64_t GetNTrack() const
Definition
HepEvent.h:76
Ndmspc::Hep::Event::fVx
Double_t fVx
Vertex x.
Definition
HepEvent.h:87
Ndmspc::Hep::Event::Event
Event(const Event &)
Copy constructor.
Ndmspc::Hep::Event::GetVx
Double_t GetVx() const
Vertex x component.
Definition
HepEvent.h:67
Ndmspc::Hep::Event::fNTracks
Int_t fNTracks
Number of tracks.
Definition
HepEvent.h:90
Ndmspc::Hep::Event::Print
virtual void Print(Option_t *option="") const
Definition
HepEvent.cxx:47
Ndmspc::Hep::Track
Track object.
Definition
HepTrack.h:15
Event
Hep
HepEvent.h
Generated by
1.10.0