12.07.2015 Views

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

Geant4 User's Guide for Application Developers - Geant4 - CERN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VisualizationSeveral commands are available to override some of HepRepFile's defaults• You can specify a different directory <strong>for</strong> the heprep output files by using the setFileDir command, as in:/vis/heprep/setFileDir • You can specify a different file name (the part be<strong>for</strong>e the number) by using the setFileName command, as in:/vis/heprep/setFileName which will produce files named 0.heprep, 1.heprep, etc.• You can specify that each file should overwrite the previous file (always rewriting to the same file name) byusing the setOverwrite command, as in:/vis/heprep/setOverwrite trueThis may be useful in some automated applications where you always want to see the latest output file in thesame location.• <strong>Geant4</strong> visualization supports a concept called "culling", by which certain parts of the detector can be madeinvisible. Since you may want to control visibility from the HepRep browser, turning on visibility of detectorparts that had defaulted to be invisible, the HepRepFile driver does not omit these invisible detector parts fromthe HepRep file. But <strong>for</strong> very large files, if you know that you will never want to make these parts visible, youcan choose to have them left entirely out of the file. Use the /vis/heprep/setCullInvisibles command, as in:/vis/heprep/setCullInvisibles trueFurther in<strong>for</strong>mation:• HepRApp Users Home Page:http://www.slac.stan<strong>for</strong>d.edu/~perl/HepRApp/ .• HepRep graphics <strong>for</strong>mat:http://www.slac.stan<strong>for</strong>d.edu/~perl/heprep• <strong>Geant4</strong> Visualization Tutorial using the HepRApp HepRep Browserhttp://geant4.slac.stan<strong>for</strong>d.edu/Presentations/vis/G4HepRAppTutorial/G4HepRAppTutorial.html8.3.6. HepRepXMLThe HepRepXML driver creates a HepRep file in the HepRep2 <strong>for</strong>mat suitable <strong>for</strong> viewing with the WIRED4Plugin to the JAS3 Analysis System or the FRED event display.This driver can write both Binary HepRep (.bheprep) and XML HepRep (.heprep) files. Binary HepRep filesare a one-to-one translation of XML HepRep files, but they are considerably shorter and faster to parse by aHepRepViewer such as WIRED 4.Both Binary HepRep and XML HepRep can be compressed using the standard zlib library if linked into <strong>Geant4</strong>using G4LIB_USE_ZLIB. If a standard zlib is not available (WIN32-VC <strong>for</strong> instance) you should also setG4LIB_BUILD_ZLIB to build G4zlib included with <strong>Geant4</strong>.HepRep files (Binary and XML) can contain multiple HepRep events/geometries. If the file contains more thanone HepRep it is not strictly XML anymore. Files can be written in .heprep.zip, .heprep.gz or .heprep <strong>for</strong>mat andtheir binary versions .bheprep.zip, .bheprep.gz or .bheprep.225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!