allpix::PrimariesReader::Particle
Particle class to hold information for primary particles before dispatching them to Geant4.
#include <PrimariesReader.hpp>
Public Functions
Name | |
---|---|
Particle(int id, double e, G4ThreeVector dir, G4ThreeVector pos, double t) | |
int | pdg() const |
double | energy() const |
G4ThreeVector | direction() const |
G4ThreeVector | position() const |
double | time() const |
Public Functions Documentation
function Particle
inline Particle(
int id,
double e,
G4ThreeVector dir,
G4ThreeVector pos,
double t
)
Parameters:
- id PDG ID of the particle
- e Energy
- dir Direction vector
- pos Position vector
- t Creation time
Particle constructor
function pdg
inline int pdg() const
Return: PDG ID
Provides the PDG ID of the particle
function energy
inline double energy() const
Return: Energy
Provides the particle energy
function direction
inline G4ThreeVector direction() const
Return: Direction vector
Provides the direction vector of the particle momentum
function position
inline G4ThreeVector position() const
Return: Position vector
Provides the position of the primary vertex
function time
inline double time() const
Return: Time
Provides the creation time of the particle in the event
Updated on 2025-02-27 at 14:14:46 +0000