Changeset 1313 for trunk/examples/advanced/Rich
- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- 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 gbarrandExp $1 # $Id: GNUmakefile,v 1.3 2010/01/11 14:24:55 gcosmo Exp $ 2 2 # -------------------------------------------------------------- 3 3 # GNUmakefile for examples module. Gabriele Cosmo, 06/04/98. … … 9 9 10 10 ifndef G4INSTALL 11 G4INSTALL = ../.. /..11 G4INSTALL = ../.. 12 12 endif 13 13 -
trunk/examples/advanced/Rich/History
r1230 r1313 1 1 ------------------------------------------------------------------- 2 $Id: History,v 1.1 6 2009/11/12 13:09:56 ribonExp $2 $Id: History,v 1.19 2010/06/06 06:24:26 perl Exp $ 3 3 ------------------------------------------------------------------- 4 4 … … 9 9 Category History file 10 10 --------------------- 11 12 03.06.2010 - J.Perl (Rich-V09-03-02) 13 Updated vis usage 14 15 01.06.2010 - G.A.P.Cirrone (Rich-V09-03-01) 16 Added G4UIExecutive 17 18 31.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. 11 23 12 24 12.11.2009 - A.Ribon (Rich-V09-02-01) -
trunk/examples/advanced/Rich/README
r807 r1313 59 59 60 60 The 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: 61 Before running events, the visualization must be initialized by: 65 62 66 > /control/execute/ RichTbVis0.mac63 > /control/execute/vis.mac 67 64 68 65 The detector has longitudinal view of the geometry as default. -
trunk/examples/advanced/Rich/RichTbSim.cc
r1230 r1313 54 54 #ifdef G4VIS_USE 55 55 #include "G4VisExecutive.hh" 56 #endif 57 58 #ifdef G4UI_USE 59 #include "G4UIExecutive.hh" 56 60 #endif 57 61 … … 158 162 #endif 159 163 164 #ifdef G4UI_USE 165 G4UIExecutive * ui = new G4UIExecutive(argc,argv); 166 ui->SessionStart(); 167 delete ui; 168 #endif 169 160 170 delete runManager; 161 171 -
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: 67 6 /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. 74 26 #/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 # 80 68 /vis/viewer/update 81 69 … … 86 74 87 75 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 johnaExp $1 # $Id: run1.mac,v 1.4 2010/06/06 06:24:26 perl Exp $ 2 2 # 3 3 # Macro file for "LHCbRichSim.cc" 4 4 # 5 #/vis/open OGLIX6 # (can be run in batch, without graphic)7 5 /control/verbose 2 8 6 /control/saveHistory … … 13 11 #process/verbose 4 14 12 #particle/process/verbose 4 15 #vis/verbose 416 13 17 /vis/scene/create18 /vis/sceneHandler/create OGLSXm19 /vis/sceneHandler/create OGLIX20 /vis/viewer/create21 /vis/scene/add/volume22 23 24 /vis/viewer/update25 26 /vis/viewer/set/viewpointThetaPhi -90. -90.27 14 /hits/list 28 15 /hits/activate 29 16 /hits/verbose 4 30 17 /tracking/storeTrajectory 1 31 /vis/scene/add/trajectories32 18 33 19 /gun/particle pi-
Note: See TracChangeset
for help on using the changeset viewer.