Class RMGGeomBench

Inheritance Relationships

Base Type

Class Documentation

class RMGGeomBench : public RMGVGenerator

Public Functions

RMGGeomBench()
~RMGGeomBench()
RMGGeomBench(RMGGeomBench const&) = delete
RMGGeomBench &operator=(RMGGeomBench const&) = delete
RMGGeomBench(RMGGeomBench&&) = delete
RMGGeomBench &operator=(RMGGeomBench&&) = delete
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) 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.

void RecordBatchTime(int pixel_idx, double batch_time)
void SaveAllPixels()
virtual void BeginOfRunAction(const G4Run *r) override

Called at the beginning of a run.

Derived generators can perform any necessary initialization in this method.

virtual void EndOfRunAction(const G4Run *r) override

Called at the end of a run.

Derived generators can perform any necessary finalization in this method.