G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTOutputConfig.cc
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// Copyright (C) 2026 G4OCCT Contributors
3
5
7
8#include <G4GenericMessenger.hh>
9
11 fMessenger =
12 std::make_unique<G4GenericMessenger>(this, "/G4OCCT/output/", "G4OCCT output control");
13
14 fMessenger->DeclareProperty("setFileName", fileName)
15 .SetGuidance("Base filename for CSV output (without extension).")
16 .SetParameterName("name", false)
17 .SetDefaultValue("g4occt");
18
19 fMessenger->DeclareProperty("recordSteps", recordSteps)
20 .SetGuidance("Enable or disable per-step ntuple (-> <name>_nt_steps.csv).")
21 .SetDefaultValue("true");
22
23 fMessenger->DeclareProperty("recordTracks", recordTracks)
24 .SetGuidance("Enable or disable per-track ntuple (-> <name>_nt_tracks.csv).")
25 .SetDefaultValue("true");
26
27 fMessenger->DeclareProperty("recordEvents", recordEvents)
28 .SetGuidance("Enable or disable per-event ntuple (-> <name>_nt_events.csv).")
29 .SetDefaultValue("true");
30}
31
Shared output configuration for the g4occt CSV output mechanism.
G4bool recordEvents
Enable the per-event ntuple.
G4bool recordSteps
Enable the per-step ntuple.
G4String fileName
Base CSV filename (no extension).
G4bool recordTracks
Enable the per-track ntuple.