EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
erhic::hadronic::EventMC Class Reference

#include <eic-smear/blob/master/include/eicsmear/hadronic/EventMC.h>

+ Inheritance diagram for erhic::hadronic::EventMC:
+ Collaboration diagram for erhic::hadronic::EventMC:

Public Member Functions

virtual ~EventMC ()
 
 EventMC ()
 
virtual const ParticleMCGetTrack (UInt_t) const
 
virtual ParticleMCGetTrack (UInt_t)
 
virtual UInt_t GetNTracks () const
 
virtual UInt_t Add (ParticleMC *particle)
 
virtual Double_t GetCentreOfMassEnergy () const
 
virtual void Clear (Option_t *="")
 
- Public Member Functions inherited from erhic::VirtualEvent
virtual ~VirtualEvent ()
 
virtual void HadronicFinalState (ParticlePtrList &) const
 

Protected Attributes

TClonesArray mTracks
 

Additional Inherited Members

- Public Types inherited from erhic::VirtualEvent
typedef std::vector< const
erhic::VirtualParticle * > 
ParticlePtrList
 

Detailed Description

A realisation of erhic::VirtualEvent for a hadron-hadron Monte Carlo event.

Definition at line 29 of file EventMC.h.

View newest version in sPHENIX GitHub at line 29 of file EventMC.h

Constructor & Destructor Documentation

erhic::hadronic::EventMC::~EventMC ( )
virtual

Destructor.

Definition at line 17 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 17 of file EventMC.cxx

References Clear().

+ Here is the call graph for this function:

erhic::hadronic::EventMC::EventMC ( )

Constructor.

Definition at line 21 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 21 of file EventMC.cxx

Member Function Documentation

UInt_t erhic::hadronic::EventMC::Add ( ParticleMC particle)
virtual

Add a track to the list. The track must be dynamically allocated and is owned by the event. Returns the new list size.

Definition at line 41 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 41 of file EventMC.cxx

References GetNTracks(), and mTracks.

+ Here is the call graph for this function:

void erhic::hadronic::EventMC::Clear ( Option_t *  = "")
virtual

Clear the track list.

Definition at line 25 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 25 of file EventMC.cxx

References mTracks.

Referenced by ~EventMC().

+ Here is the caller graph for this function:

Double_t erhic::hadronic::EventMC::GetCentreOfMassEnergy ( ) const
virtual

Returns the centre-of-mass energy of the event (GeV)

Definition at line 46 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 46 of file EventMC.cxx

References erhic::hadronic::ParticleMC::Get4Vector(), GetTrack(), and M.

+ Here is the call graph for this function:

UInt_t erhic::hadronic::EventMC::GetNTracks ( ) const
virtual

Returns the number of tracks in the event.

Implements erhic::VirtualEvent.

Definition at line 37 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 37 of file EventMC.cxx

References mTracks.

Referenced by Add(), and Smear::HadronicEventBuilder::Create().

+ Here is the caller graph for this function:

const ParticleMC * erhic::hadronic::EventMC::GetTrack ( UInt_t  i) const
virtual

Returns the nth track from the event. Indices run from 0 to (n-1).

Implements erhic::VirtualEvent.

Definition at line 29 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 29 of file EventMC.cxx

References mTracks.

Referenced by Smear::HadronicEventBuilder::Create(), and GetCentreOfMassEnergy().

+ Here is the caller graph for this function:

ParticleMC * erhic::hadronic::EventMC::GetTrack ( UInt_t  i)
virtual

Returns the nth track from the event. Indices run from 0 to (n-1).

Implements erhic::VirtualEvent.

Definition at line 33 of file EventMC.cxx.

View newest version in sPHENIX GitHub at line 33 of file EventMC.cxx

References mTracks.

Member Data Documentation

TClonesArray erhic::hadronic::EventMC::mTracks
protected

Definition at line 76 of file EventMC.h.

View newest version in sPHENIX GitHub at line 76 of file EventMC.h

Referenced by Add(), Clear(), GetNTracks(), and GetTrack().


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