|
Celeritas 0.7+0c5d30b
|
Access invariant particle data from Geant4 with exact quantities. More...
#include <GeantParticleView.hh>
Public Types | |
Type aliases | |
| using | Charge = Quantity< units::EElectron, double > |
| using | Mass = Quantity< units::MevPerCsq, double > |
| using | Energy = units::ClhepEnergy |
| using | InvClhepTime = Quantity< UnitInverse< units::Nanosecond >, double > |
| using | real_type = double |
Public Member Functions | |
| GeantParticleView (G4ParticleDefinition const &def) | |
| std::string const & | name () const |
| Name. | |
| PDGNumber | pdg () const |
| PDG number. | |
| Mass | mass () const |
| Rest mass [MeV / c^2]. | |
| Charge | charge () const |
| Charge [elemental charge e+]. | |
| InvClhepTime | decay_constant () const |
| Decay constant. | |
| bool | is_antiparticle () const |
| Whether it is an antiparticle. | |
| bool | is_optical_photon () const |
| Whether it is an optical photon. | |
Access invariant particle data from Geant4 with exact quantities.
This annotates the Geant4 view with the correct Quantities for seamless integration with Celeritas.
|
inline |
Whether it is an optical photon.
Newer versions of Geant4 have a special PDG number.