2#include "G4Svc/Goofy.h"
3#include "G4Svc/GoofyMessenger.h"
4#include "G4Svc/ProjectMessenger.h"
5#include "G4Svc/RandomCenterMessenger.h"
8#include "G4UImanager.hh"
9#include "G4UIterminal.hh"
28 if (npar>1)
for (
int i=1;i<npar;i++) opts.push_back(pars[i]);
37 G4UImanager * UI = G4UImanager::GetUIpointer();
38 if (!initmacro.empty()) UI->ApplyCommand(
"/control/execute "+initmacro);
46 std::cout<<
" Batch mode selected but no macro file "
47 <<
"to run; Aborting!!!!"<<std::endl;
50 UI->ApplyCommand(
"/control/execute "+runmacro);
59 delete theRandomCenter;
64 return system(
s.c_str());
69 std::cout<<std::endl<<std::endl<<
70 "***********************************************************************"<<std::endl<<
71 "***********************************************************************"<<std::endl<<
73 "** GGGGG OOOOO OOOOO FFFFFFF Y Y **"<<std::endl<<
74 "** G G O O O O F Y Y **"<<std::endl<<
75 "** G O O O O F Y Y **"<<std::endl<<
76 "** G O O O O FFFFF YYY **"<<std::endl<<
77 "** G GGGG O O O O F Y **"<<std::endl<<
78 "** G G O O O O F Y **"<<std::endl<<
79 "** GGGGG OOOOO OOOOO F Y **"<<std::endl<<
82 "** The Geant4-based Object Oriented FollY **"<<std::endl<<
84 "** Jan 10th, 2000 **"<<std::endl<<
86 "***********************************************************************"<<std::endl<<
87 "***********************************************************************"<<std::endl<<
88 std::endl<<std::endl<<std::endl;
90 char *greetings=getenv(
"GOOFY_GREETINGS");
93 Shell(
"xv -wait 2 $GOOFY_GREETINGS");
97void Goofy::SetJobOptions()
100 std::vector<std::string>::const_iterator it;
102 it=find(opts.begin(),opts.end(),
"-b");
103 if (it!=opts.end()) rm=
Batch;
105 it=find(opts.begin(),opts.end(),
"-i");
112 it=find(opts.begin(),opts.end(),
"-m");
static int Shell(std::string s)