#include "DetectorConstruction.hh"
#include "PhysicsList.hh"
#include "ActionInitialization.hh"
#include "G4RunManager.hh"
#include "G4DNAChemistryManager.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4VisExecutive.hh"
#include "CommandLineParser.hh"
Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 71 of file chem2.cc.
83 #ifdef G4MULTITHREADED 89 const G4String& option = commandLine->GetOption();
94 else if(option ==
"NMAX")
103 G4cout <<
"===== Chem2 is started with " 105 <<
" threads =====" <<
G4endl;
142 commandLine->GetOption());
151 commandLine->GetOption());
178 G4String command =
"/control/execute ";
179 UImanager->
ApplyCommand(command + commandLine->GetOption());
200 CommandLineParser::DeleteInstance();
void Parse(int &argc, char **argv)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
Command * GetCommandIfActive(const G4String &marker)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
G4int G4GetNumberOfCores()
CommandLineParser * parser(0)
static G4int ConvertToInt(const char *st)
virtual void Initialize()
Detector construction class to define materials and geometry.
G4int ApplyCommand(const char *aCommand)
◆ Parse()
void Parse |
( |
int & |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 205 of file chem2.cc.
210 parser = CommandLineParser::GetParser();
213 Command::OptionNotCompulsory,
214 "Select geant4 UI or just launch a geant4 terminal session",
219 "Give a mac file to execute",
228 #ifdef G4MULTITHREADED 230 "Launch in MT mode (events computed in parallel," 231 " NOT RECOMMANDED WITH CHEMISTRY)",
236 Command::WithoutOption,
237 "Deactivate chemistry");
241 "Select a visualization driver",
245 Command::WithoutOption,
246 "Deactivate visualization when using GUI");
255 CommandLineParser::DeleteInstance();
int Parse(int &argc, char **argv)
void AddCommand(const G4String &marker, Command::Type, const G4String &description="", const G4String &defaultOption="", const G4String &optionName="")
bool CheckIfNotHandledOptionsExists(int &argc, char **argv)
CommandLineParser * parser(0)
◆ parser()