Celeritas 0.7.0-dev.127+develop.e63889793
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::GeantParticleView Class Reference

Access invariant particle data from Geant4 with Celeritas units. More...

#include <GeantParticleView.hh>

Public Types

Type aliases
using Charge = Quantity< units::EElectron, double >
 
using Mass = Quantity< units::MevPerCsq, double >
 
using real_type = double
 

Public Member Functions

 GeantParticleView (G4ParticleDefinition const &def)
 
std::string constname () const
 Name.
 
PDGNumber pdg () const
 PDG number.
 
Mass mass () const
 Rest mass [MeV / c^2].
 
Charge charge () const
 Charge [elemental charge e+].
 
real_type decay_constant () const
 Decay constant [1/s].
 
bool is_antiparticle () const
 Whether it is an antiparticle.
 
bool is_optical_photon () const
 Whether it is an optical photon.
 

Detailed Description

Access invariant particle data from Geant4 with Celeritas units.

Geant4 data are all in double precision.

Member Function Documentation

◆ is_optical_photon()

bool celeritas::GeantParticleView::is_optical_photon ( ) const
inline

Whether it is an optical photon.

Newer versions of Geant4 have a special PDG number.


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