G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTRunAction.hh
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// Copyright (C) 2026 G4OCCT Contributors
3
6
7#ifndef G4OCCT_APP_G4OCCTRunAction_hh
8#define G4OCCT_APP_G4OCCTRunAction_hh
9
10#include <G4Types.hh>
11#include <G4UserRunAction.hh>
12
14
29class G4OCCTRunAction : public G4UserRunAction {
30public:
31 explicit G4OCCTRunAction(const G4OCCTOutputConfig* config);
32 ~G4OCCTRunAction() override = default;
33
34 void BeginOfRunAction(const G4Run* run) override;
35 void EndOfRunAction(const G4Run* run) override;
36
39 G4int GetStepsNtupleId() const { return fStepsNtupleId; }
40 G4int GetTracksNtupleId() const { return fTracksNtupleId; }
41 G4int GetEventsNtupleId() const { return fEventsNtupleId; }
43
44private:
45 const G4OCCTOutputConfig* fConfig;
46
47 G4int fStepsNtupleId = -1;
48 G4int fTracksNtupleId = -1;
49 G4int fEventsNtupleId = -1;
50};
51
52#endif // G4OCCT_APP_G4OCCTRunAction_hh
Shared output configuration used by all G4OCCTRunAction instances.
Run action that opens and closes a G4AnalysisManager CSV output file.
G4int GetEventsNtupleId() const
G4int GetTracksNtupleId() const
~G4OCCTRunAction() override=default
void EndOfRunAction(const G4Run *run) override
G4int GetStepsNtupleId() const
void BeginOfRunAction(const G4Run *run) override