Changeset 1337 for trunk/examples/extended/parameterisations/gflash
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- Location:
- trunk/examples/extended/parameterisations/gflash
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/parameterisations/gflash/ExGflash.cc
r807 r1337 49 49 50 50 #ifdef G4VIS_USE 51 #include " ExGflashVisManager.hh"51 #include "G4VisExecutive.hh" 52 52 #endif 53 53 … … 86 86 runManager->SetUserAction(new ExGflashRunAction); 87 87 88 89 G4VisManager* visManager = new ExGflashVisManager;88 #ifdef G4VIS_USE 89 G4VisManager* visManager = new G4VisExecutive; 90 90 visManager->Initialize(); 91 #endif 91 #endif 92 92 93 93 G4UImanager* UI = G4UImanager::GetUIpointer(); -
trunk/examples/extended/parameterisations/gflash/History
r807 r1337 1 $Id: History,v 1. 4 2007/05/18 15:22:01 mverderiExp $1 $Id: History,v 1.5 2010/06/06 05:09:17 perl Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 18 18 ---------------------------------------------------------- 19 19 20 June 4, 2010, J.Perl (exgflash-V09-03-00) 21 - Update vis usage 22 20 23 May 18, 2007, M. Verderi (exgflash-V08-03-00) 21 24 - ExGflashPhysicsList.cc : the fast simulation process is now a discrete process -
trunk/examples/extended/parameterisations/gflash/src/ExGflashEventAction.cc
r807 r1337 31 31 #include "G4EventManager.hh" 32 32 #include "G4SDManager.hh" 33 #include "G4TrajectoryContainer.hh"34 #include "G4Trajectory.hh"35 #include "G4VVisManager.hh"36 33 #include "G4UImanager.hh" 37 34 #include "G4TrajectoryContainer.hh" 38 #include "G4VVisManager.hh"39 35 #include "G4Event.hh" 40 36 //std … … 166 162 if(trajectoryContainer){ n_trajectories = trajectoryContainer->entries(); } 167 163 G4cout << " " << n_trajectories << " trajectories stored in this event." << endl; 168 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();169 170 if(pVVisManager)171 {172 cout << "DRAWING " <<n_trajectories << endl;173 for(G4int i=0; i<n_trajectories; i++) { (*(evt->GetTrajectoryContainer()))[i]->DrawTrajectory(50); }174 }175 176 164 } 177 165 -
trunk/examples/extended/parameterisations/gflash/vis.mac
r807 r1337 8 8 /gps/energy 2.0 GeV 9 9 /gps/direction 0. 0. 1.0 10 11 /vis/scene/create12 10 # 13 # Create OGLSXma scene handler for a specific graphics system 14 # (Edit the next le(s) to choose another graphic system) 15 16 /vis/open OGLIX 11 # Use this open statement to create an OpenGL view: 12 /vis/open OGL 600x600-0+0 13 # 14 # Use this open statement to create a .prim file suitable for 15 # viewing in DAWN: 16 #/vis/open DAWNFILE 17 # 18 # Use this open statement to create a .heprep file suitable for 19 # viewing in HepRApp: 20 #/vis/open HepRepFile 21 # 22 # Use this open statement to create a .wrl file suitable for 23 # viewing in a VRML viewer: 24 #/vis/open VRML2FILE 25 # 26 # Disable auto refresh and quieten vis messages whilst scene and 27 # trajectories are established: 28 /vis/viewer/set/autoRefresh false 29 /vis/verbose errors 30 # 31 # Draw geometry: 32 /vis/drawVolume 33 # 34 # Specify view point vector: 35 /vis/viewer/set/viewpointVector 1 1 1 36 # 37 # Specify zoom value: 17 38 /vis/viewer/zoom 0.5 18 19 /vis/viewer/set/viewpointVector 1 1 1 20 21 /vis/viewer/flush 22 # for drawing the tracks 23 # (if too many tracks cause core dump => storeTrajectory 0) 24 /tracking/storeTrajectory 1 39 # 40 # Specify style (surface or wireframe): 41 #/vis/viewer/set/style wireframe 42 # 43 # Draw coordinate axes: 44 #/vis/scene/add/axes 0 0 0 1 m 45 # 46 # Draw smooth trajectories at end of event, showing trajectory points 47 # as markers 2 pixels wide: 48 /vis/scene/add/trajectories smooth 49 /vis/modeling/trajectories/create/drawByCharge 50 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 51 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 52 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 53 # 54 # Draw hits at end of event: 55 #/vis/scene/add/hits 56 # 57 # To draw only gammas: 58 #/vis/filtering/trajectories/create/particleFilter 59 #/vis/filtering/trajectories/particleFilter-0/add gamma 60 # 61 # To invert the above, drawing all particles except gammas, 62 # keep the above two lines but also add: 63 #/vis/filtering/trajectories/particleFilter-0/invert true 64 # 65 # Many other options are available with /vis/modeling and /vis/filtering. 66 # For example, to select colour by particle ID: 67 #/vis/modeling/trajectories/create/drawByParticleID 68 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 69 # 70 # To superimpose all of the events from a given run: 25 71 /vis/scene/endOfEventAction accumulate 72 # 73 # Re-establish auto refreshing and verbosity: 74 /vis/viewer/set/autoRefresh true 75 /vis/verbose warnings 76 # 77 # For file-based drivers, use this to create an empty detector view: 78 #/vis/viewer/flush 79 # 26 80 /tracking/verbose 0 27 81 /GFlash/flag 1
Note: See TracChangeset
for help on using the changeset viewer.