44 #ifdef G4MULTITHREADED
54 #include "CommandLineParser.hh"
55 #include "ActionInitialization.hh"
56 #include "DetectorConstruction.hh"
57 #include "PhysicsList.hh"
62 using namespace G4DNAPARSER;
65 void Parse(
int& argc,
char** argv);
67 int main(
int argc,
char** argv)
84 #ifdef G4MULTITHREADED
97 G4cout <<
"===== neuron is started with "
99 <<
" threads of MT MODE =====" <<
G4endl;
105 G4cout <<
"===== neuron is started with "
106 <<
" SEQUENTIAL MODE =====" <<
G4endl;
168 G4String command =
"/control/execute ";
184 G4cout <<
" Calculation time = "
200 std::string aux(argv[0]);
203 #if defined(_WIN32) || defined(WIN32)
204 int pos = aux.rfind(
'\\');
206 int pos = aux.rfind(
'/');
210 path = aux.substr(0, pos + 1);
211 executable = aux.substr(pos + 1);
216 void Parse(
int& argc,
char** argv)
221 parser = CommandLineParser::GetParser();
224 Command::OptionNotCompulsory,
225 "Select geant4 UI or just launch a geant4 terminal session",
230 "Give a mac file to execute",
239 #ifdef G4MULTITHREADED
242 "Launch in MT mode (events computed in parallel)",
243 " NOT RECOMMANDED WITH CHEMISTRY)",
248 "Initial beam position uniformly spread on a square!");
250 "Initial beam position uniformly spread on a disk!");
253 "Activate Livermore + DNAPhysics");
255 "Activate Livermore + DNAPhysics + DNAChemistry");
257 "Activate Hadronic + Livermore + DNAPhysics");
261 "Give a SWC file to simulation",
266 "Give a DAT file to simulation",
271 "Select a visualization driver",
275 Command::WithoutOption,
276 "Deactivate visualization when using GUI");
283 Command::OptionNotCompulsory,
294 CommandLineParser::DeleteInstance();