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

Run action that opens and closes a G4AnalysisManager CSV output file. More...

#include <G4OCCTRunAction.hh>

Inheritance diagram for G4OCCTRunAction:

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
 

Detailed Description

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):

  • "steps" → <fileName>_nt_steps.csv (per G4Step)
  • "tracks" → <fileName>_nt_tracks.csv (per G4Track, at track end)
  • "events" → <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.

Constructor & Destructor Documentation

◆ G4OCCTRunAction()

G4OCCTRunAction::G4OCCTRunAction ( const G4OCCTOutputConfig config)
explicit

Definition at line 14 of file G4OCCTRunAction.cc.

◆ ~G4OCCTRunAction()

G4OCCTRunAction::~G4OCCTRunAction ( )
overridedefault

Member Function Documentation

◆ BeginOfRunAction()

void G4OCCTRunAction::BeginOfRunAction ( const G4Run *  run)
override

◆ EndOfRunAction()

void G4OCCTRunAction::EndOfRunAction ( const G4Run *  run)
override

Definition at line 78 of file G4OCCTRunAction.cc.

◆ GetEventsNtupleId()

G4int G4OCCTRunAction::GetEventsNtupleId ( ) const
inline

Definition at line 41 of file G4OCCTRunAction.hh.

Referenced by G4OCCTEventAction::EndOfEventAction().

◆ GetStepsNtupleId()

G4int G4OCCTRunAction::GetStepsNtupleId ( ) const
inline

Definition at line 39 of file G4OCCTRunAction.hh.

Referenced by G4OCCTSteppingAction::UserSteppingAction().

◆ GetTracksNtupleId()

G4int G4OCCTRunAction::GetTracksNtupleId ( ) const
inline

Definition at line 40 of file G4OCCTRunAction.hh.

Referenced by G4OCCTTrackingAction::PostUserTrackingAction().


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