Geant4  10.02.p03
G4AdjointPhysicsMessenger Class Reference

#include <G4AdjointPhysicsMessenger.hh>

Inheritance diagram for G4AdjointPhysicsMessenger:
Collaboration diagram for G4AdjointPhysicsMessenger:

Public Member Functions

 G4AdjointPhysicsMessenger (G4AdjointPhysicsList *)
 
virtual ~G4AdjointPhysicsMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 
- 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

G4AdjointPhysicsListfPhysicsList
 
G4UIdirectoryfPhysicsDir
 
G4UIcmdWithABoolfUsepIonisationCmd
 
G4UIcmdWithABoolfUseBremCmd
 
G4UIcmdWithABoolfUseComptonCmd
 
G4UIcmdWithABoolfUseMSCmd
 
G4UIcmdWithABoolfUsePEEffectCmd
 
G4UIcmdWithABoolfUseGammaConversionCmd
 
G4UIcmdWithABoolfUseEgainFluctuationCmd
 
G4UIcmdWithADoubleAndUnitfSetEminAdjModelsCmd
 
G4UIcmdWithADoubleAndUnitfSetEmaxAdjModelsCmd
 

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 64 of file G4AdjointPhysicsMessenger.hh.

Constructor & Destructor Documentation

◆ G4AdjointPhysicsMessenger()

G4AdjointPhysicsMessenger::G4AdjointPhysicsMessenger ( G4AdjointPhysicsList pPhysicsList)

Definition at line 56 of file G4AdjointPhysicsMessenger.cc.

58 : G4UImessenger(),
59  fPhysicsList(pPhysicsList),
60  fPhysicsDir(0),
62  fUseBremCmd(0),
63  fUseComptonCmd(0),
64  fUseMSCmd(0),
65  fUsePEEffectCmd(0),
70 {
71  fPhysicsDir = new G4UIdirectory("/adjoint_physics/");
72 
74  "Definition of adjoint and forward physics processes");
75  //-------
77  "/adjoint_physics/UseProtonIonisation",this);
79  "If true (false) the proton ionisation is (not) considered");
81 
82  fUseBremCmd = new G4UIcmdWithABool("/adjoint_physics/UseBremsstrahlung",this);
84  "If true (false) the bremsstrahlung process is (not) considered");
86 
87  fUseComptonCmd = new G4UIcmdWithABool("/adjoint_physics/UseCompton",this);
89  "If true (false) the Compton scattering is (not) considered");
91 
92  fUseMSCmd = new G4UIcmdWithABool("/adjoint_physics/UseMS",this);
94  "If true (false) the continuous multiple scattering is (not) considered");
96 
98  "/adjoint_physics/UseEgainElossFluctuation",this);
100  "Switch on/off the fluctation for continuous energy gain/loss");
102 
103  fUsePEEffectCmd = new G4UIcmdWithABool("/adjoint_physics/UsePEEffect",this);
106  "If true (false) the photo electric effect is (not) considered");
107 
109  "/adjoint_physics/UseGammaConversion",this);
112  "If true the fwd gamma pair conversion is considered");
113 
115  "/adjoint_physics/SetEminForAdjointModels",this);
117  "Set the minimum energy of the adjoint models");
118  fSetEminAdjModelsCmd->SetParameterName("Emin",false);
121 
123  "/adjoint_physics/SetEmaxForAdjointModels",this);
125  "Set the minimum energy of the adjoint models.");
126  fSetEmaxAdjModelsCmd->SetParameterName("Emax",false);
129 }
G4UIcmdWithABool * fUseEgainFluctuationCmd
void SetUnitCategory(const char *unitCategory)
G4UIcmdWithADoubleAndUnit * fSetEminAdjModelsCmd
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:161
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:239
G4UIcmdWithADoubleAndUnit * fSetEmaxAdjModelsCmd
G4AdjointPhysicsList * fPhysicsList
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
Here is the call graph for this function:

◆ ~G4AdjointPhysicsMessenger()

G4AdjointPhysicsMessenger::~G4AdjointPhysicsMessenger ( )
virtual

Definition at line 133 of file G4AdjointPhysicsMessenger.cc.

134 {
135  delete fUsepIonisationCmd;
136  delete fUseBremCmd;
137  delete fUseComptonCmd;
138  delete fUseMSCmd;
139  delete fUsePEEffectCmd;
140  delete fUseGammaConversionCmd;
142  delete fSetEminAdjModelsCmd;
143  delete fSetEmaxAdjModelsCmd;
144 }
G4UIcmdWithABool * fUseEgainFluctuationCmd
G4UIcmdWithADoubleAndUnit * fSetEminAdjModelsCmd
G4UIcmdWithADoubleAndUnit * fSetEmaxAdjModelsCmd

Member Function Documentation

◆ SetNewValue()

void G4AdjointPhysicsMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 148 of file G4AdjointPhysicsMessenger.cc.

150 {
151  if ( command==fUsepIonisationCmd){
154 
155  }
156  else if ( command==fUseBremCmd){
158  }
159  else if ( command==fUseComptonCmd){
161  }
162  else if ( command==fUseMSCmd){
164  }
165  else if ( command==fUsePEEffectCmd){
167  }
168  else if ( command==fUseGammaConversionCmd){
171  }
172  else if ( command==fUseEgainFluctuationCmd){
175  }
176 
177  else if ( command== fSetEminAdjModelsCmd){
180  }
181  else if ( command== fSetEmaxAdjModelsCmd){
184  }
185 }
void SetUseGammaConversion(bool aBool)
G4UIcmdWithABool * fUseEgainFluctuationCmd
void SetEmaxAdjModels(G4double aVal)
static G4double GetNewDoubleValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
void SetUseProtonIonisation(bool aBool)
G4UIcmdWithADoubleAndUnit * fSetEminAdjModelsCmd
void SetEminAdjModels(G4double aVal)
G4UIcmdWithADoubleAndUnit * fSetEmaxAdjModelsCmd
G4AdjointPhysicsList * fPhysicsList
void SetUseCompton(bool aBool)
void SetUsePEEffect(bool aBool)
void SetUseEgainFluctuation(bool aBool)
void SetUseBrem(bool aBool)
Here is the call graph for this function:

Member Data Documentation

◆ fPhysicsDir

G4UIdirectory* G4AdjointPhysicsMessenger::fPhysicsDir
private

Definition at line 73 of file G4AdjointPhysicsMessenger.hh.

◆ fPhysicsList

G4AdjointPhysicsList* G4AdjointPhysicsMessenger::fPhysicsList
private

Definition at line 72 of file G4AdjointPhysicsMessenger.hh.

◆ fSetEmaxAdjModelsCmd

G4UIcmdWithADoubleAndUnit* G4AdjointPhysicsMessenger::fSetEmaxAdjModelsCmd
private

Definition at line 84 of file G4AdjointPhysicsMessenger.hh.

◆ fSetEminAdjModelsCmd

G4UIcmdWithADoubleAndUnit* G4AdjointPhysicsMessenger::fSetEminAdjModelsCmd
private

Definition at line 83 of file G4AdjointPhysicsMessenger.hh.

◆ fUseBremCmd

G4UIcmdWithABool* G4AdjointPhysicsMessenger::fUseBremCmd
private

Definition at line 77 of file G4AdjointPhysicsMessenger.hh.

◆ fUseComptonCmd

G4UIcmdWithABool* G4AdjointPhysicsMessenger::fUseComptonCmd
private

Definition at line 78 of file G4AdjointPhysicsMessenger.hh.

◆ fUseEgainFluctuationCmd

G4UIcmdWithABool* G4AdjointPhysicsMessenger::fUseEgainFluctuationCmd
private

Definition at line 82 of file G4AdjointPhysicsMessenger.hh.

◆ fUseGammaConversionCmd

G4UIcmdWithABool* G4AdjointPhysicsMessenger::fUseGammaConversionCmd
private

Definition at line 81 of file G4AdjointPhysicsMessenger.hh.

◆ fUseMSCmd

G4UIcmdWithABool* G4AdjointPhysicsMessenger::fUseMSCmd
private

Definition at line 79 of file G4AdjointPhysicsMessenger.hh.

◆ fUsePEEffectCmd

G4UIcmdWithABool* G4AdjointPhysicsMessenger::fUsePEEffectCmd
private

Definition at line 80 of file G4AdjointPhysicsMessenger.hh.

◆ fUsepIonisationCmd

G4UIcmdWithABool* G4AdjointPhysicsMessenger::fUsepIonisationCmd
private

Definition at line 76 of file G4AdjointPhysicsMessenger.hh.


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