|
G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
|
Run action that opens and closes a G4AnalysisManager CSV output file. More...
#include <G4OCCTRunAction.hh>
Public Member Functions | |
| G4OCCTRunAction (const G4OCCTOutputConfig *config) | |
| ~G4OCCTRunAction () override=default | |
| void | BeginOfRunAction (const G4Run *run) override |
| void | EndOfRunAction (const G4Run *run) override |
Ntuple IDs (valid after BeginOfRunAction, -1 if disabled) | |
| G4int | GetStepsNtupleId () const |
| G4int | GetTracksNtupleId () const |
| G4int | GetEventsNtupleId () const |
Run action that opens and closes a G4AnalysisManager CSV output file.
Three ntuples are booked, each independently toggleable via the shared G4OCCTOutputConfig (owned by G4OCCTActionInitialization):
<fileName>_nt_steps.csv (per G4Step) <fileName>_nt_tracks.csv (per G4Track, at track end) <fileName>_nt_events.csv (per G4Event, at event end)Output settings are controlled via /G4OCCT/output/ messenger commands that write to the shared G4OCCTOutputConfig object. Every run action instance (master and all workers) receives a pointer to the same config and reads it in BeginOfRunAction, so UI commands reliably affect all threads.
Definition at line 29 of file G4OCCTRunAction.hh.
|
explicit |
Definition at line 14 of file G4OCCTRunAction.cc.
|
overridedefault |
|
override |
Definition at line 16 of file G4OCCTRunAction.cc.
References G4OCCTOutputConfig::fileName, G4OCCTOutputConfig::recordEvents, G4OCCTOutputConfig::recordSteps, and G4OCCTOutputConfig::recordTracks.
|
override |
Definition at line 78 of file G4OCCTRunAction.cc.
|
inline |
Definition at line 41 of file G4OCCTRunAction.hh.
Referenced by G4OCCTEventAction::EndOfEventAction().
|
inline |
Definition at line 39 of file G4OCCTRunAction.hh.
Referenced by G4OCCTSteppingAction::UserSteppingAction().
|
inline |
Definition at line 40 of file G4OCCTRunAction.hh.
Referenced by G4OCCTTrackingAction::PostUserTrackingAction().