Import Geant4 10.4.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2017-06-30 10:49:55 +02:00
parent 3a5407696b
commit 1a1316fea4
2180 changed files with 237880 additions and 59109 deletions
@@ -1,4 +1,4 @@
$Id: History 69587 2013-05-08 14:26:03Z gcosmo $
$Id: History 103931 2017-05-03 13:52:02Z gcosmo $
-------------------------------------------------------------------
=========================================================
@@ -16,6 +16,11 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
8th January 2017 John Allison (exam-ext-vis-persp-V10-03-00)
- perspective.cc:
o Changed SetUserAction to RegisterRunDurationUserVisAction.
o Updated to current practice.
27th March 2013 John Allison (exam-ext-vis-persp-V09-06-02)
- Added separators between functions.
@@ -27,7 +27,7 @@
/// \brief Main program of the visualization/perspective example
//
//
// $Id: perspective.cc 69587 2013-05-08 14:26:03Z gcosmo $
// $Id: perspective.cc 103931 2017-05-03 13:52:02Z gcosmo $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -46,20 +46,18 @@
int main(int argc,char** argv) {
G4UIExecutive* ui = new G4UIExecutive(argc,argv);
G4VisManager* visManager = new G4VisExecutive;
visManager->RegisterRunDurationUserVisAction
("Perspective",
new PerspectiveVisAction,
G4VisExtent(-100*m,100*m,-100*m,100*m,-100*m,100*m));
visManager->Initialise();
visManager->SetUserAction
(new PerspectiveVisAction,
G4VisExtent(-100*m,100*m,-100*m,100*m,-100*m,100*m));
G4String command = "/control/execute ";
G4String fileName = "vis.mac";
if (argc > 1) { // Macro name supplied.
fileName = argv[1];
}
G4UIExecutive* ui = new G4UIExecutive(argc,argv);
G4UImanager::GetUIpointer()->ApplyCommand(command+fileName);
G4UImanager::GetUIpointer()->ApplyCommand("/control/execute vis.mac");
ui->SessionStart();
delete ui;