remage
Simulation framework for HPGe-based experiments
Loading...
Searching...
No Matches
RMGGeneratorG4Gun Class Reference

Thin RMGVGenerator wrapper around Geant4's G4ParticleGun. More...

#include <RMGGeneratorG4Gun.hh>

Inheritance diagram for RMGGeneratorG4Gun:
Collaboration diagram for RMGGeneratorG4Gun:

Public Member Functions

 RMGGeneratorG4Gun (RMGGeneratorG4Gun const &)=delete
RMGGeneratorG4Gunoperator= (RMGGeneratorG4Gun const &)=delete
 RMGGeneratorG4Gun (RMGGeneratorG4Gun &&)=delete
RMGGeneratorG4Gunoperator= (RMGGeneratorG4Gun &&)=delete
void GeneratePrimaries (G4Event *event) override
 Fire the configured particle gun into event.
void SetParticlePosition (G4ThreeVector vec) override
 Set the vertex position used by the next call to GeneratePrimaries.
Public Member Functions inherited from RMGVGenerator
 RMGVGenerator (std::string name)
 RMGVGenerator (RMGVGenerator const &)=delete
RMGVGeneratoroperator= (RMGVGenerator const &)=delete
 RMGVGenerator (RMGVGenerator &&)=delete
RMGVGeneratoroperator= (RMGVGenerator &&)=delete
virtual void BeginOfRunAction (const G4Run *)
 Called at the beginning of a run.
virtual void EndOfRunAction (const G4Run *)
 Called at the end of a run.
void SetReportingFrequency (int freq)
std::string GetGeneratorName ()

Additional Inherited Members

Protected Attributes inherited from RMGVGenerator
std::string fGeneratorName
std::unique_ptr< G4UImessengerfMessenger
int fReportingFrequency = 1000

Detailed Description

Thin RMGVGenerator wrapper around Geant4's G4ParticleGun.

Vertex sampling is delegated to a vertex generator via SetParticlePosition; particle type and kinematics are configured through the standard /gun/ macro commands.

Member Function Documentation

◆ GeneratePrimaries()

void RMGGeneratorG4Gun::GeneratePrimaries ( G4Event * event)
inlineoverridevirtual

Fire the configured particle gun into event.

Implements RMGVGenerator.

◆ SetParticlePosition()

void RMGGeneratorG4Gun::SetParticlePosition ( G4ThreeVector vec)
inlineoverridevirtual

Set the vertex position used by the next call to GeneratePrimaries.

Implements RMGVGenerator.


The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/remage/checkouts/latest/include/RMGGeneratorG4Gun.hh