G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTOutputConfig Class Reference

Shared output configuration used by all G4OCCTRunAction instances. More...

#include <G4OCCTOutputConfig.hh>

Public Member Functions

 G4OCCTOutputConfig ()
 
 ~G4OCCTOutputConfig ()
 

Public Attributes

G4String fileName = "g4occt"
 Base CSV filename (no extension).
 
G4bool recordSteps = true
 Enable the per-step ntuple.
 
G4bool recordTracks = true
 Enable the per-track ntuple.
 
G4bool recordEvents = true
 Enable the per-event ntuple.
 

Detailed Description

Shared output configuration used by all G4OCCTRunAction instances.

Owns the /G4OCCT/output/ messenger so that UI commands issued before the run affect every worker thread's run action (which read these values in BeginOfRunAction). A single instance lives in G4OCCTActionInitialization and is passed by pointer to every run action, so the messenger is registered in both MT and sequential builds.

Note
The messenger binds directly to the public data members, which are written on the UI thread before BeamOn and read by worker threads only during BeginOfRunAction — no locking is required.

Definition at line 30 of file G4OCCTOutputConfig.hh.

Constructor & Destructor Documentation

◆ G4OCCTOutputConfig()

G4OCCTOutputConfig::G4OCCTOutputConfig ( )

Definition at line 10 of file G4OCCTOutputConfig.cc.

References fileName, recordEvents, recordSteps, and recordTracks.

◆ ~G4OCCTOutputConfig()

G4OCCTOutputConfig::~G4OCCTOutputConfig ( )
default

Member Data Documentation

◆ fileName

G4String G4OCCTOutputConfig::fileName = "g4occt"

Base CSV filename (no extension).

Definition at line 35 of file G4OCCTOutputConfig.hh.

Referenced by G4OCCTRunAction::BeginOfRunAction(), and G4OCCTOutputConfig().

◆ recordEvents

G4bool G4OCCTOutputConfig::recordEvents = true

Enable the per-event ntuple.

Definition at line 38 of file G4OCCTOutputConfig.hh.

Referenced by G4OCCTRunAction::BeginOfRunAction(), and G4OCCTOutputConfig().

◆ recordSteps

G4bool G4OCCTOutputConfig::recordSteps = true

Enable the per-step ntuple.

Definition at line 36 of file G4OCCTOutputConfig.hh.

Referenced by G4OCCTRunAction::BeginOfRunAction(), and G4OCCTOutputConfig().

◆ recordTracks

G4bool G4OCCTOutputConfig::recordTracks = true

Enable the per-track ntuple.

Definition at line 37 of file G4OCCTOutputConfig.hh.

Referenced by G4OCCTRunAction::BeginOfRunAction(), and G4OCCTOutputConfig().


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