PlasmaMLPALLAS
Loading...
Searching...
No Matches
Variables
PlasmaMLPALLASPrimaryGeneratorAction.cc File Reference

Implementation of the primary generator action for the PALLAS simulation. More...

#include "PlasmaMLPALLASPrimaryGeneratorAction.hh"
Include dependency graph for PlasmaMLPALLASPrimaryGeneratorAction.cc:

Variables

std::atomic< size_t > currentParticleNumber {0}
 Global counter of generated particles (atomic to support multithreading).
 
G4UImanager * UI = G4UImanager::GetUIpointer()
 Global pointer to the Geant4 UI manager.
 

Detailed Description

Implementation of the primary generator action for the PALLAS simulation.

This file implements the PlasmaMLPALLASPrimaryGeneratorAction class, which handles the generation of primary particles for Geant4 events in the PALLAS project.

Two generation modes are supported:

  1. ONNX model inference: Beam parameters (energy, charge, emittance, transverse positions, and momenta) are predicted by a neural network model and used to configure the particle gun.
  2. Geant4 GeneralParticleSource (GPS): Standard Geant4 particle generation.

Features:

Usage:

Note
Multithreading is supported; thread 0 handles progress display.
Authors
Arnaud HUBER huber.nosp@m.@lp2.nosp@m.ib.in.nosp@m.2p3..nosp@m.fr
Alexei SYTOV sytov.nosp@m.@inf.nosp@m.n.it
Date
2025

Variable Documentation

◆ currentParticleNumber

std::atomic<size_t> currentParticleNumber {0}

Global counter of generated particles (atomic to support multithreading).

◆ UI

G4UImanager* UI = G4UImanager::GetUIpointer()

Global pointer to the Geant4 UI manager.