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

#include <G4GMocrenMessenger.hh>

Inheritance diagram for G4GMocrenMessenger:
G4UImessenger

Public Member Functions

virtual G4bool addPointAttributes ()
 
virtual G4bool appendGeometry ()
 
G4bool CommandsShouldBeInMaster () const
 
 G4GMocrenMessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
virtual G4bool getDrawVolumeGrid ()
 
virtual G4String getEventNumberSuffix ()
 
virtual std::vector< G4StringgetHitNames ()
 
virtual std::vector< G4StringgetHitScorerNames ()
 
virtual void getNoVoxels (G4int &nx, G4int &ny, G4int &nz) const
 
virtual G4String getScoringMeshName ()
 
virtual G4String getVolumeName ()
 
virtual void list ()
 
G4bool operator!= (const G4UImessenger &messenger) const
 
G4bool operator== (const G4UImessenger &messenger) const
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 
virtual G4bool useSolids ()
 
virtual G4bool writeInvisibles ()
 
virtual ~G4GMocrenMessenger ()
 

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

G4UIcmdWithABooladdPointAttributesCommand
 
G4UIcmdWithABoolappendGeometryCommand
 
G4bool geometry
 
G4bool invisibles
 
G4UIcmdWithAStringkAddgMocrenHitNameCommand
 
G4UIcmdWithAStringkAddgMocrenHitScorerNameCommand
 
G4bool kDrawVolumeGrid
 
G4UIcmdWithABoolkDrawVolumeGridCommand
 
G4UIdirectorykgMocrenDirectory
 
std::vector< G4StringkgMocrenHitNames
 
std::vector< G4StringkgMocrenHitScorerNames
 
G4int kgMocrenNoVoxels [3]
 
G4String kgMocrenScoringMeshName
 
G4String kgMocrenVolumeName
 
G4UIcmdWithoutParameterkListgMocrenCommand
 
G4UIcmdWithoutParameterkResetgMocrenHitNameCommand
 
G4UIcmdWithoutParameterkResetgMocrenHitScorerNameCommand
 
G4UIcommandkSetgMocrenNoVoxelsCommand
 
G4UIcmdWithAStringkSetgMocrenScoringMeshNameCommand
 
G4UIcmdWithAStringkSetgMocrenVolumeNameCommand
 
G4bool pointAttributes
 
G4UIcmdWithAStringsetEventNumberSuffixCommand
 
G4bool solids
 
G4String suffix
 
G4UIcmdWithABooluseSolidsCommand
 

Detailed Description

Definition at line 45 of file G4GMocrenMessenger.hh.

Constructor & Destructor Documentation

◆ G4GMocrenMessenger()

G4GMocrenMessenger::G4GMocrenMessenger ( )

Definition at line 40 of file G4GMocrenMessenger.cc.

41 : suffix (""), geometry(true), pointAttributes(false), solids(true), invisibles(true),
42 kgMocrenVolumeName("gMocrenVolume"),
43 kgMocrenScoringMeshName("gMocrenScoringMesh"),
44 kDrawVolumeGrid(false) {
45
46 kgMocrenDirectory = new G4UIdirectory("/vis/gMocren/");
47 kgMocrenDirectory->SetGuidance("gMocren commands.");
48
49 setEventNumberSuffixCommand = new G4UIcmdWithAString("/vis/gMocren/setEventNumberSuffix", this);
50 setEventNumberSuffixCommand->SetGuidance("Write separate event files, appended with given suffix.");
51 setEventNumberSuffixCommand->SetGuidance("Define the suffix with a pattern such as '-0000'.");
55
56 appendGeometryCommand = new G4UIcmdWithABool("/vis/gMocren/appendGeometry", this);
57 appendGeometryCommand->SetGuidance("Appends copy of geometry to every event.");
61
62 addPointAttributesCommand = new G4UIcmdWithABool("/vis/gMocren/addPointAttributes", this);
63 addPointAttributesCommand->SetGuidance("Adds point attributes to the points of trajectories.");
67
68 useSolidsCommand = new G4UIcmdWithABool("/vis/gMocren/useSolids", this);
69 useSolidsCommand->SetGuidance("Use GMocren Solids, rather than Geant4 Primitives.");
73
74 /* Not Enabled Yet
75 writeInvisiblesCommand = new G4UIcmdWithABool("/vis/gMocren/writeInvisibles", this);
76 writeInvisiblesCommand->SetGuidance("Write invisible objects.");
77 writeInvisiblesCommand->SetParameterName("flag",false);
78 writeInvisiblesCommand->SetDefaultValue(true);
79 writeInvisiblesCommand->AvailableForStates(G4State_Idle);
80 */
81
82 kSetgMocrenVolumeNameCommand = new G4UIcmdWithAString("/vis/gMocren/setVolumeName", this);
83 kSetgMocrenVolumeNameCommand->SetGuidance("detector name for a volume data in gMocren data.");
84 kSetgMocrenVolumeNameCommand->SetParameterName("kgMocrenVolumeName",false);
87
88 kAddgMocrenHitNameCommand = new G4UIcmdWithAString("/vis/gMocren/addHitName", this);
89 kAddgMocrenHitNameCommand->SetGuidance("hit name for a dose distribution in gMocren data.");
90 kAddgMocrenHitNameCommand->SetParameterName("kgMocrenHitName",false);
92
93 kResetgMocrenHitNameCommand = new G4UIcmdWithoutParameter("/vis/gMocren/resetHitNames", this);
94 kResetgMocrenHitNameCommand->SetGuidance("reset all hit names.");
96
97 kSetgMocrenScoringMeshNameCommand = new G4UIcmdWithAString("/vis/gMocren/setScoringMeshName", this);
98 kSetgMocrenScoringMeshNameCommand->SetGuidance("scoring mesh name for a dose distribution in gMocren data.");
99 kSetgMocrenScoringMeshNameCommand->SetParameterName("kgMocrenScoringMeshName",false);
102
103 kAddgMocrenHitScorerNameCommand = new G4UIcmdWithAString("/vis/gMocren/addHitScorerName", this);
104 kAddgMocrenHitScorerNameCommand->SetGuidance("hit scorer name for a dose distribution in gMocren data.");
105 kAddgMocrenHitScorerNameCommand->SetParameterName("kgMocrenHitScorerNames",false);
107
108 kResetgMocrenHitScorerNameCommand = new G4UIcmdWithoutParameter("/vis/gMocren/resetHitScorerName", this);
109 kResetgMocrenHitScorerNameCommand->SetGuidance("reset all hit scorer names.");
111
112 kSetgMocrenNoVoxelsCommand = new G4UIcommand("/vis/gMocren/setNumberOfVoxels", this);
113 kSetgMocrenNoVoxelsCommand->SetGuidance("set number of voxels.");
115 G4UIparameter * param = new G4UIparameter("nX", 'i', false);
116 param->SetDefaultValue("1");
117 param->SetParameterRange("nX>0");
119 param = new G4UIparameter("nY", 'i', false);
120 param->SetDefaultValue("1");
121 param->SetParameterRange("nY>0");
123 param = new G4UIparameter("nZ", 'i', false);
124 param->SetDefaultValue("1");
125 param->SetParameterRange("nZ>0");
127
128 kListgMocrenCommand = new G4UIcmdWithoutParameter("/vis/gMocren/list", this);
129 kListgMocrenCommand->SetGuidance("list gMocren command parameters.");
131
132 kDrawVolumeGridCommand = new G4UIcmdWithABool("/vis/gMocren/drawVolumeGrid", this);
133 kDrawVolumeGridCommand->SetGuidance("Add grid of the volume.");
134 kDrawVolumeGridCommand->SetParameterName("kDrawVolumeGrid",false);
137
138}
@ G4State_Idle
G4UIcmdWithAString * kSetgMocrenScoringMeshNameCommand
G4UIcmdWithAString * kAddgMocrenHitScorerNameCommand
G4UIcmdWithABool * useSolidsCommand
G4UIcmdWithABool * kDrawVolumeGridCommand
G4UIdirectory * kgMocrenDirectory
G4UIcmdWithoutParameter * kListgMocrenCommand
G4UIcmdWithAString * kSetgMocrenVolumeNameCommand
G4UIcmdWithoutParameter * kResetgMocrenHitScorerNameCommand
G4UIcmdWithoutParameter * kResetgMocrenHitNameCommand
G4UIcommand * kSetgMocrenNoVoxelsCommand
G4UIcmdWithAString * setEventNumberSuffixCommand
G4UIcmdWithABool * appendGeometryCommand
G4UIcmdWithAString * kAddgMocrenHitNameCommand
G4UIcmdWithABool * addPointAttributesCommand
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
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 addPointAttributesCommand, appendGeometryCommand, G4UIcommand::AvailableForStates(), G4State_Idle, kAddgMocrenHitNameCommand, kAddgMocrenHitScorerNameCommand, kDrawVolumeGridCommand, kgMocrenDirectory, kListgMocrenCommand, kResetgMocrenHitNameCommand, kResetgMocrenHitScorerNameCommand, kSetgMocrenNoVoxelsCommand, kSetgMocrenScoringMeshNameCommand, kSetgMocrenVolumeNameCommand, G4UIcmdWithAString::SetDefaultValue(), G4UIparameter::SetDefaultValue(), G4UIcmdWithABool::SetDefaultValue(), setEventNumberSuffixCommand, G4UIcommand::SetGuidance(), G4UIcommand::SetParameter(), G4UIcmdWithABool::SetParameterName(), G4UIcmdWithAString::SetParameterName(), G4UIparameter::SetParameterRange(), and useSolidsCommand.

◆ ~G4GMocrenMessenger()

G4GMocrenMessenger::~G4GMocrenMessenger ( )
virtual

Member Function Documentation

◆ addPointAttributes()

G4bool G4GMocrenMessenger::addPointAttributes ( )
virtual

Definition at line 242 of file G4GMocrenMessenger.cc.

242 {
243 return pointAttributes;
244}

References pointAttributes.

◆ 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().

◆ appendGeometry()

G4bool G4GMocrenMessenger::appendGeometry ( )
virtual

Definition at line 238 of file G4GMocrenMessenger.cc.

238 {
239 return geometry;
240}

References geometry.

◆ 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 G4GMocrenMessenger::GetCurrentValue ( G4UIcommand command)
virtual

Reimplemented from G4UImessenger.

Definition at line 161 of file G4GMocrenMessenger.cc.

161 {
162 if (command==setEventNumberSuffixCommand) {
163 return suffix;
164 } else if (command==appendGeometryCommand) {
166 } else if (command==addPointAttributesCommand) {
168 } else if (command==useSolidsCommand) {
170 // } else if (command==writeInvisiblesCommand) {
171 // return writeInvisiblesCommand->ConvertToString(invisibles);
172 } else if (command == kSetgMocrenVolumeNameCommand) {
173 return kgMocrenVolumeName;
174 } else if (command == kAddgMocrenHitNameCommand) {
175 G4String strval;
176 std::vector<G4String>::iterator itr = kgMocrenHitNames.begin();
177 for(; itr != kgMocrenHitNames.end(); itr++) {
178 strval += *itr;
179 strval += " ";
180 }
181 return strval;
182 } else if (command == kSetgMocrenScoringMeshNameCommand) {
184 } else if (command == kAddgMocrenHitScorerNameCommand) {
185 G4String strval;
186 std::vector<G4String>::iterator itr = kgMocrenHitScorerNames.begin();
187 for(; itr != kgMocrenHitScorerNames.end(); itr++) {
188 strval += *itr;
189 strval += " ";
190 }
191 return strval;
192 } else if (command==kDrawVolumeGridCommand) {
194 } else {
195 return "";
196 }
197}
std::vector< G4String > kgMocrenHitNames
std::vector< G4String > kgMocrenHitScorerNames
static G4String ConvertToString(G4bool boolVal)
Definition: G4UIcommand.cc:445

References addPointAttributesCommand, appendGeometryCommand, G4UIcommand::ConvertToString(), geometry, kAddgMocrenHitNameCommand, kAddgMocrenHitScorerNameCommand, kDrawVolumeGrid, kDrawVolumeGridCommand, kgMocrenHitNames, kgMocrenHitScorerNames, kgMocrenScoringMeshName, kgMocrenVolumeName, kSetgMocrenScoringMeshNameCommand, kSetgMocrenVolumeNameCommand, pointAttributes, setEventNumberSuffixCommand, solids, suffix, and useSolidsCommand.

◆ getDrawVolumeGrid()

virtual G4bool G4GMocrenMessenger::getDrawVolumeGrid ( )
inlinevirtual

Definition at line 65 of file G4GMocrenMessenger.hh.

65{return kDrawVolumeGrid;}

References kDrawVolumeGrid.

Referenced by G4GMocrenFileSceneHandler::AddSolid().

◆ getEventNumberSuffix()

G4String G4GMocrenMessenger::getEventNumberSuffix ( )
virtual

Definition at line 234 of file G4GMocrenMessenger.cc.

234 {
235 return suffix;
236}

References suffix.

◆ getHitNames()

std::vector< G4String > G4GMocrenMessenger::getHitNames ( )
virtual

Definition at line 258 of file G4GMocrenMessenger.cc.

258 {
259 return kgMocrenHitNames;
260}

References kgMocrenHitNames.

Referenced by G4GMocrenFileSceneHandler::AddCompound().

◆ getHitScorerNames()

std::vector< G4String > G4GMocrenMessenger::getHitScorerNames ( )
virtual

Definition at line 266 of file G4GMocrenMessenger.cc.

266 {
268}

References kgMocrenHitScorerNames.

Referenced by G4GMocrenFileSceneHandler::AddCompound().

◆ getNoVoxels()

void G4GMocrenMessenger::getNoVoxels ( G4int nx,
G4int ny,
G4int nz 
) const
virtual

Definition at line 297 of file G4GMocrenMessenger.cc.

297 {
298 nx = kgMocrenNoVoxels[0];
299 ny = kgMocrenNoVoxels[1];
300 nz = kgMocrenNoVoxels[2];
301}

References kgMocrenNoVoxels.

◆ getScoringMeshName()

G4String G4GMocrenMessenger::getScoringMeshName ( )
virtual

Definition at line 262 of file G4GMocrenMessenger.cc.

262 {
264}

References kgMocrenScoringMeshName.

◆ getVolumeName()

G4String G4GMocrenMessenger::getVolumeName ( )
virtual

Definition at line 254 of file G4GMocrenMessenger.cc.

254 {
255 return kgMocrenVolumeName;
256}

References kgMocrenVolumeName.

Referenced by G4GMocrenFileSceneHandler::AddSolid().

◆ 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().

◆ list()

void G4GMocrenMessenger::list ( )
virtual

Definition at line 270 of file G4GMocrenMessenger.cc.

270 {
271 G4cout << " Current valuess of gMocren command parameters:" << G4endl;
272 //
273 G4cout << " volume name: " << kgMocrenVolumeName << G4endl;
274 //
275 G4cout << " hit names: ";
276 if(kgMocrenHitNames.size() > 0) {
277 std::vector<G4String>::iterator itr = kgMocrenHitNames.begin();
278 for(; itr != kgMocrenHitNames.end(); itr++)
279 G4cout << *itr << " " << G4endl;
280 } else {
281 G4cout << G4endl;
282 }
283 //
284 G4cout << " scoring mesh name: " << kgMocrenScoringMeshName << G4endl;
285 //
286 G4cout << " scorer names: ";
287 if(kgMocrenHitScorerNames.size() > 0) {
288 std::vector<G4String>::iterator itr = kgMocrenHitScorerNames.begin();
289 for(; itr != kgMocrenHitScorerNames.end(); itr++)
290 G4cout << *itr << " " << G4endl;
291 } else {
292 G4cout << G4endl;
293 }
294 G4cout << G4endl;
295}
G4GLOB_DLL std::ostream G4cout

References G4cout, G4endl, kgMocrenHitNames, kgMocrenHitScorerNames, kgMocrenScoringMeshName, and kgMocrenVolumeName.

Referenced by SetNewValue().

◆ 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 G4GMocrenMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Reimplemented from G4UImessenger.

Definition at line 199 of file G4GMocrenMessenger.cc.

199 {
200 if (command==setEventNumberSuffixCommand) {
201 suffix = newValue;
202 } else if (command==appendGeometryCommand) {
204 } else if (command==addPointAttributesCommand) {
206 } else if (command==useSolidsCommand) {
208 // } else if (command==writeInvisiblesCommand) {
209 // invisibles = writeInvisiblesCommand->GetNewBoolValue(newValue);
210 } else if (command == kSetgMocrenVolumeNameCommand) {
211 kgMocrenVolumeName = newValue;
212 } else if (command == kAddgMocrenHitNameCommand) {
213 kgMocrenHitNames.push_back(newValue);
214 } else if (command == kResetgMocrenHitNameCommand) {
215 kgMocrenHitNames.clear();
216 } else if (command == kSetgMocrenScoringMeshNameCommand) {
217 kgMocrenScoringMeshName = newValue;
218 } else if (command == kAddgMocrenHitScorerNameCommand) {
219 kgMocrenHitScorerNames.push_back(newValue);
220 } else if (command == kResetgMocrenHitScorerNameCommand) {
222 } else if (command == kListgMocrenCommand) {
223 list();
224 } else if (command == kSetgMocrenNoVoxelsCommand) {
225 G4Tokenizer next(newValue);
226 for(int i = 0; i < 3; i++) {
227 kgMocrenNoVoxels[i] = StoI(next());
228 }
229 } else if (command==kDrawVolumeGridCommand) {
231 }
232}
static G4bool GetNewBoolValue(const char *paramString)
G4int StoI(G4String s)

References addPointAttributesCommand, appendGeometryCommand, geometry, G4UIcmdWithABool::GetNewBoolValue(), kAddgMocrenHitNameCommand, kAddgMocrenHitScorerNameCommand, kDrawVolumeGrid, kDrawVolumeGridCommand, kgMocrenHitNames, kgMocrenHitScorerNames, kgMocrenNoVoxels, kgMocrenScoringMeshName, kgMocrenVolumeName, kListgMocrenCommand, kResetgMocrenHitNameCommand, kResetgMocrenHitScorerNameCommand, kSetgMocrenNoVoxelsCommand, kSetgMocrenScoringMeshNameCommand, kSetgMocrenVolumeNameCommand, list(), pointAttributes, setEventNumberSuffixCommand, solids, G4UImessenger::StoI(), suffix, and useSolidsCommand.

◆ 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().

◆ useSolids()

G4bool G4GMocrenMessenger::useSolids ( )
virtual

Definition at line 246 of file G4GMocrenMessenger.cc.

246 {
247 return solids;
248}

References solids.

◆ writeInvisibles()

G4bool G4GMocrenMessenger::writeInvisibles ( )
virtual

Definition at line 250 of file G4GMocrenMessenger.cc.

250 {
251 return invisibles;
252}

References invisibles.

Field Documentation

◆ addPointAttributesCommand

G4UIcmdWithABool* G4GMocrenMessenger::addPointAttributesCommand
private

◆ appendGeometryCommand

G4UIcmdWithABool* G4GMocrenMessenger::appendGeometryCommand
private

◆ baseDir

G4UIdirectory* G4UImessenger::baseDir = nullptr
protectedinherited

◆ baseDirName

G4String G4UImessenger::baseDirName = ""
protectedinherited

◆ commandsShouldBeInMaster

G4bool G4UImessenger::commandsShouldBeInMaster = false
protectedinherited

◆ geometry

G4bool G4GMocrenMessenger::geometry
private

Definition at line 73 of file G4GMocrenMessenger.hh.

Referenced by appendGeometry(), GetCurrentValue(), and SetNewValue().

◆ invisibles

G4bool G4GMocrenMessenger::invisibles
private

Definition at line 82 of file G4GMocrenMessenger.hh.

Referenced by writeInvisibles().

◆ kAddgMocrenHitNameCommand

G4UIcmdWithAString* G4GMocrenMessenger::kAddgMocrenHitNameCommand
private

◆ kAddgMocrenHitScorerNameCommand

G4UIcmdWithAString* G4GMocrenMessenger::kAddgMocrenHitScorerNameCommand
private

◆ kDrawVolumeGrid

G4bool G4GMocrenMessenger::kDrawVolumeGrid
private

Definition at line 103 of file G4GMocrenMessenger.hh.

Referenced by GetCurrentValue(), getDrawVolumeGrid(), and SetNewValue().

◆ kDrawVolumeGridCommand

G4UIcmdWithABool* G4GMocrenMessenger::kDrawVolumeGridCommand
private

◆ kgMocrenDirectory

G4UIdirectory* G4GMocrenMessenger::kgMocrenDirectory
private

Definition at line 68 of file G4GMocrenMessenger.hh.

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

◆ kgMocrenHitNames

std::vector<G4String> G4GMocrenMessenger::kgMocrenHitNames
private

Definition at line 87 of file G4GMocrenMessenger.hh.

Referenced by GetCurrentValue(), getHitNames(), list(), and SetNewValue().

◆ kgMocrenHitScorerNames

std::vector<G4String> G4GMocrenMessenger::kgMocrenHitScorerNames
private

Definition at line 94 of file G4GMocrenMessenger.hh.

Referenced by GetCurrentValue(), getHitScorerNames(), list(), and SetNewValue().

◆ kgMocrenNoVoxels

G4int G4GMocrenMessenger::kgMocrenNoVoxels[3]
private

Definition at line 98 of file G4GMocrenMessenger.hh.

Referenced by getNoVoxels(), and SetNewValue().

◆ kgMocrenScoringMeshName

G4String G4GMocrenMessenger::kgMocrenScoringMeshName
private

Definition at line 91 of file G4GMocrenMessenger.hh.

Referenced by GetCurrentValue(), getScoringMeshName(), list(), and SetNewValue().

◆ kgMocrenVolumeName

G4String G4GMocrenMessenger::kgMocrenVolumeName
private

Definition at line 84 of file G4GMocrenMessenger.hh.

Referenced by GetCurrentValue(), getVolumeName(), list(), and SetNewValue().

◆ kListgMocrenCommand

G4UIcmdWithoutParameter* G4GMocrenMessenger::kListgMocrenCommand
private

Definition at line 101 of file G4GMocrenMessenger.hh.

Referenced by G4GMocrenMessenger(), and SetNewValue().

◆ kResetgMocrenHitNameCommand

G4UIcmdWithoutParameter* G4GMocrenMessenger::kResetgMocrenHitNameCommand
private

Definition at line 89 of file G4GMocrenMessenger.hh.

Referenced by G4GMocrenMessenger(), SetNewValue(), and ~G4GMocrenMessenger().

◆ kResetgMocrenHitScorerNameCommand

G4UIcmdWithoutParameter* G4GMocrenMessenger::kResetgMocrenHitScorerNameCommand
private

Definition at line 96 of file G4GMocrenMessenger.hh.

Referenced by G4GMocrenMessenger(), SetNewValue(), and ~G4GMocrenMessenger().

◆ kSetgMocrenNoVoxelsCommand

G4UIcommand* G4GMocrenMessenger::kSetgMocrenNoVoxelsCommand
private

Definition at line 99 of file G4GMocrenMessenger.hh.

Referenced by G4GMocrenMessenger(), SetNewValue(), and ~G4GMocrenMessenger().

◆ kSetgMocrenScoringMeshNameCommand

G4UIcmdWithAString* G4GMocrenMessenger::kSetgMocrenScoringMeshNameCommand
private

◆ kSetgMocrenVolumeNameCommand

G4UIcmdWithAString* G4GMocrenMessenger::kSetgMocrenVolumeNameCommand
private

◆ pointAttributes

G4bool G4GMocrenMessenger::pointAttributes
private

Definition at line 76 of file G4GMocrenMessenger.hh.

Referenced by addPointAttributes(), GetCurrentValue(), and SetNewValue().

◆ setEventNumberSuffixCommand

G4UIcmdWithAString* G4GMocrenMessenger::setEventNumberSuffixCommand
private

◆ solids

G4bool G4GMocrenMessenger::solids
private

Definition at line 79 of file G4GMocrenMessenger.hh.

Referenced by GetCurrentValue(), SetNewValue(), and useSolids().

◆ suffix

G4String G4GMocrenMessenger::suffix
private

Definition at line 70 of file G4GMocrenMessenger.hh.

Referenced by GetCurrentValue(), getEventNumberSuffix(), and SetNewValue().

◆ useSolidsCommand

G4UIcmdWithABool* G4GMocrenMessenger::useSolidsCommand
private

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