gparticle
Loading...
Searching...
No Matches
GParticleRecord Struct Reference

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.
 

Detailed Description

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.

Field Documentation

◆ multiplicity

int GParticleRecord::multiplicity = 1

Definition at line 60 of file gparticle_reader.h.

◆ name

std::string GParticleRecord::name

Definition at line 51 of file gparticle_reader.h.

◆ p

double GParticleRecord::p = 0

Definition at line 63 of file gparticle_reader.h.

◆ phi

double GParticleRecord::phi = 0

Definition at line 69 of file gparticle_reader.h.

◆ pid

int GParticleRecord::pid = 0

Definition at line 54 of file gparticle_reader.h.

◆ theta

double GParticleRecord::theta = 0

Definition at line 66 of file gparticle_reader.h.

◆ type

int GParticleRecord::type = 1

Definition at line 57 of file gparticle_reader.h.

◆ vx

double GParticleRecord::vx = 0

Definition at line 72 of file gparticle_reader.h.

◆ vy

double GParticleRecord::vy = 0

Definition at line 75 of file gparticle_reader.h.

◆ vz

double GParticleRecord::vz = 0

Definition at line 78 of file gparticle_reader.h.


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