Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -32,43 +32,35 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4Types.hh"
|
||||
|
||||
#include "ExP02DetectorConstruction.hh"
|
||||
#include "ExP02DetConstrReader.hh"
|
||||
#include "ExP02DetectorConstruction.hh"
|
||||
#include "ExP02PrimaryGeneratorAction.hh"
|
||||
|
||||
#include "FTFP_BERT.hh"
|
||||
|
||||
#include "G4RunManagerFactory.hh"
|
||||
#include "G4UImanager.hh"
|
||||
|
||||
#include "G4VisExecutive.hh"
|
||||
#include "G4Types.hh"
|
||||
#include "G4UIExecutive.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4VisExecutive.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
if(argc==1)
|
||||
{
|
||||
if (argc == 1) {
|
||||
G4cout << "Please give 'write' or 'read' as argument " << G4endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
G4VUserDetectorConstruction* det;
|
||||
|
||||
if(std::string(argv[1]) == "read")
|
||||
{
|
||||
det = new ExP02DetConstrReader;
|
||||
}
|
||||
else if(std::string(argv[1]) == "write")
|
||||
{
|
||||
if (std::string(argv[1]) == "read") {
|
||||
det = new ExP02DetConstrReader;
|
||||
}
|
||||
else if (std::string(argv[1]) == "write") {
|
||||
det = new ExP02DetectorConstruction;
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
G4cout << "Wrong argument!" << G4endl;
|
||||
return 0;
|
||||
}
|
||||
@@ -92,11 +84,11 @@ int main(int argc, char** argv)
|
||||
// UserAction classes
|
||||
runManager->SetUserAction(new ExP02PrimaryGeneratorAction());
|
||||
|
||||
//Initialize G4 kernel
|
||||
// Initialize G4 kernel
|
||||
runManager->Initialize();
|
||||
|
||||
//get the pointer to the User Interface manager
|
||||
G4UImanager * UImanager = G4UImanager::GetUIpointer();
|
||||
// get the pointer to the User Interface manager
|
||||
G4UImanager* UImanager = G4UImanager::GetUIpointer();
|
||||
|
||||
UImanager->ApplyCommand("/control/execute vis.mac");
|
||||
ui->SessionStart();
|
||||
@@ -109,4 +101,3 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
Reference in New Issue
Block a user