LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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"

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;
50  visManager->RegisterRunDurationUserVisAction
51  ("A standalone example - 3 boxes, 2 with boolean subtracted cutout",
52  new StandaloneVisAction,
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);
57  G4UImanager* UImanager = G4UImanager::GetUIpointer();
58  UImanager->ApplyCommand ("/control/execute standalone.mac");
59  ui->SessionStart();
60 
61  delete ui;
62  delete visManager;
63 }