# # Use with a TSG vis driver. # Activate with: # /control/execute plotter.mac # /run/beamOn 10 # it will update the plotter regions at end of run. # #/vis/verbose errors #/vis/verbose confirmations #/////////////////////////////////////////////////////////////////////// #/// activate the TSG vis driver: ////////////////////////////////////// #/////////////////////////////////////////////////////////////////////// /vis/sceneHandler/create TSG scene-handler-plotter #/////////////////////////////////////////////////////////////////////// #/// viewer: /////////////////////////////////////////////////////////// #/////////////////////////////////////////////////////////////////////// /vis/viewer/create scene-handler-plotter viewer-plotter 600x600-0+0 /vis/viewer/set/background 1 1 1 /vis/viewer/zoomTo 1 /vis/viewer/set/viewpointVector 0 0 1 #/////////////////////////////////////////////////////////////////////// #/// scene: //////////////////////////////////////////////////////////// #/////////////////////////////////////////////////////////////////////// /vis/plotter/create plotter-0 /vis/scene/create scene-plotter /vis/scene/add/plotter plotter-0 /vis/sceneHandler/attach scene-plotter #/////////////////////////////////////////////////////////////////////// #/// create plotter regions and attach histograms to them: ///////////// #/////////////////////////////////////////////////////////////////////// /vis/plotter/setLayout plotter-0 2 2 # create 2x2 plotting regions. # AnaEx03 specific: /vis/plotter/add/h1 0 plotter-0 0 /vis/plotter/add/h1 1 plotter-0 1 /vis/plotter/add/h1 2 plotter-0 2 /vis/plotter/add/h1 3 plotter-0 3 #/////////////////////////////////////////////////////////////////////// #/// plotters customisation: /////////////////////////////////////////// #/////////////////////////////////////////////////////////////////////// # For texts, as titles and axis labels, the good old Hershey vectorial font is used # by default, but you can also specify a freetype font To use a freetype font, you # must build Geant4 by specifying -DGEANT4_USE_FREETYPE=ON yin your cmake flags. # (The ROOT_default and hippodraw styles (see below) uses freetype fonts). # Two embedded ttf fonts comes with the ToolsSG plotting: roboto_bold (some open source # kind of the Microsoft arialbd) and lato_regular (close to an helvetica). # You can use your own .ttf files by using the TOOLS_FONT_PATH environment variable # to specify the directory where they could be found. #/////////////////////////////////////////////////////////////////////// #/// using styles: ///////////////////////////////////////////////////// #/////////////////////////////////////////////////////////////////////// /vis/plotter/style/list /vis/plotter/addStyle plotter-0 reset # # The below lines show how to customise a plotter by using an embedded style # (for example ROOT_default, hippodraw, default) or a style defined with commands. # The description of the embedded styles can be seen in Geant4 source code at: # source/externals/g4tools/include/tools/sg/plotter_some_styles # # A style can be applied on all regions by using: # /vis/plotter/addStyle