LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 46 of file standalone.cc.

46  {
47 
48  G4UIExecutive* ui = new G4UIExecutive(argc, argv);
49 
50  G4VisManager* visManager = new G4VisExecutive;
51  visManager->RegisterRunDurationUserVisAction
52  ("A standalone example - 3 boxes, 2 with boolean subtracted cutout",
53  new StandaloneVisAction,
54  G4VisExtent(-10*m,10*m,-10*m,10*m,-10*m,10*m));
55  visManager->Initialize ();
56 
57  G4UImanager::GetUIpointer()->ApplyCommand ("/control/execute standalone.mac");
58  ui->SessionStart();
59 
60  delete ui;
61  delete visManager;
62 }