#include <Goofy.h>
Public Member Functions | |
Goofy (int, char **) | |
Goofy () | |
~Goofy () | |
Static Public Member Functions | |
int | Shell (std::string s) |
Private Member Functions | |
void | Banner () |
void | SetJobOptions () |
Private Attributes | |
std::string | initmacro |
std::vector< std::string > | opts |
RunMode | rm |
std::string | runmacro |
GoofyMessenger * | theMessenger |
ProjectMessenger * | theProject |
RandomCenterMessenger * | theRandomCenter |
|
00013 { 00014 00015 Banner(); 00016 00017 theMessenger=new GoofyMessenger(this); 00018 theProject=new ProjectMessenger(this); 00019 theRandomCenter=new RandomCenterMessenger(this); 00020 00021 }
|
|
|
|
00056 { 00057 delete theMessenger; 00058 delete theProject; 00059 delete theRandomCenter; 00060 }
|
|
00068 { 00069 std::cout<<std::endl<<std::endl<< 00070 "***********************************************************************"<<std::endl<< 00071 "***********************************************************************"<<std::endl<< 00072 "** **"<<std::endl<< 00073 "** GGGGG OOOOO OOOOO FFFFFFF Y Y **"<<std::endl<< 00074 "** G G O O O O F Y Y **"<<std::endl<< 00075 "** G O O O O F Y Y **"<<std::endl<< 00076 "** G O O O O FFFFF YYY **"<<std::endl<< 00077 "** G GGGG O O O O F Y **"<<std::endl<< 00078 "** G G O O O O F Y **"<<std::endl<< 00079 "** GGGGG OOOOO OOOOO F Y **"<<std::endl<< 00080 "** **"<<std::endl<< 00081 "** **"<<std::endl<< 00082 "** The Geant4-based Object Oriented FollY **"<<std::endl<< 00083 "** **"<<std::endl<< 00084 "** Jan 10th, 2000 **"<<std::endl<< 00085 "** **"<<std::endl<< 00086 "***********************************************************************"<<std::endl<< 00087 "***********************************************************************"<<std::endl<< 00088 std::endl<<std::endl<<std::endl; 00089 00090 char *greetings=getenv("GOOFY_GREETINGS"); 00091 00092 if (greetings) 00093 Shell("xv -wait 2 $GOOFY_GREETINGS"); 00094 }
|
|
00098 { 00099 rm=Interactive; 00100 std::vector<std::string>::const_iterator it; 00101 00102 it=find(opts.begin(),opts.end(),"-b"); 00103 if (it!=opts.end()) rm=Batch; 00104 00105 it=find(opts.begin(),opts.end(),"-i"); 00106 if (it!=opts.end()) 00107 { 00108 it++; 00109 initmacro=*it; 00110 } 00111 00112 it=find(opts.begin(),opts.end(),"-m"); 00113 if (it!=opts.end()) 00114 { 00115 it++; 00116 runmacro=*it; 00117 } 00118 }
|
|
00063 { 00064 return system(s.c_str()); 00065 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|