Ignore:
Timestamp:
Jun 14, 2010, 3:54:58 PM (14 years ago)
Author:
garnier
Message:

geant4.9.4 beta rc0

Location:
trunk/examples/advanced/Rich
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/Rich/GNUmakefile

    r1230 r1313  
    1 # $Id: GNUmakefile,v 1.2 2009/03/06 09:39:58 gbarrand Exp $
     1# $Id: GNUmakefile,v 1.3 2010/01/11 14:24:55 gcosmo Exp $
    22# --------------------------------------------------------------
    33# GNUmakefile for examples module.  Gabriele Cosmo, 06/04/98.
     
    99
    1010ifndef G4INSTALL
    11   G4INSTALL = ../../..
     11  G4INSTALL = ../..
    1212endif
    1313
  • trunk/examples/advanced/Rich/History

    r1230 r1313  
    11-------------------------------------------------------------------
    2 $Id: History,v 1.16 2009/11/12 13:09:56 ribon Exp $
     2$Id: History,v 1.19 2010/06/06 06:24:26 perl Exp $
    33-------------------------------------------------------------------
    44
     
    99                      Category History file
    1010                      ---------------------
     11
     1203.06.2010 - J.Perl (Rich-V09-03-02)
     13             Updated vis usage
     14
     1501.06.2010 - G.A.P.Cirrone (Rich-V09-03-01)
     16             Added G4UIExecutive
     17
     1831.03.2010 - A.Ribon (Rich-V09-03-00)
     19             Replaced obsolete G4MultipleScattering class with:
     20             G4eMultipleScattering for e+ and e-;
     21             G4MuMultipleScattering for mu+ and mu-;
     22             G4hMultipleScattering for hadrons and ions.
    1123
    122412.11.2009 - A.Ribon (Rich-V09-02-01)
  • trunk/examples/advanced/Rich/README

    r807 r1313  
    5959
    6060The Visualization manager is set in the main().
    61 The Initialisation of the drawing is already defined in run1.mac.
    62 The example is prepared to use any other visualization packages which
    63 can be defined in such macro or inside RichTbVis0.mac. Before running
    64 the events, the visualization must be initialized by:
     61Before running events, the visualization must be initialized by:
    6562
    66 > /control/execute/RichTbVis0.mac
     63> /control/execute/vis.mac
    6764
    6865The detector has longitudinal view of the geometry as default.
  • trunk/examples/advanced/Rich/RichTbSim.cc

    r1230 r1313  
    5454#ifdef G4VIS_USE
    5555#include "G4VisExecutive.hh"
     56#endif
     57
     58#ifdef G4UI_USE
     59#include "G4UIExecutive.hh"
    5660#endif
    5761
     
    158162#endif
    159163
     164#ifdef G4UI_USE
     165      G4UIExecutive * ui = new G4UIExecutive(argc,argv);     
     166      ui->SessionStart();
     167      delete ui;
     168#endif
     169
    160170   delete runManager;
    161171
  • trunk/examples/advanced/Rich/RichTbVis0.mac

    r807 r1313  
    1 #######################################################################
    2 #  MACRO FILE NAME: RichTbVis0.mac                                    #
    3 #                                                                     #
    4 #  AUTHOR(S): Satoshi Tanaka                                          #
    5 #  Mod SE 20-3-01                                                     #
    6 #  DATE: November 10, 1999                                            #
    7 #        May      20, 2000                                            #
    8 #        June     06, 2000                                            #
    9 #                                                                     #
    10 #  CONTENTS: A simplest macro to demonstrate visualization of         #
    11 #            detector geometry and events                             #
    12 #                                                                     #
    13 #  USAGE:                                                             #
    14 #          Idle> /control/execute RichTbVis0.mac                      #
    15 #                                                                     #
    16 #  REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL,            #
    17 #                                  DAWN (version 3.80 or after)       #
    18 #                                  gv (Ghostview), Tcl/Tk             #
    19 #                                                                     #
    20 #  ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION:               #
    21 #  (See geant4/source/visualization/README for details.)              #
    22 #                                                                     #
    23 #    % setenv OGLHOME     ... (e.g. /usr/local)                       #
    24 #    % setenv G4VIS_BUILD_OPENGLX_DRIVER   1                          #
    25 #    % setenv G4VIS_BUILD_DAWNFILE_DRIVER  1                          #
    26 #                                                                     #
    27 #  ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION:                #
    28 #  (See geant4/source/visualization/README for details.)              #
    29 #                                                                     #
    30 #    % setenv G4VIS_USE_OPENGLX            1                          #
    31 #    % setenv G4VIS_USE_DAWNFILE           1                          #
    32 #                                                                     #
    33 #  Addional Notes:                                                    #
    34 #    The compound command "/vis/open <graphics-system-name>"          #
    35 #    is equivalent to the following set of commands:                  #
    36 #                                                                     #
    37 #      /vis/sceneHandler/create $1                                    #
    38 #      /vis/viewer/create                                             #
    39 #                                                                     #
    40 #    The compound command "/vis/drawVolume <physical-volume-name>"    #
    41 #    is equivalent to the following set of commands:                  #
    42 #                                                                     #
    43 #      /vis/scene/create                                              #
    44 #      /vis/scene/add/volume $1                                       #
    45 #      /vis/sceneHandler/attach                                       #
    46 #      /vis/viewer/refresh                                            #
    47 #      /vis/viewer/update                                             #
    48 #                                                                     #
    49 #######################################################################
    50 
    51 ##############################################
    52 # Visualization of detector geometry
    53 #  with the OGLIX (OpenGL Immediate X) driver
    54 ##############################################
    55 
    56 # Invoke the OGLIX driver
    57 #/vis/open OGLIX
    58 
    59 # Set camera
    60 #  Note: Camera setting should be done
    61 #        for each scene handler.
    62 /vis/camera/reset
    63 /vis/scene/create
    64 #/vis/sceneHandler/create OGLIX
    65 #/vis/sceneHandler/create DAWNFILE
    66 #/vis/sceneHandler/create OGLSXm
     1# Use this open statement to create an OpenGL view:
     2#/vis/open OGL 600x600-0+0
     3#
     4# Use this open statement to create a .prim file suitable for
     5# viewing in DAWN:
    676/vis/open DAWNFILE
    68 /vis/open OGLIX
    69 /vis/viewer/create
    70 /vis/scene/add/volume
    71 #/vis/camera/viewpoint 0 0
    72 
    73 /vis/camera/viewpoint -90 -90
     7#
     8# Use this open statement to create a .heprep file suitable for
     9# viewing in HepRApp:
     10#/vis/open HepRepFile
     11#
     12# Use this open statement to create a .wrl file suitable for
     13# viewing in a VRML viewer:
     14#/vis/open VRML2FILE
     15#
     16# Disable auto refresh and quieten vis messages whilst scene and
     17# trajectories are established:
     18/vis/viewer/set/autoRefresh false
     19/vis/verbose errors
     20#
     21# Draw geometry:
     22/vis/drawVolume
     23#
     24# Specify view angle:
     25/vis/viewer/set/viewpointThetaPhi -90. -90.
    7426#/vis/camera/viewpoint 270 0
    75 /vis/camera/zoom 0.8
    76 #/vis/camera/spin 20 10
    77 
    78 # Visualize of the whole detector geometry
    79 /vis/drawVolume
     27#
     28# Specify zoom value:
     29/vis/viewer/zoom 0.8
     30#
     31# Specify style (surface or wireframe):
     32#/vis/viewer/set/style wireframe
     33#
     34# Draw coordinate axes:
     35#/vis/scene/add/axes 0 0 0 1 m
     36#
     37# Draw smooth trajectories at end of event, showing trajectory points
     38# as markers 2 pixels wide:
     39/vis/scene/add/trajectories smooth
     40/vis/modeling/trajectories/create/drawByCharge
     41/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     42/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     43# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
     44#
     45# Draw hits at end of event:
     46#/vis/scene/add/hits
     47#
     48# To draw only gammas:
     49#/vis/filtering/trajectories/create/particleFilter
     50#/vis/filtering/trajectories/particleFilter-0/add gamma
     51#
     52# To invert the above, drawing all particles except gammas,
     53# keep the above two lines but also add:
     54#/vis/filtering/trajectories/particleFilter-0/invert true
     55#
     56# Many other options are available with /vis/modeling and /vis/filtering.
     57# For example, to select colour by particle ID:
     58#/vis/modeling/trajectories/create/drawByParticleID
     59#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
     60#
     61# To superimpose all of the events from a given run:
     62#/vis/scene/endOfEventAction accumulate
     63#
     64# Re-establish auto refreshing and verbosity:
     65/vis/viewer/set/autoRefresh true
     66/vis/verbose warnings
     67#
    8068/vis/viewer/update
    8169
     
    8674
    8775
    88 
    89 
    90 
    91 
  • trunk/examples/advanced/Rich/run1.mac

    r807 r1313  
    1 # $Id: run1.mac,v 1.3 2004/07/15 19:10:02 johna Exp $
     1# $Id: run1.mac,v 1.4 2010/06/06 06:24:26 perl Exp $
    22#
    33# Macro file for "LHCbRichSim.cc"
    44#
    5 #/vis/open OGLIX
    6 # (can be run in batch, without graphic)
    75/control/verbose 2
    86/control/saveHistory
     
    1311#process/verbose 4
    1412#particle/process/verbose 4
    15 #vis/verbose 4
    1613
    17 /vis/scene/create
    18 /vis/sceneHandler/create OGLSXm
    19 /vis/sceneHandler/create OGLIX
    20 /vis/viewer/create
    21 /vis/scene/add/volume
    22 
    23 
    24 /vis/viewer/update
    25 
    26 /vis/viewer/set/viewpointThetaPhi -90. -90.
    2714/hits/list
    2815/hits/activate
    2916/hits/verbose 4
    3017/tracking/storeTrajectory 1
    31 /vis/scene/add/trajectories
    3218
    3319/gun/particle pi-
Note: See TracChangeset for help on using the changeset viewer.