BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
BDSOutputROOTParticleData::ParticleInfo Struct Reference

Simple particle information to be stored per particle. More...

#include <BDSOutputROOTParticleData.hh>

Collaboration diagram for BDSOutputROOTParticleData::ParticleInfo:
Collaboration graph

Public Member Functions

double rigidity (const double totalEnergy) const
 
double rigidity (const double totalEnergy, const double chargeIn) const
 

Data Fields

std::string name
 Name of particle.
 
int charge
 Charge in units of e.
 
double mass
 Mass in GeV.
 

Detailed Description

Simple particle information to be stored per particle.

Definition at line 45 of file BDSOutputROOTParticleData.hh.

Member Function Documentation

◆ rigidity() [1/2]

double BDSOutputROOTParticleData::ParticleInfo::rigidity ( const double  totalEnergy) const
inline

Definition at line 51 of file BDSOutputROOTParticleData.hh.

◆ rigidity() [2/2]

double BDSOutputROOTParticleData::ParticleInfo::rigidity ( const double  totalEnergy,
const double  chargeIn 
) const
inline

Definition at line 64 of file BDSOutputROOTParticleData.hh.

Field Documentation

◆ charge

int BDSOutputROOTParticleData::ParticleInfo::charge

Charge in units of e.

Definition at line 48 of file BDSOutputROOTParticleData.hh.

◆ mass

double BDSOutputROOTParticleData::ParticleInfo::mass

Mass in GeV.

Definition at line 49 of file BDSOutputROOTParticleData.hh.

◆ name

std::string BDSOutputROOTParticleData::ParticleInfo::name

Name of particle.

Definition at line 47 of file BDSOutputROOTParticleData.hh.


The documentation for this struct was generated from the following file: