actions
Loading...
Searching...
No Matches
GRun Class Reference

Thread-local run object created by the GEMC run action. More...

#include <gRun.h>

Public Member Functions

 GRun (std::shared_ptr< GOptions > gopts, std::shared_ptr< gdynamicdigitization::dRoutinesMap > digi_map)
 Constructs the run object for the current execution thread.
 
 ~GRun () override=default
 
 GRun (const GRun &)=delete
 
GRunoperator= (const GRun &)=delete
 
 GRun (GRun &&)=delete
 
GRunoperator= (GRun &&)=delete
 
- Public Member Functions inherited from GBase< GRun >
 GBase (const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
 
 GBase (const std::shared_ptr< GLogger > &logger)
 
 GBase (const GBase &)=default
 
 GBase (GBase &&) noexcept=default
 
virtual ~GBase ()
 
GBaseoperator= (const GBase &)=default
 
GBaseoperator= (GBase &&) noexcept=default
 

Additional Inherited Members

- Protected Attributes inherited from GBase< GRun >
std::shared_ptr< GLoggerlog
 

Detailed Description

In Geant4, a run represents a sequence of events managed under one BeamOn() request. In multithreaded execution, each worker thread owns its own run object, and Geant4 may later merge worker-side run information into a master-level view.

In this module, GRun acts as the run object instantiated through the private method GenerateRun(). Its current role is intentionally small: it stores access to the shared digitization-routine map so the run-level execution context has a consistent view of the digitization configuration throughout the run.

Even though the class is lightweight, it is the natural extension point for future run-scoped services and state that should live for the duration of a thread-local run.

Definition at line 54 of file gRun.h.

Constructor & Destructor Documentation

◆ GRun() [1/3]

GRun::GRun ( std::shared_ptr< GOptions > gopts,
std::shared_ptr< gdynamicdigitization::dRoutinesMap > digi_map )
explicit
Parameters
goptsShared configuration object used for logging and any run-scoped behavior.
digi_mapShared digitization-routine map associated with this run context.

Definition at line 10 of file gRun.cc.

◆ ~GRun()

GRun::~GRun ( )
overridedefault

◆ GRun() [2/3]

GRun::GRun ( const GRun & )
delete

◆ GRun() [3/3]

GRun::GRun ( GRun && )
delete

Member Function Documentation

◆ operator=() [1/2]

GRun & GRun::operator= ( const GRun & )
delete

◆ operator=() [2/2]

GRun & GRun::operator= ( GRun && )
delete

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