ndmspc 0.20250304.0
Loading...
Searching...
No Matches
Ndmspc::Hep::Event Class Reference

Event object. More...

#include <HepEvent.h>

Inheritance diagram for Ndmspc::Hep::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.
 
Double_t GetVx () const
 Vertex x component.
 
Double_t GetVy () const
 Vertex y component.
 
Double_t GetVz () const
 Vertex z component.
 
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 17 of file HepEvent.h.

Constructor & Destructor Documentation

◆ Event() [1/2]

Ndmspc::Hep::Event::Event ( )

Default constructor

Definition at line 12 of file HepEvent.cxx.

◆ Event() [2/2]

Ndmspc::Hep::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 19 of file HepEvent.cxx.

References fTracks.

◆ ~Event()

Ndmspc::Hep::Event::~Event ( )
virtual

A destructor

Definition at line 30 of file HepEvent.cxx.

References fTracks.

Member Function Documentation

◆ AddTrack()

Track * Ndmspc::Hep::Event::AddTrack ( )

Adds track to event

Definition at line 40 of file HepEvent.cxx.

References fNTracks, and fTracks.

◆ BuildVertexRandom()

void Ndmspc::Hep::Event::BuildVertexRandom ( )

Builds random vertex

Definition at line 81 of file HepEvent.cxx.

References fVx, fVy, and fVz.

◆ Clear()

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

Reseting event to default values and clear all tracks

Definition at line 67 of file HepEvent.cxx.

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

◆ GetID()

Long64_t Ndmspc::Hep::Event::GetID ( ) const
inline

Event ID.

Returns
event ID

Definition at line 66 of file HepEvent.h.

References fID.

◆ GetNTrack()

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

Definition at line 76 of file HepEvent.h.

References fNTracks.

◆ GetTrack()

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

Definition at line 77 of file HepEvent.h.

References fTracks.

◆ GetVx()

Double_t Ndmspc::Hep::Event::GetVx ( ) const
inline

Vertex x component.

Returns
Vx component

Definition at line 67 of file HepEvent.h.

References fVx.

◆ GetVy()

Double_t Ndmspc::Hep::Event::GetVy ( ) const
inline

Vertex y component.

Returns
Vy component

Definition at line 68 of file HepEvent.h.

References fVy.

◆ GetVz()

Double_t Ndmspc::Hep::Event::GetVz ( ) const
inline

Vertex z component.

Returns
Vz component

Definition at line 69 of file HepEvent.h.

References fVz.

◆ Print()

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

Printing event info

Definition at line 47 of file HepEvent.cxx.

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

◆ SetID()

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

Sets event ID

Definition at line 71 of file HepEvent.h.

References fID.

◆ SetVx()

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

Sets x component of vertex

Definition at line 72 of file HepEvent.h.

References fVx.

◆ SetVy()

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

Sets y component of vertex

Definition at line 73 of file HepEvent.h.

References fVy.

◆ SetVz()

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

Sets z component of vertex

Definition at line 74 of file HepEvent.h.

References fVz.

Member Data Documentation

◆ fID

Long64_t Ndmspc::Hep::Event::fID
private

ID of event.

Definition at line 86 of file HepEvent.h.

Referenced by Clear(), GetID(), Print(), and SetID().

◆ fNTracks

Int_t Ndmspc::Hep::Event::fNTracks
private

Number of tracks.

Definition at line 90 of file HepEvent.h.

Referenced by AddTrack(), Clear(), GetNTrack(), and Print().

◆ fTracks

TClonesArray* Ndmspc::Hep::Event::fTracks
private

Array with all tracks.

Definition at line 93 of file HepEvent.h.

Referenced by AddTrack(), Clear(), Event(), GetTrack(), Print(), and ~Event().

◆ fVx

Double_t Ndmspc::Hep::Event::fVx
private

Vertex x.

Definition at line 87 of file HepEvent.h.

Referenced by BuildVertexRandom(), Clear(), GetVx(), Print(), and SetVx().

◆ fVy

Double_t Ndmspc::Hep::Event::fVy
private

Vertex y.

Definition at line 88 of file HepEvent.h.

Referenced by BuildVertexRandom(), Clear(), GetVy(), Print(), and SetVy().

◆ fVz

Double_t Ndmspc::Hep::Event::fVz
private

Vertex z.

Definition at line 89 of file HepEvent.h.

Referenced by BuildVertexRandom(), Clear(), GetVz(), Print(), and SetVz().


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