Class RMGGeneratorG4Gun

Inheritance Relationships

Base Type

Class Documentation

class RMGGeneratorG4Gun : public RMGVGenerator

Public Functions

inline RMGGeneratorG4Gun()
~RMGGeneratorG4Gun() = default
RMGGeneratorG4Gun(RMGGeneratorG4Gun const&) = delete
RMGGeneratorG4Gun &operator=(RMGGeneratorG4Gun const&) = delete
RMGGeneratorG4Gun(RMGGeneratorG4Gun&&) = delete
RMGGeneratorG4Gun &operator=(RMGGeneratorG4Gun&&) = delete
inline virtual void GeneratePrimaries(G4Event *event) override

Generate primary particles for an event.

Derived generators must implement this method to create primary particles and add them to the given G4Event.

Parameters:

event – Pointer to the G4Event.

inline virtual void SetParticlePosition(G4ThreeVector vec) override

Set the primary vertex position.

This pure virtual method must be implemented by derived classes to set the primary vertex position for the generator.

Parameters:

vec – The desired primary vertex position.