1#include "G4Svc/GoofyMessenger.h"
2#include "G4Svc/Goofy.h"
4#include "G4UIcommand.hh"
5#include "G4UImanager.hh"
7#include "FadsPackageLoader/PackageLoader.h"
13 shell=
new G4UIcommand(
"/shell",
this);
14 shell->SetGuidance(
"Invokes a shell command");
17 parameter =
new G4UIparameter (
"Command",
's', omitable =
false);
20 echo=
new G4UIcommand(
"/echo",
this);
21 echo->SetGuidance(
"Echoes a string");
24 edit=
new G4UIcommand(
"/edit",
this);
25 edit->SetGuidance(
"Invokes the chosen editor");
26 parameter =
new G4UIparameter (
"File to be edited",
's', omitable =
false);
29 quit=
new G4UIcommand(
"/quit",
this);
30 quit->SetGuidance(
"quits the application");
32 load=
new G4UIcommand(
"/load",
this);
33 load->SetGuidance(
"Dynamically loads a shared library");
34 parameter =
new G4UIparameter (
"Library to be loaded",
's', omitable =
false);
37 unload=
new G4UIcommand(
"/unload",
this);
38 unload->SetGuidance(
"Drops a shared library");
39 parameter =
new G4UIparameter (
"Library to be dropped",
's', omitable =
false);
57 std::string temp(newValues);
58 unsigned int i=temp.find_first_not_of (
'"');
59 if (i != std::string::npos)
61 if (i>0) temp = temp.substr (i);
62 i = temp.find_last_not_of (
'"');
63 if (i < temp.size ()) temp = temp.substr (0, i + 1);
67 else if (command==echo)
69 std::string temp(newValues);
70 unsigned int i=temp.find_first_not_of (
'"');
71 if (i != std::string::npos)
73 if (i>0) temp = temp.substr (i);
74 i = temp.find_last_not_of (
'"');
75 if (i < temp.size ()) temp = temp.substr (0, i + 1);
79 else if (command==quit)
81 G4UImanager *man=G4UImanager::GetUIpointer();
82 man->ApplyCommand(
"/exit");
84 else if (command==edit)
86 std::string
s=
"$GOOFY_EDITOR "+newValues+
" &";
89 else if (command==load)
91 PackageLoader a(newValues.c_str());
93 else if (command==unload)
97 test=a.unload(newValues);
103 G4String
s=
"Undefined";
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
G4String GetCurrentValue(G4UIcommand *command)
void SetNewValue(G4UIcommand *command, G4String newValues)
static int Shell(std::string s)
double precision pisqo6 parameter(pi=3.14159265358979d0, pisq=pi *pi, pisqo6=pisq/6d0) double precision zip