gdml2G4viz.cc File Reference

#include "G4RunManager.hh"
#include "G4VisExecutive.hh"
#include "G4UImanager.hh"
#include "G4GDMLParser.hh"
#include "TGDML_DetectorConstruction.hh"
#include "TGPS_PrimaryGeneratorAction.hh"
#include "QGSP.hh"

Go to the source code of this file.

Functions

G4String RenameG4VizFile (G4String gdmlFileName, G4String g4VizDefaultFileName)
 or any other physics list (See $G4SOURCE/physics_lists/lists/src/G4PhysListFactory.cc). This is just a fake for G4.
int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Parsing the input line

checking the parameter order

checking if the gdml file exists

checking if the macro file exists

Reading the GDML file

Run manager

Visualization manager

UI manager

Cleaning

Renaming the visualization files (if default name is used) with the gdml file root name (e.g. foo.gdml -> foo.heprep.zip, foo.wrl, ...)

WIRED4, See my post http://forum.freehep.org/index.php?t=msg&th=936&start=0&rid=0&S=7a7fcf2ac3b842d246213ec1f395643b

WIRED3, COPY HepRApp.jar in $G4BINDIR

VRML , link the firefox executable in $G4BINDIR

DAWN , link the dawn executable in $G4BINDIR

Definition at line 58 of file gdml2G4viz.cc.

G4String RenameG4VizFile ( G4String  gdmlFileName,
G4String  g4VizDefaultFileName 
)

or any other physics list (See $G4SOURCE/physics_lists/lists/src/G4PhysListFactory.cc). This is just a fake for G4.

cannot be skipped unless someday... http://hypernews.slac.stanford.edu/HyperNews/geant4/get/eventtrackmanage/895.html

Definition at line 46 of file gdml2G4viz.cc.


Copyright: Mathieu Trocmé, Sun 4 Oct 2009 (CeCILL license)