Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/gammaray_telescope/macro5.mac is written in an unsupported language. File is not indexed.

0001 # ----------------------------------------------
0002 # Example macro file for the GammaRayTel
0003 # with new physics list
0004 # Visualization with HepRep 
0005 # ----------------------------------------------
0006 # Authors: R.Giannitrapani, F.Longo and G.Santin 
0007 # ----------------------------------------------
0008 
0009 #
0010 # Sets some default verbose
0011 # and initializes the graphic.
0012 #
0013 /control/verbose 1
0014 /control/saveHistory
0015 /run/verbose 1
0016 /run/initialize
0017 /gun/sourceGen true
0018 /gun/particle gamma
0019 /gun/vertexRadius 25. cm
0020 /gun/sourceType 2
0021 
0022 # Set a very high time threshold to allow all decays to happen
0023 /process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
0024 
0025 # You can modify the geometry of the telescope via a messenger
0026 
0027 #/payload/setNbOfTKRLayers 15
0028 #/payload/update
0029 
0030 # Use this open statement to create a .heprep file suitable for
0031 # viewing in HepRApp:
0032 /vis/open HepRepFile
0033 #
0034 ## Open a viewer
0035 #/vis/open
0036 ## This opens the default viewer - see examples/basic/B1/vis.mac for a
0037 ## more comprehensive overview of options. Also the documentation.
0038 #
0039 # Disable auto refresh and quieten vis messages whilst scene and
0040 # trajectories are established:
0041 /vis/viewer/set/autoRefresh false
0042 /vis/verbose errors
0043 #
0044 # Draw geometry:
0045 /vis/drawVolume
0046 #
0047 # Specify view angle:
0048 /vis/viewer/set/viewpointThetaPhi 90. 0.
0049 #
0050 # Specify zoom value:
0051 #/vis/viewer/zoom 2.
0052 #
0053 # Specify style (surface or wireframe):
0054 #/vis/viewer/set/style wireframe
0055 #
0056 # Draw coordinate axes:
0057 #/vis/scene/add/axes 0 0 0 1 m
0058 #
0059 # Draw smooth trajectories at end of event, showing trajectory points
0060 # as markers 2 pixels wide:
0061 /vis/scene/add/trajectories smooth
0062 /vis/modeling/trajectories/create/drawByCharge
0063 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0064 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0065 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0066 #
0067 # Draw hits at end of event:
0068 #/vis/scene/add/hits
0069 #
0070 # To draw only gammas:
0071 #/vis/filtering/trajectories/create/particleFilter
0072 #/vis/filtering/trajectories/particleFilter-0/add gamma
0073 #
0074 # To invert the above, drawing all particles except gammas,
0075 # keep the above two lines but also add:
0076 #/vis/filtering/trajectories/particleFilter-0/invert true
0077 #
0078 # Many other options are available with /vis/modeling and /vis/filtering.
0079 # For example, to select colour by particle ID:
0080 #/vis/modeling/trajectories/create/drawByParticleID
0081 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0082 #
0083 # To superimpose all of the events from a given run:
0084 #/vis/scene/endOfEventAction accumulate
0085 #
0086 # Re-establish auto refreshing and verbosity:
0087 /vis/viewer/set/autoRefresh true
0088 /vis/verbose warnings
0089 #
0090 # For file-based drivers, use this to create an empty detector view:
0091 #/vis/viewer/flush
0092 
0093 # run 10 events
0094 /run/beamOn 10