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

Trivial vertex generator returning a single user-configured point. More...

#include <RMGVertexFromPoint.hh>

Inheritance diagram for RMGVertexFromPoint:
Collaboration diagram for RMGVertexFromPoint:

Public Member Functions

 RMGVertexFromPoint (RMGVertexFromPoint const &)=delete
 
RMGVertexFromPointoperator= (RMGVertexFromPoint const &)=delete
 
 RMGVertexFromPoint (RMGVertexFromPoint &&)=delete
 
RMGVertexFromPointoperator= (RMGVertexFromPoint &&)=delete
 
bool GenerateVertex (G4ThreeVector &vertex) override
 Return the configured fixed point; always succeeds.
 
- Public Member Functions inherited from RMGVVertexGenerator
 RMGVVertexGenerator (std::string name)
 
 RMGVVertexGenerator (RMGVVertexGenerator const &)=delete
 
RMGVVertexGeneratoroperator= (RMGVVertexGenerator const &)=delete
 
 RMGVVertexGenerator (RMGVVertexGenerator &&)=delete
 
RMGVVertexGeneratoroperator= (RMGVVertexGenerator &&)=delete
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 
void SetMaxAttempts (int val)
 Set the maximum number of attempts for vertex generation.
 
int GetMaxAttempts () const
 Get the maximum number of attempts for vertex generation.
 

Additional Inherited Members

- Protected Attributes inherited from RMGVVertexGenerator
std::string fGeneratorName
 
int fMaxAttempts = 100
 
const G4ThreeVector kDummyPrimaryPosition = G4ThreeVector(0, 0, 0)
 
std::unique_ptr< G4UImessengerfMessenger
 

Detailed Description

Trivial vertex generator returning a single user-configured point.

The vertex coordinates are set through the /RMG/Generator/Confine/FromPoint/ messenger commands. Useful for debugging and for sources with a well-defined fixed location.

Member Function Documentation

◆ GenerateVertex()

bool RMGVertexFromPoint::GenerateVertex ( G4ThreeVector & vertex)
inlineoverridevirtual

Return the configured fixed point; always succeeds.

Reimplemented from RMGVVertexGenerator.


The documentation for this class was generated from the following files: