Geant4-11
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
G4AdjointSimMessenger Class Reference

#include <G4AdjointSimMessenger.hh>

Inheritance diagram for G4AdjointSimMessenger:
G4UImessenger

Public Member Functions

G4bool CommandsShouldBeInMaster () const
 
 G4AdjointSimMessenger (G4AdjointSimManager *)
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool operator== (const G4UImessenger &messenger) const
 
void SetNewValue (G4UIcommand *, G4String)
 
 ~G4AdjointSimMessenger ()
 

Protected Member Functions

void AddUIcommand (G4UIcommand *newCommand)
 
G4String BtoS (G4bool b)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
G4String DtoS (G4double a)
 
G4String ItoS (G4int i)
 
G4bool StoB (G4String s)
 
G4double StoD (G4String s)
 
G4int StoI (G4String s)
 
G4long StoL (G4String s)
 

Protected Attributes

G4UIdirectorybaseDir = nullptr
 
G4String baseDirName = ""
 
G4bool commandsShouldBeInMaster = false
 

Private Attributes

G4UIdirectoryAdjointSimDir = nullptr
 
G4UIcommandbeamOnCmd = nullptr
 
G4UIcmdWithAStringConsiderParticleAsPrimaryCmd = nullptr
 
G4UIcmdWithAStringDefineAdjSourceOnAVolumeExtSurfaceCmd = nullptr
 
G4UIcmdWithAStringDefineExtSourceOnAVolumeExtSurfaceCmd = nullptr
 
G4UIcommandDefineSpherAdjSourceCenteredOnAVolumeCmd = nullptr
 
G4UIcommandDefineSpherAdjSourceCmd = nullptr
 
G4UIcommandDefineSpherExtSourceCenteredOnAVolumeCmd = nullptr
 
G4UIcommandDefineSpherExtSourceCmd = nullptr
 
G4UIcmdWithAStringNeglectParticleAsPrimaryCmd = nullptr
 
G4UIcmdWithADoubleAndUnitsetAdjSourceEmaxCmd = nullptr
 
G4UIcmdWithADoubleAndUnitsetAdjSourceEminCmd = nullptr
 
G4UIcmdWithADoubleAndUnitsetExtSourceEMaxCmd = nullptr
 
G4UIcmdWithAnIntegersetNbOfPrimaryAdjElectronsPerEventCmd = nullptr
 
G4UIcmdWithAnIntegersetNbOfPrimaryAdjGammasPerEventCmd = nullptr
 
G4UIcmdWithAnIntegersetNbOfPrimaryFwdGammasPerEventCmd = nullptr
 
G4AdjointSimManagertheAdjointRunManager
 

Detailed Description

Definition at line 123 of file G4AdjointSimMessenger.hh.

Constructor & Destructor Documentation

◆ G4AdjointSimMessenger()

G4AdjointSimMessenger::G4AdjointSimMessenger ( G4AdjointSimManager pAdjointRunManager)

Definition at line 53 of file G4AdjointSimMessenger.cc.

55 : theAdjointRunManager(pAdjointRunManager)
56{
57 AdjointSimDir = new G4UIdirectory("/adjoint/");
59 "Control of the adjoint or reverse monte carlo simulation");
60
61 // Start and adjoint Run
62 //---------------------
63
64 beamOnCmd = new G4UIcommand("/adjoint/start_run", this);
65 beamOnCmd->SetGuidance("Start an adjoint Run.");
66 beamOnCmd->SetGuidance("Default number of events to be processed is 1.");
68 G4UIparameter* p1 = new G4UIparameter("numberOfEvent", 'i', true);
69 p1->SetDefaultValue(1);
70 p1->SetParameterRange("numberOfEvent >= 0");
72
73 // Commands to define parameters relative to the external source
74 //------------------------------------------------------------
75
76 G4UIparameter* pos_x_par = new G4UIparameter("X", 'd', true);
77
78 G4UIparameter* pos_y_par = new G4UIparameter("Y", 'd', true);
79
80 G4UIparameter* pos_z_par = new G4UIparameter("Z", 'd', true);
81
82 G4UIparameter* radius_par = new G4UIparameter("R", 'd', true);
83
84 radius_par->SetParameterRange("R >= 0");
85
86 G4UIparameter* unit_par = new G4UIparameter("unit", 's', true);
87
89 new G4UIcommand("/adjoint/DefineSphericalExtSource", this);
90 DefineSpherExtSourceCmd->SetGuidance("Define a spherical external source.");
96
97 G4UIparameter* phys_vol_name_par =
98 new G4UIparameter("phys_vol_name", 's', true);
99
101 new G4UIcommand("/adjoint/DefineSphericalExtSourceCenteredOnAVolume", this);
103 "Define a spherical external source with the center located at the center "
104 "of a "
105 "physical volume");
109
111 "/adjoint/DefineExtSourceOnExtSurfaceOfAVolume", this);
113 "Set the external source on the external surface of a physical volume");
115 false);
116
118 new G4UIcmdWithADoubleAndUnit("/adjoint/SetExtSourceEmax", this);
120 "Set the maximum energy of the external source");
124
125 // Commands to define the adjoint source
126 //------------------------------------------------------------
127
129 new G4UIcommand("/adjoint/DefineSphericalAdjSource", this);
130 DefineSpherAdjSourceCmd->SetGuidance("Define a spherical adjoint source.");
136
138 new G4UIcommand("/adjoint/DefineSphericalAdjSourceCenteredOnAVolume", this);
140 "Define a spherical adjoint source with the center located at the center "
141 "of a "
142 "physical volume");
146
148 "/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume", this);
150 "Set the adjoint source on the external surface of physical volume");
152 false);
153
155 new G4UIcmdWithADoubleAndUnit("/adjoint/SetAdjSourceEmin", this);
157 "Set the minimum energy of the adjoint source");
161
163 new G4UIcmdWithADoubleAndUnit("/adjoint/SetAdjSourceEmax", this);
165 "Set the maximum energy of the adjoint source");
169
171 new G4UIcmdWithAString("/adjoint/ConsiderAsPrimary", this);
173 "Set the selected particle as primary");
175 ConsiderParticleAsPrimaryCmd->SetCandidates("e- gamma proton ion");
176
178 new G4UIcmdWithAString("/adjoint/NeglectAsPrimary", this);
180 "Remove the selected particle from the list of primaries");
182 NeglectParticleAsPrimaryCmd->SetCandidates("e- gamma proton ion");
183
185 new G4UIcmdWithAnInteger("/adjoint/SetNbOfPrimaryFwdGammasPerEvent", this);
187 "Set the nb of primary fwd gamm generated on the adjoint source");
191
193 new G4UIcmdWithAnInteger("/adjoint/SetNbOfPrimaryAdjGammasPerEvent", this);
195 "Set the nb of primary fwd gamm generated on the adjoint source");
199
201 "/adjoint/SetNbOfPrimaryAdjElectronsPerEvent", this);
203 "Set the nb of primary fwd gamm generated on the adjoint source");
207}
@ G4State_Idle
@ G4State_PreInit
G4UIcmdWithADoubleAndUnit * setAdjSourceEminCmd
G4AdjointSimManager * theAdjointRunManager
G4UIcmdWithAnInteger * setNbOfPrimaryAdjGammasPerEventCmd
G4UIcmdWithAnInteger * setNbOfPrimaryFwdGammasPerEventCmd
G4UIcmdWithADoubleAndUnit * setAdjSourceEmaxCmd
G4UIcmdWithADoubleAndUnit * setExtSourceEMaxCmd
G4UIcommand * DefineSpherAdjSourceCenteredOnAVolumeCmd
G4UIcmdWithAString * NeglectParticleAsPrimaryCmd
G4UIcmdWithAString * DefineExtSourceOnAVolumeExtSurfaceCmd
G4UIcommand * DefineSpherExtSourceCenteredOnAVolumeCmd
G4UIcmdWithAString * ConsiderParticleAsPrimaryCmd
G4UIcmdWithAString * DefineAdjSourceOnAVolumeExtSurfaceCmd
G4UIcmdWithAnInteger * setNbOfPrimaryAdjElectronsPerEventCmd
void SetUnitCategory(const char *unitCategory)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
Definition: G4UIcommand.hh:146
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:288
void SetDefaultValue(const char *theDefaultValue)
void SetParameterRange(const char *theRange)

References AdjointSimDir, G4UIcommand::AvailableForStates(), beamOnCmd, ConsiderParticleAsPrimaryCmd, DefineAdjSourceOnAVolumeExtSurfaceCmd, DefineExtSourceOnAVolumeExtSurfaceCmd, DefineSpherAdjSourceCenteredOnAVolumeCmd, DefineSpherAdjSourceCmd, DefineSpherExtSourceCenteredOnAVolumeCmd, DefineSpherExtSourceCmd, G4State_Idle, G4State_PreInit, NeglectParticleAsPrimaryCmd, setAdjSourceEmaxCmd, setAdjSourceEminCmd, G4UIcmdWithAString::SetCandidates(), G4UIparameter::SetDefaultValue(), setExtSourceEMaxCmd, G4UIcommand::SetGuidance(), setNbOfPrimaryAdjElectronsPerEventCmd, setNbOfPrimaryAdjGammasPerEventCmd, setNbOfPrimaryFwdGammasPerEventCmd, G4UIcommand::SetParameter(), G4UIcmdWithADoubleAndUnit::SetParameterName(), G4UIcmdWithAnInteger::SetParameterName(), G4UIcmdWithAString::SetParameterName(), G4UIparameter::SetParameterRange(), and G4UIcmdWithADoubleAndUnit::SetUnitCategory().

◆ ~G4AdjointSimMessenger()

G4AdjointSimMessenger::~G4AdjointSimMessenger ( )

Member Function Documentation

◆ AddUIcommand()

void G4UImessenger::AddUIcommand ( G4UIcommand newCommand)
protectedinherited

Definition at line 149 of file G4UImessenger.cc.

150{
151 G4cerr << "Warning : Old style definition of G4UIcommand <"
152 << newCommand->GetCommandPath() << ">." << G4endl;
153}
G4GLOB_DLL std::ostream G4cerr
#define G4endl
Definition: G4ios.hh:57
const G4String & GetCommandPath() const
Definition: G4UIcommand.hh:136

References G4cerr, G4endl, and G4UIcommand::GetCommandPath().

◆ BtoS()

G4String G4UImessenger::BtoS ( G4bool  b)
protectedinherited

Definition at line 98 of file G4UImessenger.cc.

99{
100 G4String vl = "0";
101 if(b)
102 vl = "true";
103 return vl;
104}

◆ CommandsShouldBeInMaster()

G4bool G4UImessenger::CommandsShouldBeInMaster ( ) const
inlineinherited

Definition at line 77 of file G4UImessenger.hh.

78 {
80 }
G4bool commandsShouldBeInMaster

References G4UImessenger::commandsShouldBeInMaster.

Referenced by G4UIcommand::G4UIcommandCommonConstructorCode().

◆ CreateCommand()

template<typename T >
T * G4UImessenger::CreateCommand ( const G4String cname,
const G4String dsc 
)
protectedinherited

Definition at line 110 of file G4UImessenger.hh.

111{
112 G4String path;
113 if(cname[0] != '/')
114 {
115 path = baseDirName + cname;
116 if(path[0] != '/')
117 path = "/" + path;
118 }
119
120 T* command = new T(path.c_str(), this);
121 command->SetGuidance(dsc.c_str());
122
123 return command;
124}
G4String baseDirName

References G4UImessenger::baseDirName.

◆ CreateDirectory()

void G4UImessenger::CreateDirectory ( const G4String path,
const G4String dsc,
G4bool  commandsToBeBroadcasted = true 
)
protectedinherited

Definition at line 156 of file G4UImessenger.cc.

158{
160
161 G4String fullpath = path;
162 if(fullpath.back() != '/')
163 fullpath.append("/");
164
165 G4UIcommandTree* tree = ui->GetTree()->FindCommandTree(fullpath.c_str());
166 if(tree != nullptr)
167 {
168 baseDirName = tree->GetPathName();
169 }
170 else
171 {
172 baseDir = new G4UIdirectory(fullpath.c_str(), commandsToBeBroadcasted);
173 baseDirName = fullpath;
174 baseDir->SetGuidance(dsc.c_str());
175 }
176}
const G4String & GetPathName() const
G4UIcommandTree * FindCommandTree(const char *commandPath)
G4UIcommandTree * GetTree() const
Definition: G4UImanager.hh:186
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:77
G4UIdirectory * baseDir

References G4UImessenger::baseDir, G4UImessenger::baseDirName, G4UIcommandTree::FindCommandTree(), G4UIcommandTree::GetPathName(), G4UImanager::GetTree(), G4UImanager::GetUIpointer(), and G4UIcommand::SetGuidance().

Referenced by G4MoleculeShootMessenger::G4MoleculeShootMessenger(), and G4UImessenger::G4UImessenger().

◆ DtoS()

G4String G4UImessenger::DtoS ( G4double  a)
protectedinherited

Definition at line 90 of file G4UImessenger.cc.

91{
92 std::ostringstream os;
93 os << a;
94 return G4String(os.str());
95}

Referenced by G4ScoreQuantityMessenger::FilterCommands(), and G4UIcontrolMessenger::SetNewValue().

◆ GetCurrentValue()

G4String G4UImessenger::GetCurrentValue ( G4UIcommand command)
virtualinherited

Reimplemented in G4ScoreQuantityMessenger, G4VisCommandModelCreate< Factory >, G4VisCommandListManagerList< Manager >, G4VisCommandListManagerSelect< Manager >, G4VisCommandManagerMode< Manager >, G4ToolsAnalysisMessenger, G4ScoringMessenger, G4EvManMessenger, G4GeneralParticleSourceMessenger, G4ParticleGunMessenger, G4GeometryMessenger, G4GenericMessenger, G4UIcontrolMessenger, GFlashShowerModelMessenger, G4DecayTableMessenger, G4ParticleMessenger, G4ParticlePropertyMessenger, G4tgrMessenger, G4PersistencyCenterMessenger, G4ProductionCutsTableMessenger, G4SchedulerMessenger, G4VITSteppingVerbose, G4MoleculeShootMessenger, G4MoleculeGunMessenger, G4ProcessManagerMessenger, G4ProcessTableMessenger, G4MatScanMessenger, G4RunMessenger, G4UserPhysicsListMessenger, G4TrackingMessenger, G4GMocrenMessenger, G4HepRepMessenger, G4VisCommandAbortReviewKeptEvents, G4VisCommandDrawOnlyToBeKeptEvents, G4VisCommandEnable, G4VisCommandList, G4VisCommandReviewKeptEvents, G4VisCommandVerbose, G4VisCommandGeometryList, G4VisCommandGeometryRestore, G4VisCommandGeometrySetColour, G4VisCommandGeometrySetDaughtersInvisible, G4VisCommandGeometrySetForceAuxEdgeVisible, G4VisCommandGeometrySetForceCloud, G4VisCommandGeometrySetForceSolid, G4VisCommandGeometrySetForceLineSegmentsPerCircle, G4VisCommandGeometrySetForceWireframe, G4VisCommandGeometrySetLineStyle, G4VisCommandGeometrySetLineWidth, G4VisCommandGeometrySetVisibility, G4VisCommandSceneActivateModel, G4VisCommandSceneCreate, G4VisCommandSceneEndOfEventAction, G4VisCommandSceneEndOfRunAction, G4VisCommandSceneList, G4VisCommandSceneNotifyHandlers, G4VisCommandSceneRemoveModel, G4VisCommandSceneSelect, G4VisCommandSceneShowExtents, G4VisCommandSceneAddArrow, G4VisCommandSceneAddArrow2D, G4VisCommandSceneAddAxes, G4VisCommandSceneAddDate, G4VisCommandSceneAddDigis, G4VisCommandSceneAddEventID, G4VisCommandSceneAddExtent, G4VisCommandSceneAddElectricField, G4VisCommandSceneAddFrame, G4VisCommandSceneAddGPS, G4VisCommandSceneAddGhosts, G4VisCommandSceneAddHits, G4VisCommandSceneAddLine, G4VisCommandSceneAddLine2D, G4VisCommandSceneAddLocalAxes, G4VisCommandSceneAddLogicalVolume, G4VisCommandSceneAddLogo, G4VisCommandSceneAddLogo2D, G4VisCommandSceneAddMagneticField, G4VisCommandSceneAddPSHits, G4VisCommandSceneAddScale, G4VisCommandSceneAddText, G4VisCommandSceneAddText2D, G4VisCommandSceneAddTrajectories, G4VisCommandSceneAddUserAction, G4VisCommandSceneAddVolume, G4VisCommandSceneAddPlotter, G4VisCommandSceneHandlerAttach, G4VisCommandSceneHandlerCreate, G4VisCommandSceneHandlerList, G4VisCommandSceneHandlerSelect, G4VisCommandSetArrow3DLineSegmentsPerCircle, G4VisCommandSetColour, G4VisCommandSetExtentForField, G4VisCommandSetLineWidth, G4VisCommandSetTextColour, G4VisCommandSetTextLayout, G4VisCommandSetTextSize, G4VisCommandSetTouchable, G4VisCommandSetVolumeForField, G4VisCommandsTouchable, G4VisCommandsTouchableSet, G4VisCommandViewerAddCutawayPlane, G4VisCommandViewerCentreOn, G4VisCommandViewerChangeCutawayPlane, G4VisCommandViewerClear, G4VisCommandViewerClearCutawayPlanes, G4VisCommandViewerClearTransients, G4VisCommandViewerClearVisAttributesModifiers, G4VisCommandViewerClone, G4VisCommandViewerColourByDensity, G4VisCommandViewerCopyViewFrom, G4VisCommandViewerCreate, G4VisCommandViewerDolly, G4VisCommandViewerFlush, G4VisCommandViewerInterpolate, G4VisCommandViewerList, G4VisCommandViewerPan, G4VisCommandViewerReset, G4VisCommandViewerRefresh, G4VisCommandViewerRebuild, G4VisCommandViewerSave, G4VisCommandViewerScale, G4VisCommandViewerSelect, G4VisCommandViewerUpdate, G4VisCommandViewerZoom, G4VisCommandViewerDefaultHiddenEdge, G4VisCommandViewerDefaultStyle, G4VisCommandsViewerSet, G4VModelCommand< T >, G4VModelCommand< M >, G4RTMessenger, G4ASCIITreeMessenger, G4VtkMessenger, G4PolarizationMessenger, and G4DNAChemistryManager.

Definition at line 58 of file G4UImessenger.cc.

59{
60 G4String nullString;
61 return nullString;
62}

Referenced by G4UIcommand::DoIt(), and G4UIcommand::GetCurrentValue().

◆ ItoS()

G4String G4UImessenger::ItoS ( G4int  i)
protectedinherited

Definition at line 82 of file G4UImessenger.cc.

83{
84 std::ostringstream os;
85 os << i;
86 return G4String(os.str());
87}

Referenced by G4GenericMessenger::DeclareMethod(), and G4ParticleGunMessenger::GetCurrentValue().

◆ operator!=()

G4bool G4UImessenger::operator!= ( const G4UImessenger messenger) const
inherited

Definition at line 76 of file G4UImessenger.cc.

77{
78 return this != &messenger;
79}

◆ operator==()

G4bool G4UImessenger::operator== ( const G4UImessenger messenger) const
inherited

Definition at line 70 of file G4UImessenger.cc.

71{
72 return this == &messenger;
73}

◆ SetNewValue()

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

Reimplemented from G4UImessenger.

Definition at line 233 of file G4AdjointSimMessenger.cc.

234{
235 if(command == nullptr)
236 return;
237 if(command == beamOnCmd)
238 {
239 G4int nev;
240 const char* nv = (const char*) newValue;
241 std::istringstream is(nv);
242 is >> nev;
243 if(G4RunManager::GetRunManager()->GetRunManagerType() ==
246 }
247 else if(command == ConsiderParticleAsPrimaryCmd)
248 {
250 }
251 else if(command == NeglectParticleAsPrimaryCmd)
252 {
254 }
255 if(command == DefineSpherExtSourceCmd)
256 {
257 G4double x, y, z, r;
258 G4String unit;
259 const char* nv = (const char*) newValue;
260 std::istringstream is(nv);
261 is >> x >> y >> z >> r >> unit;
262
268 }
270 {
271 G4double r;
272 G4String vol_name, unit;
273 const char* nv = (const char*) newValue;
274 std::istringstream is(nv);
275 is >> vol_name >> r >> unit;
279 }
280 else if(command == DefineExtSourceOnAVolumeExtSurfaceCmd)
281 {
283 }
284 else if(command == setExtSourceEMaxCmd)
285 {
288 }
289 else if(command == DefineSpherAdjSourceCmd)
290 {
291 G4double x, y, z, r;
292 G4String unit;
293 const char* nv = (const char*) newValue;
294 std::istringstream is(nv);
295 is >> x >> y >> z >> r >> unit;
296
302 G4ThreeVector(x, y, z));
303 }
305 {
306 G4double r;
307 G4String vol_name, unit;
308 const char* nv = (const char*) newValue;
309 std::istringstream is(nv);
310 is >> vol_name >> r >> unit;
314 }
315 else if(command == DefineAdjSourceOnAVolumeExtSurfaceCmd)
316 {
318 }
319 else if(command == setAdjSourceEminCmd)
320 {
323 }
324 else if(command == setAdjSourceEmaxCmd)
325 {
328 }
329 else if(command == setNbOfPrimaryFwdGammasPerEventCmd)
330 {
333 }
334 else if(command == setNbOfPrimaryAdjGammasPerEventCmd)
335 {
338 }
339 else if(command == setNbOfPrimaryAdjElectronsPerEventCmd)
340 {
343 }
344}
CLHEP::Hep3Vector G4ThreeVector
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
G4bool DefineAdjointSourceOnTheExtSurfaceOfAVolume(const G4String &volume_name)
G4bool DefineExtSourceOnTheExtSurfaceOfAVolume(const G4String &volume_name)
void RunAdjointSimulation(G4int nb_evt)
G4bool DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume(G4double radius, const G4String &volume_name)
void SetNbAdjointPrimaryGammasPerEvent(G4int)
void ConsiderParticleAsPrimary(const G4String &particle_name)
void SetExtSourceEmax(G4double Emax)
void SetAdjointSourceEmax(G4double Emax)
void SetAdjointSourceEmin(G4double Emin)
void NeglectParticleAsPrimary(const G4String &particle_name)
G4bool DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume(G4double radius, const G4String &volume_name)
void SetNbAdjointPrimaryElectronsPerEvent(G4int)
void SetNbOfPrimaryFwdGammasPerEvent(G4int)
G4bool DefineSphericalExtSource(G4double radius, G4ThreeVector pos)
G4bool DefineSphericalAdjointSource(G4double radius, G4ThreeVector pos)
static G4RunManager * GetRunManager()
static G4double GetNewDoubleValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)
static G4double GetValueOf(const G4String &)

References beamOnCmd, G4AdjointSimManager::ConsiderParticleAsPrimary(), ConsiderParticleAsPrimaryCmd, G4AdjointSimManager::DefineAdjointSourceOnTheExtSurfaceOfAVolume(), DefineAdjSourceOnAVolumeExtSurfaceCmd, DefineExtSourceOnAVolumeExtSurfaceCmd, G4AdjointSimManager::DefineExtSourceOnTheExtSurfaceOfAVolume(), DefineSpherAdjSourceCenteredOnAVolumeCmd, DefineSpherAdjSourceCmd, DefineSpherExtSourceCenteredOnAVolumeCmd, DefineSpherExtSourceCmd, G4AdjointSimManager::DefineSphericalAdjointSource(), G4AdjointSimManager::DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume(), G4AdjointSimManager::DefineSphericalExtSource(), G4AdjointSimManager::DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume(), G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(), G4UIcmdWithAnInteger::GetNewIntValue(), G4RunManager::GetRunManager(), G4UnitDefinition::GetValueOf(), G4AdjointSimManager::NeglectParticleAsPrimary(), NeglectParticleAsPrimaryCmd, G4AdjointSimManager::RunAdjointSimulation(), G4RunManager::sequentialRM, G4AdjointSimManager::SetAdjointSourceEmax(), G4AdjointSimManager::SetAdjointSourceEmin(), setAdjSourceEmaxCmd, setAdjSourceEminCmd, G4AdjointSimManager::SetExtSourceEmax(), setExtSourceEMaxCmd, G4AdjointSimManager::SetNbAdjointPrimaryElectronsPerEvent(), G4AdjointSimManager::SetNbAdjointPrimaryGammasPerEvent(), setNbOfPrimaryAdjElectronsPerEventCmd, setNbOfPrimaryAdjGammasPerEventCmd, G4AdjointSimManager::SetNbOfPrimaryFwdGammasPerEvent(), setNbOfPrimaryFwdGammasPerEventCmd, and theAdjointRunManager.

◆ StoB()

G4bool G4UImessenger::StoB ( G4String  s)
protectedinherited

Definition at line 137 of file G4UImessenger.cc.

138{
140 G4bool vl = false;
141 if(v == "Y" || v == "YES" || v == "1" || v == "T" || v == "TRUE")
142 {
143 vl = true;
144 }
145 return vl;
146}
bool G4bool
Definition: G4Types.hh:86
G4String to_upper_copy(G4String str)
Return uppercase copy of string.

References G4StrUtil::to_upper_copy().

Referenced by G4LocalThreadCoutMessenger::SetNewValue(), G4CascadeParamMessenger::SetNewValue(), G4ScoreQuantityMessenger::SetNewValue(), and G4ScoringMessenger::SetNewValue().

◆ StoD()

G4double G4UImessenger::StoD ( G4String  s)
protectedinherited

◆ StoI()

G4int G4UImessenger::StoI ( G4String  s)
protectedinherited

◆ StoL()

G4long G4UImessenger::StoL ( G4String  s)
protectedinherited

Definition at line 117 of file G4UImessenger.cc.

118{
119 G4long vl;
120 const char* t = str;
121 std::istringstream is(t);
122 is >> vl;
123 return vl;
124}
long G4long
Definition: G4Types.hh:87

Referenced by G4RunMessenger::SetNewValue().

Field Documentation

◆ AdjointSimDir

G4UIdirectory* G4AdjointSimMessenger::AdjointSimDir = nullptr
private

Definition at line 136 of file G4AdjointSimMessenger.hh.

Referenced by G4AdjointSimMessenger(), and ~G4AdjointSimMessenger().

◆ baseDir

G4UIdirectory* G4UImessenger::baseDir = nullptr
protectedinherited

◆ baseDirName

G4String G4UImessenger::baseDirName = ""
protectedinherited

◆ beamOnCmd

G4UIcommand* G4AdjointSimMessenger::beamOnCmd = nullptr
private

◆ commandsShouldBeInMaster

G4bool G4UImessenger::commandsShouldBeInMaster = false
protectedinherited

◆ ConsiderParticleAsPrimaryCmd

G4UIcmdWithAString* G4AdjointSimMessenger::ConsiderParticleAsPrimaryCmd = nullptr
private

◆ DefineAdjSourceOnAVolumeExtSurfaceCmd

G4UIcmdWithAString* G4AdjointSimMessenger::DefineAdjSourceOnAVolumeExtSurfaceCmd = nullptr
private

◆ DefineExtSourceOnAVolumeExtSurfaceCmd

G4UIcmdWithAString* G4AdjointSimMessenger::DefineExtSourceOnAVolumeExtSurfaceCmd = nullptr
private

◆ DefineSpherAdjSourceCenteredOnAVolumeCmd

G4UIcommand* G4AdjointSimMessenger::DefineSpherAdjSourceCenteredOnAVolumeCmd = nullptr
private

◆ DefineSpherAdjSourceCmd

G4UIcommand* G4AdjointSimMessenger::DefineSpherAdjSourceCmd = nullptr
private

◆ DefineSpherExtSourceCenteredOnAVolumeCmd

G4UIcommand* G4AdjointSimMessenger::DefineSpherExtSourceCenteredOnAVolumeCmd = nullptr
private

◆ DefineSpherExtSourceCmd

G4UIcommand* G4AdjointSimMessenger::DefineSpherExtSourceCmd = nullptr
private

◆ NeglectParticleAsPrimaryCmd

G4UIcmdWithAString* G4AdjointSimMessenger::NeglectParticleAsPrimaryCmd = nullptr
private

◆ setAdjSourceEmaxCmd

G4UIcmdWithADoubleAndUnit* G4AdjointSimMessenger::setAdjSourceEmaxCmd = nullptr
private

◆ setAdjSourceEminCmd

G4UIcmdWithADoubleAndUnit* G4AdjointSimMessenger::setAdjSourceEminCmd = nullptr
private

◆ setExtSourceEMaxCmd

G4UIcmdWithADoubleAndUnit* G4AdjointSimMessenger::setExtSourceEMaxCmd = nullptr
private

◆ setNbOfPrimaryAdjElectronsPerEventCmd

G4UIcmdWithAnInteger* G4AdjointSimMessenger::setNbOfPrimaryAdjElectronsPerEventCmd = nullptr
private

◆ setNbOfPrimaryAdjGammasPerEventCmd

G4UIcmdWithAnInteger* G4AdjointSimMessenger::setNbOfPrimaryAdjGammasPerEventCmd = nullptr
private

◆ setNbOfPrimaryFwdGammasPerEventCmd

G4UIcmdWithAnInteger* G4AdjointSimMessenger::setNbOfPrimaryFwdGammasPerEventCmd = nullptr
private

◆ theAdjointRunManager

G4AdjointSimManager* G4AdjointSimMessenger::theAdjointRunManager
private

Definition at line 134 of file G4AdjointSimMessenger.hh.

Referenced by SetNewValue().


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