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

#include <eic-smear/blob/master/include/eicsmear/erhic/EventSimple.h>

+ Inheritance diagram for erhic::EventSimple:
+ Collaboration diagram for erhic::EventSimple:

Public Member Functions

 EventSimple ()
 
virtual bool Parse (const std::string &)
 
const ParticleMCScatteredLepton () const
 
- Public Member Functions inherited from erhic::EventMC
 EventMC ()
 
virtual ~EventMC ()
 
virtual bool RequiresEaParticleFields ()
 
virtual ULong64_t GetN () const
 
virtual Int_t GetProcess () const
 
virtual UInt_t GetNTracks () const
 
virtual const ParticleMCGetTrack (UInt_t) const
 
virtual ParticleMCGetTrack (UInt_t)
 
virtual const ParticleMCBeamLepton () const
 
virtual const ParticleMCBeamHadron () const
 
virtual const ParticleMCExchangeBoson () const
 
virtual void AddLast (ParticleMC *track)
 
virtual void Reset ()
 
void Print (const Option_t *option="") const
 
virtual void Clear (Option_t *="")
 
virtual void SetProcess (int code)
 
virtual void SetN (int n)
 
virtual void SetNTracks (int n)
 
virtual void SetELeptonInNuclearFrame (double energy)
 
virtual void SetEScatteredInNuclearFrame (double energy)
 
void FinalState (ParticlePtrList &particles) const
 
void HadronicFinalState (ParticlePtrList &) const
 
TLorentzVector FinalStateMomentum () const
 
TLorentzVector HadronicFinalStateMomentum () const
 
Double_t FinalStateCharge () const
 
std::vector< const
VirtualParticle * > 
GetTracks () const
 
- Public Member Functions inherited from erhic::EventDis
virtual ~EventDis ()
 
 EventDis ()
 
 EventDis (const EventDis &)
 
EventDisoperator= (const EventDis &)
 
virtual Double_t GetX () const
 
virtual Double_t GetQ2 () const
 
virtual Double_t GetY () const
 
virtual Double_t GetYPlus () const
 
virtual Double_t GetW2 () const
 
virtual Double_t GetNu () const
 
virtual double GetXDoubleAngle () const
 
virtual double GetQ2DoubleAngle () const
 
virtual double GetYDoubleAngle () const
 
virtual double GetW2DoubleAngle () const
 
virtual double GetXJacquetBlondel () const
 
virtual double GetQ2JacquetBlondel () const
 
virtual double GetYJacquetBlondel () const
 
virtual double GetW2JacquetBlondel () const
 
virtual void SetLeptonKinematics (const DisKinematics &)
 
virtual void SetJacquetBlondelKinematics (const DisKinematics &)
 
virtual void SetDoubleAngleKinematics (const DisKinematics &)
 
virtual void CopyKinematics (const EventDis &)
 
- Public Member Functions inherited from erhic::VirtualEvent
virtual ~VirtualEvent ()
 

Public Attributes

Double32_t numParticles
 

Additional Inherited Members

- Public Types inherited from erhic::VirtualEvent
typedef std::vector< const
erhic::VirtualParticle * > 
ParticlePtrList
 
- Protected Attributes inherited from erhic::EventMC
Int_t number
 Event number.
 
Int_t process
 PYTHIA code for the physics process producing the event.
 
Int_t nTracks
 Number of Particles in the event (intermediate + final)
 
Double32_t ELeptonInNucl
 
Double32_t ELeptonOutNucl
 
TClonesArray particles
 Particle list.
 

Detailed Description

Describes an event from the generator SIMPLE.

Definition at line 19 of file EventSimple.h.

View newest version in sPHENIX GitHub at line 19 of file EventSimple.h

Constructor & Destructor Documentation

erhic::EventSimple::EventSimple ( )

Constructor.

Definition at line 15 of file EventSimple.cxx.

View newest version in sPHENIX GitHub at line 15 of file EventSimple.cxx

Member Function Documentation

bool erhic::EventSimple::Parse ( const std::string &  line)
virtual

Parses the event information from a text string.

The string must have the following format (no newlines):

"0 eventnumber numParticles

Returns true in the event of a successful read operation, false in case of an error.

Implements erhic::EventMC.

Definition at line 19 of file EventSimple.cxx.

View newest version in sPHENIX GitHub at line 19 of file EventSimple.cxx

References erhic::EventMC::number, and numParticles.

const ParticleMC * erhic::EventSimple::ScatteredLepton ( ) const
virtual

Returns a pointer to the lepton beam particle after scattering. See also notes in BeamLepton().

In the standard eRHIC Monte Carlo format, the scattered lepton beam is assumed to be the first final-state particle in the particle list with the same PDG code as the incident lepton beam.

Please overwrite this method accordingly! By default, it will simply use the fourth particle in the particle list. See e.g. EventPythia, EventSimple.

Reimplemented from erhic::EventMC.

Definition at line 35 of file EventSimple.cxx.

View newest version in sPHENIX GitHub at line 35 of file EventSimple.cxx

References erhic::EventMC::BeamLepton(), erhic::Pid::Code(), erhic::EventMC::FinalState(), and erhic::VirtualParticle::Id().

+ Here is the call graph for this function:

Member Data Documentation

Double32_t erhic::EventSimple::numParticles

Definition at line 39 of file EventSimple.h.

View newest version in sPHENIX GitHub at line 39 of file EventSimple.h

Referenced by Parse().


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