Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/dna/cellularPhantom/vis.mac is written in an unsupported language. File is not indexed.

0001 # *********************************************************************
0002 # MANDATORY SETTINGS
0003 # (before kernel initialization)
0004 #
0005 # MT
0006 /run/numberOfThreads 10
0007 #
0008 # Phantom file name
0009 /phantom/fileName phantoms/phantom.dat
0010 #
0011 # World volume size
0012 /world/sizeXY 1 mm
0013 /world/sizeZ 100 um
0014 #
0015 # Cellular medium size
0016 /phantom/mediumSizeXY 900 um
0017 /phantom/mediumSizeZ 95 um
0018 #
0019 # *********************************************************************
0020 # OPTIONAL SETTINGS
0021 # (before kernel initialization)
0022 #
0023 # Change cellular medium material
0024 #/phantom/mediumMat G4_AIR
0025 #
0026 # Change phantom densities
0027 #/phantom/redDen 2.0 g/cm3      # red volume density
0028 #/phantom/greenDen 1.0 g/cm3    # green volume density
0029 #/phantom/blueDen 3.0 g/cm3             # blue volume density
0030 #
0031 # Phantom shift
0032 #/phantom/shiftX 100 um
0033 #/phantom/shiftY 50 um
0034 #/phantom/shiftZ 1.4 um
0035 #
0036 /run/verbose 1
0037 /event/verbose 0
0038 /tracking/verbose 0
0039 #
0040 # *********************************************************************
0041 # RUN
0042 #
0043 /run/initialize
0044 #
0045 # Set cuts OUTSIDE the phantom region
0046 /run/setCut 1 mm
0047 #
0048 # Set cut for the phantom region
0049 /run/setCutForRegion phantomRegion 1 nm
0050 #
0051 # Print a summary of particles/regions/cuts
0052 /run/dumpCouples
0053 #
0054 /gps/particle proton
0055 /gps/energy 3.5 MeV
0056 #
0057 # Square plane source
0058 /gps/pos/type Plane
0059 /gps/pos/shape Square
0060 /gps/direction 0 0 1
0061 /gps/pos/rot1 1 0 0
0062 /gps/pos/rot2 0 1 0
0063 /gps/pos/centre 0. 0. -50 um
0064 /gps/pos/halfx 350 um
0065 /gps/pos/halfy 350 um
0066 #/gps/pos/halfx 0 um
0067 #/gps/pos/halfy 0 um
0068 #
0069 # *********************************************************************
0070 # VISUALIZATION SETTINGS
0071 #
0072 # Use this open statement to create an OpenGL view:
0073 /vis/open OGL 600x600-0+0
0074 #
0075 # Use this open statement to create a .prim file suitable for
0076 # viewing in DAWN:
0077 #/vis/open DAWNFILE
0078 #
0079 # Use this open statement to create a .heprep file suitable for
0080 # viewing in HepRApp:
0081 #/vis/open HepRepFile
0082 #
0083 # Use this open statement to create a .wrl file suitable for
0084 # viewing in a VRML viewer:
0085 #/vis/open VRML2FILE
0086 #
0087 # Disable auto refresh and quieten vis messages whilst scene and
0088 # trajectories are established:
0089 /vis/viewer/set/autoRefresh false
0090 /vis/verbose errors
0091 #
0092 # Draw geometry:
0093 /vis/drawVolume
0094 #
0095 # Specify style (surface or wireframe):
0096 /vis/viewer/set/style wireframe
0097 #
0098 # Theta and phi camera angle:
0099 /vis/viewer/set/viewpointThetaPhi 30 45
0100 #
0101 # Specify zoom value:
0102 /vis/viewer/zoom 1
0103 #
0104 # Specify viewpoint:
0105 #/vis/viewer/set/viewpointVector 400 0 105.79
0106 #
0107 # Specify target point (so a viewpoint rotation keeps it in view)
0108 #/vis/viewer/set/targetPoint -1461.42 0.0 -386.51 mm
0109 #
0110 # Draw coordinate axes:
0111 #/vis/scene/add/axes 0 0 0 1 m
0112 #
0113 # Draw smooth trajectories at end of event, showing trajectory points
0114 # as markers 2 pixels wide:
0115 /vis/scene/add/trajectories smooth
0116 /vis/modeling/trajectories/create/drawByCharge
0117 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0118 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0119 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0120 #
0121 # Draw hits at end of event:
0122 /vis/scene/add/hits
0123 #
0124 # To draw only gammas:
0125 #/vis/filtering/trajectories/create/particleFilter
0126 #/vis/filtering/trajectories/particleFilter-0/add gamma
0127 #
0128 # To invert the above, drawing all particles except gammas,
0129 # keep the above two lines but also add:
0130 #/vis/filtering/trajectories/particleFilter-0/invert true
0131 #
0132 # Many other options are available with /vis/modeling and /vis/filtering.
0133 # For example, to select colour by particle ID:
0134 #/vis/modeling/trajectories/create/drawByParticleID
0135 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0136 #
0137 # To superimpose all of the events from a given run:
0138 /vis/scene/endOfEventAction accumulate
0139 #
0140 # Re-establish auto refreshing and verbosity:
0141 /vis/viewer/set/autoRefresh true
0142 /vis/verbose warnings
0143 #
0144 # For file-based drivers, use this to create an empty detector view:
0145 #/vis/viewer/flush