#include <G4FastSimulationMessenger.hh>
◆ G4FastSimulationMessenger()
Definition at line 37 of file G4FastSimulationMessenger.cc.
39 : fGlobalFastSimulationManager(theGFSM)
40{
42 fFSDirectory->
SetGuidance(
"Fast Simulation print/control commands.");
43
44 fShowSetupCmd =
46 fShowSetupCmd->
SetGuidance(
"Show fast simulation setup:");
47 fShowSetupCmd->
SetGuidance(
" - for each world region:");
48 fShowSetupCmd->
SetGuidance(
" 1) fast simulation manager process attached;");
49 fShowSetupCmd->
SetGuidance(
" - and to which particles the process is attached to;");
50 fShowSetupCmd->
SetGuidance(
" 2) region hierarchy;");
51 fShowSetupCmd->
SetGuidance(
" - with for each the fast simulation models attached;");
53
54 fListEnvelopesCmd =
58 fListEnvelopesCmd->
SetGuidance(
"List all the envelope names for a given Particle");
59 fListEnvelopesCmd->
SetGuidance(
"(or for all particles if without parameters).");
61
62 fListModelsCmd =
66 fListModelsCmd->
SetGuidance(
"List all the Model names for a given Envelope");
67 fListModelsCmd->
SetGuidance(
"(or for all envelopes if without parameters).");
69
70 fListIsApplicableCmd =
74 fListIsApplicableCmd->
SetGuidance(
"List all the Particle names a given Model is applicable");
75 fListIsApplicableCmd->
SetGuidance(
"(or for all Models if without parameters).");
76
77 fActivateModel =
80 fActivateModel->
SetGuidance(
"Activate a given Model.");
81
82 fInActivateModel =
85 fInActivateModel->
SetGuidance(
"InActivate a given Model.");
86}
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
◆ ~G4FastSimulationMessenger()
G4FastSimulationMessenger::~G4FastSimulationMessenger |
( |
| ) |
|
|
virtual |
Definition at line 88 of file G4FastSimulationMessenger.cc.
89{
90 delete fShowSetupCmd;
91 fShowSetupCmd = 0;
92 delete fListIsApplicableCmd;
93 fListIsApplicableCmd = 0;
94 delete fActivateModel;
95 fActivateModel = 0;
96 delete fInActivateModel;
97 fInActivateModel = 0;
98 delete fListModelsCmd;
99 fListModelsCmd = 0;
100 delete fListEnvelopesCmd;
101 fListEnvelopesCmd = 0;
102 delete fFSDirectory;
103 fFSDirectory = 0;
104}
◆ SetNewValue()
Reimplemented from G4UImessenger.
Definition at line 106 of file G4FastSimulationMessenger.cc.
107{
108 if (command == fShowSetupCmd)
109 fGlobalFastSimulationManager->
ShowSetup();
110 if( command == fListEnvelopesCmd)
111 {
112 if(newValue == "all")
114 else
115 fGlobalFastSimulationManager->
117 FindParticle(newValue));
118 }
119 if( command == fListModelsCmd)
121 if( command == fListIsApplicableCmd)
123 if( command == fActivateModel)
125 if( command == fInActivateModel)
127}
void ListEnvelopes(const G4String &aName="all", listType aListType=NAMES_ONLY)
void InActivateFastSimulationModel(const G4String &)
void ActivateFastSimulationModel(const G4String &)
static G4ParticleTable * GetParticleTable()
The documentation for this class was generated from the following files: