19#ifndef BDSLINKPRIMARYGENERATORACTION_H
20#define BDSLINKPRIMARYGENERATORACTION_H
22#include "BDSExtent.hh"
24#include "G4VUserPrimaryGeneratorAction.hh"
44 int* currentElementIndexIn,
46 G4bool debugIn =
false);
The base class for bunch distribution generators.
Holder for +- extents in 3 dimensions.
Construction of the geometry in the case of a link model.
Generates primary particle vertices using BDSBunch.
BDSBunch * bunch
BDSIM particle generator.
virtual void GeneratePrimaries(G4Event *)
Main interface for Geant4. Prepare primary(ies) for the event.
void SetWorldExtent(const BDSExtent worldExtentIn)
Set the world extent that particle coordinates will be checked against.
int * currentElementIndex
External integer for which element to track in.
G4ParticleGun * particleGun
Geant4 particle gun that creates single particles.
BDSExtent worldExtent
World extent that particle coordinates are checked against to ensure they're inside it.
BDSLinkDetectorConstruction * construction
Cache of detector construction for link registry of transforms.
Loader of ROOT Event output for recreating events.
Class to load and use PTC 1 turn map.