38 #ifdef G4MULTITHREADED
53 #include "ActionInitialization.hh"
54 #include "DetectorConstruction.hh"
55 #include "PhysicsList.hh"
56 #include "CommandLineParser.hh"
60 using namespace G4DNAPARSER;
63 void Parse(
int& argc,
char** argv);
65 int main(
int argc,
char** argv)
81 #ifdef G4MULTITHREADED
94 G4cout <<
"===== WholeNuclearDNA is started with "
96 <<
" threads =====" <<
G4endl;
163 G4String command =
"/control/execute ";
168 UImanager->
ApplyCommand(
"/control/execute wholeNuclearDNA.in");
174 G4UIQt* UIQt =
static_cast<G4UIQt*
> (UImanager->
GetG4UIWindow());
176 UIQt->AddViewerTabFromFile(
"README",
"README from "+
G4String(argv[0]));
196 std::string aux(argv[0]);
199 #if defined(_WIN32) || defined(WIN32)
200 int pos = aux.rfind(
'\\');
202 int pos = aux.rfind(
'/');
206 path = aux.substr(0, pos + 1);
207 executable = aux.substr(pos + 1);
212 void Parse(
int& argc,
char** argv)
221 "Select geant4 UI or just launch a geant4 terminal session",
226 "Give a mac file to execute",
235 #ifdef G4MULTITHREADED
238 "Launch in MT mode (events computed in parallel)",
244 "Select a visualization driver",
249 "Deactivate visualization when using GUI");
257 "Output files (ROOT is used by default)",
void Parse(int &argc, char **argv)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
int Parse(int &argc, char **argv)
void SetNumberOfThreads(G4int n)
void AddCommand(const G4String &marker, Command::Type, const G4String &description="", const G4String &defaultOption="", const G4String &optionName="")
Command * GetCommandIfActive(const G4String &marker)
bool CheckIfNotHandledOptionsExists(int &argc, char **argv)
int main(int argc, char **argv)
static CommandLineParser * GetParser()
static void DeleteInstance()
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
G4int G4GetNumberOfCores()
G4int GetNumberOfThreads() const
CommandLineParser * parser(0)
static G4int ConvertToInt(const char *st)
void GetNameAndPathOfExecutable(char **argv, G4String &executable, G4String &path)
G4UIsession * GetG4UIWindow() const
virtual void Initialize()
Detector construction class to define materials and geometry.
virtual const G4String & GetOption()
static const G4double pos
G4int ApplyCommand(const char *aCommand)