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] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/advanced/gammaray_telescope/macro2.mac (Version 11.3.0) and /examples/advanced/gammaray_telescope/macro2.mac (Version 9.4)


  1 # --------------------------------------------      1 # ----------------------------------------------
  2 # Example macro file for the GammaRayTel            2 # Example macro file for the GammaRayTel
  3 # Visualization with VRML                           3 # Visualization with VRML
  4 # --------------------------------------------      4 # ----------------------------------------------
  5 # Authors: R.Giannitrapani, F.Longo and G.Sant      5 # Authors: R.Giannitrapani, F.Longo and G.Santin 
  6 # --------------------------------------------      6 # ----------------------------------------------
  7                                                     7 
  8 #                                                   8 #
  9 # Sets some default verbose                         9 # Sets some default verbose
 10 # and initializes the graphic.                     10 # and initializes the graphic.
 11 #                                                  11 #
 12 /control/verbose 2                                 12 /control/verbose 2
 13 /control/saveHistory                               13 /control/saveHistory
 14 /run/verbose 2                                     14 /run/verbose 2
 15 /run/initialize                                << 
 16 /gun/sourceGen true                                15 /gun/sourceGen true
 17                                                    16 
 18 # Set a very high time threshold to allow all  <<  17 
 19 /process/had/rdm/thresholdForVeryLongDecayTime <<  18 /control/execute emlowe.mac
                                                   >>  19 
                                                   >>  20 /run/initialize
 20                                                    21 
 21 /gun/particle mu-                                  22 /gun/particle mu-
 22 /gun/energy 100 MeV                                23 /gun/energy 100 MeV
 23 /gun/vertexRadius 30. cm                           24 /gun/vertexRadius 30. cm
 24 /gun/sourceType 2                                  25 /gun/sourceType 2
 25 /gun/direction 0 0 -1                              26 /gun/direction 0 0 -1
 26                                                    27 
 27 # You can modify the geometry of the telescope     28 # You can modify the geometry of the telescope via a messenger
 28                                                    29 
                                                   >>  30 /control/execute emstd.mac
 29 /payload/setNbOfTKRLayers 10                       31 /payload/setNbOfTKRLayers 10
 30 /payload/update                                    32 /payload/update
 31                                                    33 
                                                   >>  34 # Use this open statement to create an OpenGL view:
                                                   >>  35 #/vis/open OGL 600x600-0+0
                                                   >>  36 #
                                                   >>  37 # Use this open statement to create a .prim file suitable for
                                                   >>  38 # viewing in DAWN:
                                                   >>  39 #/vis/open DAWNFILE
                                                   >>  40 #
                                                   >>  41 # Use this open statement to create a .heprep file suitable for
                                                   >>  42 # viewing in HepRApp:
                                                   >>  43 #/vis/open HepRepFile
                                                   >>  44 #
 32 # Use this open statement to create a .wrl fil     45 # Use this open statement to create a .wrl file suitable for
 33 # viewing in a VRML viewer:                        46 # viewing in a VRML viewer:
 34 /vis/open VRML2FILE                                47 /vis/open VRML2FILE
 35 #                                                  48 #
 36 ## Open a viewer                               << 
 37 #/vis/open                                     << 
 38 ## This opens the default viewer - see example << 
 39 ## more comprehensive overview of options. Als << 
 40 #                                              << 
 41 # Disable auto refresh and quieten vis message     49 # Disable auto refresh and quieten vis messages whilst scene and
 42 # trajectories are established:                    50 # trajectories are established:
 43 /vis/viewer/set/autoRefresh false                  51 /vis/viewer/set/autoRefresh false
 44 /vis/verbose errors                                52 /vis/verbose errors
 45 #                                                  53 #
 46 # Draw geometry:                                   54 # Draw geometry:
 47 /vis/drawVolume                                    55 /vis/drawVolume
 48 #                                                  56 #
 49 # Specify view angle:                              57 # Specify view angle:
 50 /vis/viewer/set/viewpointThetaPhi 90. 0.           58 /vis/viewer/set/viewpointThetaPhi 90. 0.
 51 #                                                  59 #
 52 # Specify zoom value:                              60 # Specify zoom value:
 53 #/vis/viewer/zoom 2.                               61 #/vis/viewer/zoom 2.
 54 #                                                  62 #
 55 # Specify style (surface or wireframe):            63 # Specify style (surface or wireframe):
 56 #/vis/viewer/set/style wireframe                   64 #/vis/viewer/set/style wireframe
 57 #                                                  65 #
 58 # Draw coordinate axes:                            66 # Draw coordinate axes:
 59 #/vis/scene/add/axes 0 0 0 1 m                     67 #/vis/scene/add/axes 0 0 0 1 m
 60 #                                                  68 #
 61 # Draw smooth trajectories at end of event, sh     69 # Draw smooth trajectories at end of event, showing trajectory points
 62 # as markers 2 pixels wide:                        70 # as markers 2 pixels wide:
 63 /vis/scene/add/trajectories smooth                 71 /vis/scene/add/trajectories smooth
 64 /vis/modeling/trajectories/create/drawByCharge     72 /vis/modeling/trajectories/create/drawByCharge
 65 /vis/modeling/trajectories/drawByCharge-0/defa     73 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
 66 /vis/modeling/trajectories/drawByCharge-0/defa     74 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
 67 # (if too many tracks cause core dump => /trac     75 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
 68 #                                                  76 #
 69 # Draw hits at end of event:                       77 # Draw hits at end of event:
 70 #/vis/scene/add/hits                               78 #/vis/scene/add/hits
 71 #                                                  79 #
 72 # To draw only gammas:                             80 # To draw only gammas:
 73 #/vis/filtering/trajectories/create/particleFi     81 #/vis/filtering/trajectories/create/particleFilter
 74 #/vis/filtering/trajectories/particleFilter-0/     82 #/vis/filtering/trajectories/particleFilter-0/add gamma
 75 #                                                  83 #
 76 # To invert the above, drawing all particles e     84 # To invert the above, drawing all particles except gammas,
 77 # keep the above two lines but also add:           85 # keep the above two lines but also add:
 78 #/vis/filtering/trajectories/particleFilter-0/     86 #/vis/filtering/trajectories/particleFilter-0/invert true
 79 #                                                  87 #
 80 # Many other options are available with /vis/m     88 # Many other options are available with /vis/modeling and /vis/filtering.
 81 # For example, to select colour by particle ID     89 # For example, to select colour by particle ID:
 82 #/vis/modeling/trajectories/create/drawByParti     90 #/vis/modeling/trajectories/create/drawByParticleID
 83 #/vis/modeling/trajectories/drawByParticleID-0     91 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
 84 #                                                  92 #
 85 # To superimpose all of the events from a give     93 # To superimpose all of the events from a given run:
 86 #/vis/scene/endOfEventAction accumulate            94 #/vis/scene/endOfEventAction accumulate
 87 #                                                  95 #
 88 # Re-establish auto refreshing and verbosity:      96 # Re-establish auto refreshing and verbosity:
 89 /vis/viewer/set/autoRefresh true                   97 /vis/viewer/set/autoRefresh true
 90 /vis/verbose warnings                              98 /vis/verbose warnings
 91 #                                                  99 #
 92 # For file-based drivers, use this to create a    100 # For file-based drivers, use this to create an empty detector view:
 93 #/vis/viewer/flush                                101 #/vis/viewer/flush
 94                                                   102 
 95 /run/beamOn 10                                    103 /run/beamOn 10
                                                   >> 104 
                                                   >> 105 
                                                   >> 106 
                                                   >> 107 
                                                   >> 108 
                                                   >> 109