SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
Public Member Functions | Private Attributes | Friends | List of all members
LHEParticle Class Reference

Single particle record in an LHE event. More...

#include <LHEParticle.hh>

Public Member Functions

 LHEParticle (std::string &data)
 
int getICOLUP (int) const
 
int getIDUP () const
 
int getISTUP () const
 
LHEParticle * getMother (int) const
 
int getMOTHUP (int) const
 
double getPUP (int) const
 
double getSPINUP () const
 
double getVTIMUP () const
 
void print (std::ostream &stream) const
 
void setMother (int i, LHEParticle *particle)
 

Private Attributes

int icolup_ [2]
 
int idup_
 
int istup_
 
LHEParticle * mothers_ [2]
 
int mothup_ [2]
 
double pup_ [5]
 
int spinup_
 
double vtimup_
 

Friends

std::ostream & operator<< (std::ostream &stream, const LHEParticle &particle)
 

Detailed Description

Single particle record in an LHE event.

Definition at line 20 of file LHEParticle.hh.

Constructor & Destructor Documentation

◆ LHEParticle()

LHEParticle ( std::string &  data)

Class constructor.

Parameters
dataThe particle record as a space-delimited string.

Definition at line 15 of file LHEParticle.cc.

References LOG::endl, LHEParticle::icolup_, LHEParticle::idup_, LHEParticle::istup_, LHEParticle::mothers_, LHEParticle::mothup_, LHEParticle::pup_, LHEParticle::spinup_, and LHEParticle::vtimup_.

Member Function Documentation

◆ getICOLUP()

int getICOLUP ( int  i) const

Get the particle color (ICOLUP) by index.

Returns
The particle color by index.

Definition at line 63 of file LHEParticle.cc.

References LHEParticle::icolup_.

Referenced by LHEParticle::print().

◆ getIDUP()

int getIDUP ( ) const

Get the PDG code (IDUP).

Returns
The PDG code.

Definition at line 51 of file LHEParticle.cc.

References LHEParticle::idup_.

Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().

◆ getISTUP()

int getISTUP ( ) const

Get the status code (ISTUP).

Returns
The status code.

Definition at line 55 of file LHEParticle.cc.

References LHEParticle::istup_.

Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().

◆ getMother()

LHEParticle * getMother ( int  i) const

Get a mother particle by index.

Returns
The mother particle at the index.

Definition at line 83 of file LHEParticle.cc.

References LHEParticle::mothers_.

Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex().

◆ getMOTHUP()

int getMOTHUP ( int  i) const

Get a mother particle index (MOTHUP) by index.

Returns
The mother particle by index.

Definition at line 59 of file LHEParticle.cc.

References LHEParticle::mothup_.

Referenced by LHEParticle::print(), and LHEReader::readNextEvent().

◆ getPUP()

double getPUP ( int  i) const

Get a momentum component (PUP) by index. Defined in order: E/C, Px, Py, Pz, mass

Returns
The momentum component by index.

Definition at line 67 of file LHEParticle.cc.

References LHEParticle::pup_.

Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().

◆ getSPINUP()

double getSPINUP ( ) const

Get the particle's spin (SPINUP).

Returns
The particle's spin.

Definition at line 75 of file LHEParticle.cc.

References LHEParticle::spinup_.

Referenced by LHEParticle::print().

◆ getVTIMUP()

double getVTIMUP ( ) const

Get the proper lifetime (VTIMUP).

Returns
The particle's proper lifetime.

Definition at line 71 of file LHEParticle.cc.

References LHEParticle::vtimup_.

Referenced by LHEPrimaryGenerator::GeneratePrimaryVertex(), and LHEParticle::print().

◆ print()

void print ( std::ostream &  stream) const

Print particle information to an output stream.

Parameters
streamThe output stream.

Definition at line 87 of file LHEParticle.cc.

References LOG::endl, LHEParticle::getICOLUP(), LHEParticle::getIDUP(), LHEParticle::getISTUP(), LHEParticle::getMOTHUP(), LHEParticle::getPUP(), LHEParticle::getSPINUP(), and LHEParticle::getVTIMUP().

◆ setMother()

void setMother ( int  i,
LHEParticle *  particle 
)

Set a mother particle by index.

Parameters
iThe mother index.
particleThe mother particle.

Definition at line 79 of file LHEParticle.cc.

References LHEParticle::mothers_.

Referenced by LHEReader::readNextEvent().

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const LHEParticle &  particle 
)
friend

Overloaded stream operator.

Parameters
streamThe output stream.
particleThe particle to print.

Definition at line 91 of file LHEParticle.cc.

Member Data Documentation

◆ icolup_

int icolup_[2]
private

The particle color.

Definition at line 124 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), and LHEParticle::getICOLUP().

◆ idup_

int idup_
private

The PDG code.

Definition at line 109 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), and LHEParticle::getIDUP().

◆ istup_

int istup_
private

The status code.

Definition at line 114 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), and LHEParticle::getISTUP().

◆ mothers_

LHEParticle* mothers_[2]
private

The mother particles.

Definition at line 104 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), LHEParticle::getMother(), and LHEParticle::setMother().

◆ mothup_

int mothup_[2]
private

The mother particle indices.

Definition at line 119 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), and LHEParticle::getMOTHUP().

◆ pup_

double pup_[5]
private

The momentum components.

Definition at line 129 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), and LHEParticle::getPUP().

◆ spinup_

int spinup_
private

The particle's spin.

Definition at line 139 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), and LHEParticle::getSPINUP().

◆ vtimup_

double vtimup_
private

The proper time.

Definition at line 134 of file LHEParticle.hh.

Referenced by LHEParticle::LHEParticle(), and LHEParticle::getVTIMUP().


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