Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4RunMessenger.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27//
28//
29// GEANT 4 class header file
30
31// class description:
32//
33// This is a messenger class for G4RunManager.
34// Implemented commands are following;
35//
36// Commands :
37// beamOn * Start a Run.
38// verbose * Set the Verbose level of G4RunManager.
39// printProgress * Set the frequency of printing out the progress of a
40// run. dumpRegion * Dump information of a region. dumpCouples *
41// Dump information of material-cuts-couples. optimizeGeometry * Set the
42// optimization flag of closing geometry. breakAtBeginOfEvent * Set a break
43// point at the beginning of every event. breakAtEndOfEvent * Set a break
44// point at the end of every event. abort * Abort current run
45// processing. Initialize * Initialize G4 kernel. geometryModified *
46// Force geometry to be closed again. physicsModified * Force
47// cross-section tables to be calculated again.
48// (and rebuilding physics table will be invoked)
49// constructScoringWorlds * Construct scoring world(s) if defined
50//
51
52#ifndef G4RunMessenger_h
53#define G4RunMessenger_h 1
54
55class G4RunManager;
56class G4UIdirectory;
61class G4UIcommand;
63
64#include "G4UImessenger.hh"
65#include "globals.hh"
66
68{
69 public:
72
73 public:
74 void SetNewValue(G4UIcommand* command, G4String newValues);
76
77 private:
78 G4RunManager* runManager;
79 G4String macroFileName; // internal use only!!!
80
81 private: // commands
82 G4UIdirectory* runDirectory;
83 G4UIcommand* beamOnCmd;
84 G4UIcmdWithAnInteger* verboseCmd;
85 G4UIcmdWithAnInteger* printProgCmd;
86 G4UIcmdWithAnInteger* nThreadsCmd;
87 G4UIcmdWithoutParameter* maxThreadsCmd;
88 G4UIcmdWithAnInteger* pinAffinityCmd;
89 G4UIcommand* evModCmd;
90 G4UIcmdWithAString* dumpRegCmd;
91 G4UIcmdWithoutParameter* dumpCoupleCmd;
92 G4UIcmdWithABool* optCmd;
93 G4UIcmdWithABool* brkBoECmd;
94 G4UIcmdWithABool* brkEoECmd;
95 G4UIcmdWithABool* abortCmd;
96 G4UIcmdWithoutParameter* abortEventCmd;
99 G4UIcmdWithABool* geomRebCmd;
101 G4UIcmdWithAnInteger* randEvtCmd;
102 G4UIcommand* procUICmds;
103
104 G4UIdirectory* randomDirectory;
105 G4UIcmdWithAString* seedCmd;
106 G4UIcmdWithAString* randDirCmd;
107 G4UIcmdWithABool* savingFlagCmd;
108 G4UIcmdWithoutParameter* saveThisRunCmd;
109 G4UIcmdWithoutParameter* saveThisEventCmd;
110 G4UIcmdWithAString* restoreRandCmd;
111 G4UIcmdWithABool* saveEachEventCmd;
112 G4UIcmdWithABool* restoreRandCmdMT;
113
114 G4UIcmdWithoutParameter* constScoreCmd;
115
116 G4MaterialScanner* materialScanner;
117};
118
119#endif
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValues)