hlit-ana  0.0.0
 All Classes Functions Variables Pages
HlitEvent Class Reference

Event object. More...

#include <HlitEvent.h>

Inheritance diagram for HlitEvent:

Public Member Functions

 HlitEvent ()
 
 HlitEvent (Long64_t id, Double_t vx=0.0, Double_t vy=0.0, Double_t vz=0.0)
 
virtual ~HlitEvent ()
 
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
 
HlitTrackGetTrack (Long64_t id)
 
HlitTrackAddTrack ()
 
virtual void Print (Option_t *option="") const
 
virtual void Clear (Option_t *option="")
 
void BuildVertexRandom ()
 

Private Member Functions

 HlitEvent (const HlitEvent &)
 Copy constructor.
 
HlitEventoperator= (const HlitEvent &)
 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 15 of file HlitEvent.h.

Constructor & Destructor Documentation

HlitEvent::HlitEvent ( )

Default constructor

Definition at line 9 of file HlitEvent.cxx.

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

A constructor

Definition at line 16 of file HlitEvent.cxx.

References fTracks.

HlitEvent::~HlitEvent ( )
virtual

A destructor

Definition at line 26 of file HlitEvent.cxx.

References fTracks.

Member Function Documentation

HlitTrack * HlitEvent::AddTrack ( )

Adds track to event

Definition at line 35 of file HlitEvent.cxx.

References fNTracks, and fTracks.

void HlitEvent::BuildVertexRandom ( )

Builds random vertex

Definition at line 74 of file HlitEvent.cxx.

References fVx, fVy, and fVz.

void HlitEvent::Clear ( Option_t *  option = "")
virtual

Reseting event to default values and clear all tracks

Definition at line 61 of file HlitEvent.cxx.

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

Long64_t HlitEvent::GetID ( ) const
inline

Event ID.

Returns
event ID

Definition at line 65 of file HlitEvent.h.

References fID.

Referenced by HlitAnalysisSelector::Process().

Long64_t HlitEvent::GetNTrack ( ) const
inline
Returns
number of tracks

Definition at line 75 of file HlitEvent.h.

References fNTracks.

Referenced by HlitTaskRsn::Exec(), HlitAnalysisSelectorIO::Process(), and HlitAnalysisSelector::Process().

HlitTrack * HlitEvent::GetTrack ( Long64_t  id)
inline
Parameters
idTrack ID
Returns
Track with id

Definition at line 76 of file HlitEvent.h.

References fTracks.

Referenced by HlitTaskRsn::Exec(), and HlitAnalysisSelectorIO::Process().

Double_t HlitEvent::GetVx ( ) const
inline

Vertex x component.

Returns
Vx component

Definition at line 66 of file HlitEvent.h.

References fVx.

Double_t HlitEvent::GetVy ( ) const
inline

Vertex y component.

Returns
Vy component

Definition at line 67 of file HlitEvent.h.

References fVy.

Double_t HlitEvent::GetVz ( ) const
inline

Vertex z component.

Returns
Vz component

Definition at line 68 of file HlitEvent.h.

References fVz.

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

Printing event info

Definition at line 41 of file HlitEvent.cxx.

References fID, fTracks, fVx, fVy, fVz, and HlitTrack::Print().

void HlitEvent::SetID ( Long64_t  id)
inline
Parameters
idEvent ID

Sets event ID

Definition at line 70 of file HlitEvent.h.

References fID.

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

Sets x component of vertex

Definition at line 71 of file HlitEvent.h.

References fVx.

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

Sets y component of vertex

Definition at line 72 of file HlitEvent.h.

References fVy.

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

Sets z component of vertex

Definition at line 73 of file HlitEvent.h.

References fVz.


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