Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
#include "StandaloneVisAction.hh"
|
||||
#include "DrawGeometryVisAction.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -48,17 +49,27 @@ int main(int argc,char** argv) {
|
||||
G4UIExecutive* ui = new G4UIExecutive(argc, argv);
|
||||
|
||||
G4VisManager* visManager = new G4VisExecutive;
|
||||
visManager->RegisterRunDurationUserVisAction
|
||||
("A standalone example - 3 boxes, 2 with boolean subtracted cutout",
|
||||
new StandaloneVisAction,
|
||||
G4VisExtent(-10*m,10*m,-10*m,10*m,-10*m,10*m));
|
||||
visManager->Initialize ();
|
||||
|
||||
auto standaloneVisAction = new StandaloneVisAction;
|
||||
visManager->RegisterRunDurationUserVisAction
|
||||
("A standalone example - 3 boxes, 2 with boolean subtracted cutout",
|
||||
standaloneVisAction,
|
||||
G4VisExtent(-10*cm,10*cm,-10*cm,10*cm,-10*cm,10*cm));
|
||||
|
||||
auto geometryVisAction = new DrawGeometryVisAction;
|
||||
visManager->RegisterRunDurationUserVisAction
|
||||
("A detector geometry",
|
||||
geometryVisAction,
|
||||
geometryVisAction->GetVisxtent());
|
||||
|
||||
G4UImanager::GetUIpointer()->ApplyCommand ("/control/execute standalone.mac");
|
||||
ui->SessionStart();
|
||||
|
||||
delete ui;
|
||||
delete geometryVisAction;
|
||||
delete standaloneVisAction;
|
||||
delete visManager;
|
||||
delete ui;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user