Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
standalone.cc File Reference

Main program of the visualization/standalone example. More...

#include "globals.hh"
#include "G4VisExecutive.hh"
#include "G4VisExtent.hh"
#include "G4UImanager.hh"
#include "G4UIExecutive.hh"
#include "G4SystemOfUnits.hh"
#include "StandaloneVisAction.hh"
Include dependency graph for standalone.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Main program of the visualization/standalone example.

Definition in file standalone.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 47 of file standalone.cc.

47  {
48 
49  G4VisManager* visManager = new G4VisExecutive;
51  ("A standalone example - 3 boxes, 2 with boolean subtracted cutout",
53  G4VisExtent(-10*m,10*m,-10*m,10*m,-10*m,10*m));
54  visManager->Initialize ();
55 
56  G4UIExecutive* ui = new G4UIExecutive(argc, argv);
58  UImanager->ApplyCommand ("/control/execute standalone.mac");
59  ui->SessionStart();
60 
61  delete ui;
62  delete visManager;
63 }
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
static constexpr double m
Definition: G4SIunits.hh:129
void Initialize()
void RegisterRunDurationUserVisAction(const G4String &name, G4VUserVisAction *, const G4VisExtent &=G4VisExtent::NullExtent)
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function: