ndhep  0.1.0
NDHep::Event Class Reference

Event object. More...

#include <Event.hh>

Inheritance diagram for NDHep::Event:

Public Member Functions

 Event ()
 
 Event (Long64_t id, Double_t vx=0.0, Double_t vy=0.0, Double_t vz=0.0)
 
virtual ~Event ()
 
Long64_t GetID () const
 Event ID. More...
 
Double_t GetVx () const
 Vertex x component. More...
 
Double_t GetVy () const
 Vertex y component. More...
 
Double_t GetVz () const
 Vertex z component. More...
 
void SetID (Long64_t id)
 
void SetVx (Double_t vx)
 
void SetVy (Double_t vy)
 
void SetVz (Double_t vz)
 
Long64_t GetNTrack () const
 
TrackGetTrack (Long64_t id)
 
TrackAddTrack ()
 
virtual void Print (Option_t *option="") const
 
virtual void Clear (Option_t *option="")
 
void BuildVertexRandom ()
 

Private Member Functions

 Event (const Event &)
 Copy constructor.
 
Eventoperator= (const Event &)
 not implemented
 

Private Attributes

Long64_t fID
 ID of event.
 
Double_t fVx
 Vertex x.
 
Double_t fVy
 Vertex y.
 
Double_t fVz
 Vertex z.
 
Int_t fNTracks
 Number of tracks.
 
TClonesArray * fTracks
 Array with all tracks.
 

Detailed Description

Event object.

Author
Martin Vala mvala.nosp@m.@cer.nosp@m.n.ch

Definition at line 16 of file Event.hh.

Constructor & Destructor Documentation

◆ Event() [1/2]

NDHep::Event::Event ( )

Default constructor

Definition at line 12 of file Event.cc.

◆ Event() [2/2]

NDHep::Event::Event ( Long64_t  id,
Double_t  vx = 0.0,
Double_t  vy = 0.0,
Double_t  vz = 0.0 
)

A constructor

Definition at line 20 of file Event.cc.

References fTracks.

◆ ~Event()

NDHep::Event::~Event ( )
virtual

A destructor

Definition at line 31 of file Event.cc.

References fTracks.

Member Function Documentation

◆ AddTrack()

Track * NDHep::Event::AddTrack ( )

Adds track to event

Definition at line 41 of file Event.cc.

References fNTracks, and fTracks.

◆ BuildVertexRandom()

void NDHep::Event::BuildVertexRandom ( )

Builds random vertex

Definition at line 86 of file Event.cc.

References fVx, fVy, and fVz.

◆ Clear()

void NDHep::Event::Clear ( Option_t *  option = "")
virtual

Reseting event to default values and clear all tracks

Definition at line 72 of file Event.cc.

References fID, fNTracks, fTracks, fVx, fVy, and fVz.

◆ GetID()

Long64_t NDHep::Event::GetID ( ) const
inline

Event ID.

Returns
event ID

Definition at line 67 of file Event.hh.

References fID.

◆ GetNTrack()

Long64_t NDHep::Event::GetNTrack ( ) const
inline
Returns
number of tracks

Definition at line 77 of file Event.hh.

References fNTracks.

◆ GetTrack()

Track * NDHep::Event::GetTrack ( Long64_t  id)
inline
Parameters
idTrack ID
Returns
Track with id

Definition at line 78 of file Event.hh.

References fTracks.

◆ GetVx()

Double_t NDHep::Event::GetVx ( ) const
inline

Vertex x component.

Returns
Vx component

Definition at line 68 of file Event.hh.

References fVx.

◆ GetVy()

Double_t NDHep::Event::GetVy ( ) const
inline

Vertex y component.

Returns
Vy component

Definition at line 69 of file Event.hh.

References fVy.

◆ GetVz()

Double_t NDHep::Event::GetVz ( ) const
inline

Vertex z component.

Returns
Vz component

Definition at line 70 of file Event.hh.

References fVz.

◆ Print()

void NDHep::Event::Print ( Option_t *  option = "") const
virtual

Printing event info

Definition at line 48 of file Event.cc.

References fID, fNTracks, fTracks, fVx, fVy, fVz, and NDHep::Track::Print().

◆ SetID()

void NDHep::Event::SetID ( Long64_t  id)
inline
Parameters
idEvent ID

Sets event ID

Definition at line 72 of file Event.hh.

References fID.

◆ SetVx()

void NDHep::Event::SetVx ( Double_t  vx)
inline
Parameters
vxVertex x component

Sets x component of vertex

Definition at line 73 of file Event.hh.

References fVx.

◆ SetVy()

void NDHep::Event::SetVy ( Double_t  vy)
inline
Parameters
vyVertex x component

Sets y component of vertex

Definition at line 74 of file Event.hh.

References fVy.

◆ SetVz()

void NDHep::Event::SetVz ( Double_t  vz)
inline
Parameters
vzVertex x component

Sets z component of vertex

Definition at line 75 of file Event.hh.

References fVz.


The documentation for this class was generated from the following files: