Changeset 1313 for trunk/examples/advanced/brachytherapy
- Timestamp:
- Jun 14, 2010, 3:54:58 PM (14 years ago)
- Location:
- trunk/examples/advanced/brachytherapy
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/advanced/brachytherapy/Brachy.cc
r1230 r1313 26 26 // 27 27 // $Id: Brachy.cc 28 // GEANT4 tag $Name: geant4-09-0 3-cand-01$28 // GEANT4 tag $Name: geant4-09-04-beta-cand-00 $ 29 29 // 30 30 // -------------------------------------------------------------- … … 57 57 #endif 58 58 59 #include "BrachyEventAction.hh"60 59 #include "BrachyDetectorConstruction.hh" 61 60 #include "BrachyPhysicsList.hh" … … 72 71 #ifdef G4ANALYSIS_USE 73 72 #include "BrachyAnalysisManager.hh" 73 #endif 74 75 76 #ifdef G4UI_USE 77 #include "G4UIExecutive.hh" 74 78 #endif 75 79 … … 91 95 BrachyPrimaryGeneratorAction* primary = new BrachyPrimaryGeneratorAction(); 92 96 pRunManager -> SetUserAction(primary); 93 94 // Initialize Optional User Action95 BrachyEventAction *pEventAction = new BrachyEventAction();96 pRunManager -> SetUserAction(pEventAction );97 97 98 98 BrachyRunAction *pRunAction = new BrachyRunAction(); … … 152 152 #endif 153 153 154 #ifdef G4UI_USE 155 G4UIExecutive * ui = new G4UIExecutive(argc,argv); 156 ui->SessionStart(); 157 delete ui; 158 #endif 159 154 160 // Job termination 155 161 #ifdef G4VIS_USE -
trunk/examples/advanced/brachytherapy/GNUmakefile
r1230 r1313 1 1 # -------------------------------------------------------------- 2 # $Id: GNUmakefile,v 1.1 3 2008/06/15 18:05:59 cirroneExp $2 # $Id: GNUmakefile,v 1.14 2010/01/11 14:27:29 gcosmo Exp $ 3 3 # -------------------------------------------------------------- 4 4 # GNUmakefile for examples module. Gabriele Cosmo, 06/04/98. … … 11 11 12 12 ifndef G4INSTALL 13 G4INSTALL = ../.. /..13 G4INSTALL = ../.. 14 14 endif 15 15 -
trunk/examples/advanced/brachytherapy/History
r807 r1313 1 1 ------------------------------------------------------------------- 2 $Id: History,v 1. 21 2006/11/15 10:03:37 guatelliExp $2 $Id: History,v 1.31 2010/06/06 06:15:30 perl Exp $ 3 3 ------------------------------------------------------------------- 4 4 … … 9 9 Category History file 10 10 --------------------- 11 12 03 June 2010 - Joseph Perl; tag brachy-V09-03-01 13 Updated vis usage 14 15 01 Jun 2010 - G.A.P. Cirrone; tag brachy-V09-03-00 16 G4UIExecutiveand minor revisions 17 18 12 Nov 2009 - L. Pandola; tag brachy-V09-02-02 19 Fixed AIDA 20 21 12 Nov. 2009 - S. Guatelli; brachy-V09-02-01 22 - Update of Physics List 23 24 22.Feb 2009 - G.Folger; tag brachy-V09-02-00 25 - Correct compilation errors and warnings when G4ANALYSIS is NOT set 26 27 24.11.2008 -- G.A.P.Cirrone; tag: brachy-V09-01-03 28 Updated macro files 29 21.11.2008 -- G.A.P.Cirrone; Tag: brachy-V09-01-02 30 Corrected and updated macro files 31 32 15.06.2008 -- G.A.P.Cirrone; Tag: brachy-V09-01-01 33 Removed no more necessary AIDA commands from GNUmakefile 34 35 05th June 2008: G.A.P.Cirrone (cirrone@lns.infn.it). Tag version: brachy-V09-01-00 36 - Compilation error corrected in the BrachyAnalysiManager 37 - Bad type assignment in BrachyAnalysismanager 38 - Activated the generation .root files for output 39 11 40 15th November 2006 Susanna Guatelli (brachy-V08-01-01) 12 41 - Physics list cleaned. The cut is fixed to a value lower than the -
trunk/examples/advanced/brachytherapy/VisualisationMacro.mac
r807 r1313 1 # Use this open statement to create an OpenGL view: 2 /vis/open OGL 600x600-0+0 1 3 # 2 # Macro file for the visualisation 3 # create empty scene 4 # Use this open statement to create a .prim file suitable for 5 # viewing in DAWN: 6 #/vis/open DAWNFILE 4 7 # 5 /vis/scene/create 6 /vis/open OGLIX 7 #/vis/open VRML1 8 #/vis/open DAWNFILE 9 /vis/viewer/flush 8 # Use this open statement to create a .heprep file suitable for 9 # viewing in HepRApp: 10 #/vis/open HepRepFile 10 11 # 11 # draw scene/ 12 # Use this open statement to create a .wrl file suitable for 13 # viewing in a VRML viewer: 14 #/vis/open VRML2FILE 12 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 13 20 # 14 # for drawing the tracks 15 /vis/viewer/set/viewpointThetaPhi 90 180 deg 16 /vis/viewer/zoom 1.4 17 /tracking/storeTrajectory 1 21 # Draw geometry: 22 /vis/drawVolume 23 # 24 # Specify view angle: 25 /vis/viewer/set/viewpointThetaPhi 90. 180. 26 # 27 # Specify zoom value: 28 /vis/viewer/zoom 7. 29 # 30 # Specify style (surface or wireframe): 31 #/vis/viewer/set/style wireframe 32 # 33 # Draw coordinate axes: 34 #/vis/scene/add/axes 0 0 0 1 m 35 # 36 # Draw smooth trajectories at end of event, showing trajectory points 37 # as markers 2 pixels wide: 38 /vis/scene/add/trajectories smooth 39 /vis/modeling/trajectories/create/drawByCharge 40 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 41 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 42 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 43 # 44 # Draw hits at end of event: 45 #/vis/scene/add/hits 46 # 47 # To draw only gammas: 48 #/vis/filtering/trajectories/create/particleFilter 49 #/vis/filtering/trajectories/particleFilter-0/add gamma 50 # 51 # To invert the above, drawing all particles except gammas, 52 # keep the above two lines but also add: 53 #/vis/filtering/trajectories/particleFilter-0/invert true 54 # 55 # Many other options are available with /vis/modeling and /vis/filtering. 56 # For example, to select colour by particle ID: 57 #/vis/modeling/trajectories/create/drawByParticleID 58 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 59 # 60 # To superimpose all of the events from a given run: 18 61 /vis/scene/endOfEventAction accumulate 19 /vis/viewer/update 62 # 63 # Re-establish auto refreshing and verbosity: 64 /vis/viewer/set/autoRefresh true 65 /vis/verbose warnings 66 # 67 # For file-based drivers, use this to create an empty detector view: 68 #/vis/viewer/flush 69 20 70 ##/primary/energy Iodium 21 71 ##/source/switch Iodium 22 /vis/viewer/zoom 5 72 23 73 /run/beamOn 100 24 74
Note: See TracChangeset
for help on using the changeset viewer.