|
gparticle
|
Immutable generated-particle metadata used for output banks. More...
#include <gparticle_reader.h>
Data Fields | |
| std::string | name |
| Particle name when known, otherwise a source-format identifier such as the numeric pid. | |
| int | pid = 0 |
| PDG id or source particle id. | |
| int | type = 1 |
Source generator type. Lund type == 1 means propagated in Geant4. | |
| int | multiplicity = 1 |
| Number of copies represented by this record. | |
| double | p = 0 |
| Momentum magnitude in GEMC internal units. | |
| double | theta = 0 |
| Polar angle in GEMC internal angular units. | |
| double | phi = 0 |
| Azimuthal angle in GEMC internal angular units. | |
| double | vx = 0 |
| Vertex x coordinate in GEMC internal length units. | |
| double | vy = 0 |
| Vertex y coordinate in GEMC internal length units. | |
| double | vz = 0 |
| Vertex z coordinate in GEMC internal length units. | |
A record is a serialization-friendly description of a generated particle. Unlike Gparticle, it does not require that the particle name or id can be resolved by G4ParticleTable. This allows output banks to preserve all particles found in an input file, including bookkeeping or event-generator rows that are not propagated in Geant4.
The kinematic and vertex values are stored after the reader's unit conversion. For Lund input, type preserves the Lund particle type column; type == 1 identifies rows propagated by Geant4.
Definition at line 48 of file gparticle_reader.h.
| int GParticleRecord::multiplicity = 1 |
Definition at line 60 of file gparticle_reader.h.
| std::string GParticleRecord::name |
Definition at line 51 of file gparticle_reader.h.
| double GParticleRecord::p = 0 |
Definition at line 63 of file gparticle_reader.h.
| double GParticleRecord::phi = 0 |
Definition at line 69 of file gparticle_reader.h.
| int GParticleRecord::pid = 0 |
Definition at line 54 of file gparticle_reader.h.
| double GParticleRecord::theta = 0 |
Definition at line 66 of file gparticle_reader.h.
| int GParticleRecord::type = 1 |
Definition at line 57 of file gparticle_reader.h.
| double GParticleRecord::vx = 0 |
Definition at line 72 of file gparticle_reader.h.
| double GParticleRecord::vy = 0 |
Definition at line 75 of file gparticle_reader.h.
| double GParticleRecord::vz = 0 |
Definition at line 78 of file gparticle_reader.h.