Geant4  10.02.p03
G4FastSimulationMessenger Class Reference

#include <G4FastSimulationMessenger.hh>

Inheritance diagram for G4FastSimulationMessenger:
Collaboration diagram for G4FastSimulationMessenger:

Public Member Functions

 G4FastSimulationMessenger (G4GlobalFastSimulationManager *theGFSM)
 
virtual ~G4FastSimulationMessenger ()
 
void SetNewValue (G4UIcommand *command, G4String newValues)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Private Attributes

G4GlobalFastSimulationManagerfGlobalFastSimulationManager
 
G4UIdirectoryfFSDirectory
 
G4UIcmdWithoutParameterfShowSetupCmd
 
G4UIcmdWithAStringfListEnvelopesCmd
 
G4UIcmdWithAStringfListModelsCmd
 
G4UIcmdWithAStringfListIsApplicableCmd
 
G4UIcmdWithAStringfActivateModel
 
G4UIcmdWithAStringfInActivateModel
 

Additional Inherited Members

- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Definition at line 53 of file G4FastSimulationMessenger.hh.

Constructor & Destructor Documentation

◆ G4FastSimulationMessenger()

G4FastSimulationMessenger::G4FastSimulationMessenger ( G4GlobalFastSimulationManager theGFSM)

Definition at line 38 of file G4FastSimulationMessenger.cc.

40 {
41  fFSDirectory = new G4UIdirectory("/param/");
42  fFSDirectory->SetGuidance("Fast Simulation print/control commands.");
43 
45  new G4UIcmdWithoutParameter("/param/showSetup", this);
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 
55  new G4UIcmdWithAString("/param/listEnvelopes", this);
56  fListEnvelopesCmd->SetParameterName("ParticleName",true);
58  fListEnvelopesCmd->SetGuidance("List all the envelope names for a given Particle");
59  fListEnvelopesCmd->SetGuidance("(or for all particles if without parameters).");
61 
63  new G4UIcmdWithAString("/param/listModels", this);
64  fListModelsCmd->SetParameterName("EnvelopeName",true);
66  fListModelsCmd->SetGuidance("List all the Model names for a given Envelope");
67  fListModelsCmd->SetGuidance("(or for all envelopes if without parameters).");
69 
71  new G4UIcmdWithAString("/param/listIsApplicable", this);
72  fListIsApplicableCmd->SetParameterName("ModelName",true);
74  fListIsApplicableCmd->SetGuidance("List all the Particle names a given Model is applicable");
75  fListIsApplicableCmd->SetGuidance("(or for all Models if without parameters).");
76 
78  new G4UIcmdWithAString("/param/ActivateModel", this);
79  fActivateModel->SetParameterName("ModelName",false);
80  fActivateModel->SetGuidance("Activate a given Model.");
81 
83  new G4UIcmdWithAString("/param/InActivateModel", this);
84  fInActivateModel->SetParameterName("ModelName",false);
85  fInActivateModel->SetGuidance("InActivate a given Model.");
86 }
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4UIcmdWithAString * fListIsApplicableCmd
G4UIcmdWithAString * fListEnvelopesCmd
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
G4GlobalFastSimulationManager * fGlobalFastSimulationManager
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
void SetDefaultValue(const char *defVal)
G4UIcmdWithoutParameter * fShowSetupCmd
Here is the call graph for this function:

◆ ~G4FastSimulationMessenger()

G4FastSimulationMessenger::~G4FastSimulationMessenger ( )
virtual

Definition at line 88 of file G4FastSimulationMessenger.cc.

89 {
90  delete fShowSetupCmd;
91  fShowSetupCmd = 0;
92  delete fListIsApplicableCmd;
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 }
G4UIcmdWithAString * fListIsApplicableCmd
G4UIcmdWithAString * fListEnvelopesCmd
G4UIcmdWithoutParameter * fShowSetupCmd

Member Function Documentation

◆ SetNewValue()

void G4FastSimulationMessenger::SetNewValue ( G4UIcommand command,
G4String  newValues 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 106 of file G4FastSimulationMessenger.cc.

107 {
108  if (command == fShowSetupCmd)
110  if( command == fListEnvelopesCmd)
111  {
112  if(newValue == "all")
114  else
116  ListEnvelopes(G4ParticleTable::GetParticleTable()->
117  FindParticle(newValue));
118  }
119  if( command == fListModelsCmd)
121  if( command == fListIsApplicableCmd)
123  if( command == fActivateModel)
125  if( command == fInActivateModel)
127 }
void InActivateFastSimulationModel(const G4String &)
void ListEnvelopes(const G4String &aName="all", listType aListType=NAMES_ONLY)
G4UIcmdWithAString * fListIsApplicableCmd
G4UIcmdWithAString * fListEnvelopesCmd
G4GlobalFastSimulationManager * fGlobalFastSimulationManager
static G4ParticleTable * GetParticleTable()
G4UIcmdWithoutParameter * fShowSetupCmd
Here is the call graph for this function:

Member Data Documentation

◆ fActivateModel

G4UIcmdWithAString* G4FastSimulationMessenger::fActivateModel
private

Definition at line 71 of file G4FastSimulationMessenger.hh.

◆ fFSDirectory

G4UIdirectory* G4FastSimulationMessenger::fFSDirectory
private

Definition at line 66 of file G4FastSimulationMessenger.hh.

◆ fGlobalFastSimulationManager

G4GlobalFastSimulationManager* G4FastSimulationMessenger::fGlobalFastSimulationManager
private

Definition at line 63 of file G4FastSimulationMessenger.hh.

◆ fInActivateModel

G4UIcmdWithAString* G4FastSimulationMessenger::fInActivateModel
private

Definition at line 72 of file G4FastSimulationMessenger.hh.

◆ fListEnvelopesCmd

G4UIcmdWithAString* G4FastSimulationMessenger::fListEnvelopesCmd
private

Definition at line 68 of file G4FastSimulationMessenger.hh.

◆ fListIsApplicableCmd

G4UIcmdWithAString* G4FastSimulationMessenger::fListIsApplicableCmd
private

Definition at line 70 of file G4FastSimulationMessenger.hh.

◆ fListModelsCmd

G4UIcmdWithAString* G4FastSimulationMessenger::fListModelsCmd
private

Definition at line 69 of file G4FastSimulationMessenger.hh.

◆ fShowSetupCmd

G4UIcmdWithoutParameter* G4FastSimulationMessenger::fShowSetupCmd
private

Definition at line 67 of file G4FastSimulationMessenger.hh.


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