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5 ] [ 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/extended/parameterisations/Par04/vis_torch.mac (Version 11.3.0) and /examples/extended/parameterisations/Par04/vis_torch.mac (Version 11.1.3)


  1 /Par04/detector/setDetectorInnerRadius 80 cm        1 /Par04/detector/setDetectorInnerRadius 80 cm
  2 /Par04/detector/setDetectorLength 4 m               2 /Par04/detector/setDetectorLength 4 m
  3 /Par04/detector/setNbOfLayers 90                    3 /Par04/detector/setNbOfLayers 90
  4 /Par04/detector/setAbsorber 0 G4_W 1.4 mm true      4 /Par04/detector/setAbsorber 0 G4_W 1.4 mm true
  5 /Par04/detector/setAbsorber 1 G4_Si 0.3 mm tru      5 /Par04/detector/setAbsorber 1 G4_Si 0.3 mm true
  6 /Par04/mesh/setSizeOfRhoCells 2.325 mm              6 /Par04/mesh/setSizeOfRhoCells 2.325 mm
  7 /Par04/mesh/setSizeOfZCells 3.4 mm                  7 /Par04/mesh/setSizeOfZCells 3.4 mm
  8 /Par04/mesh/setNbOfRhoCells 18                      8 /Par04/mesh/setNbOfRhoCells 18
  9 /Par04/mesh/setNbOfPhiCells 50                      9 /Par04/mesh/setNbOfPhiCells 50
 10 /Par04/mesh/setNbOfZCells 45                       10 /Par04/mesh/setNbOfZCells 45
 11 /Par04/detector/print                              11 /Par04/detector/print
 12                                                    12 
 13 # Use default detector dimensions and initiali     13 # Use default detector dimensions and initialize
 14 /run/initialize                                    14 /run/initialize
 15                                                    15 
 16 # If inference model is active, de-activate it     16 # If inference model is active, de-activate it because it needs configuration
 17 /param/InActivateModel inferenceModel              17 /param/InActivateModel inferenceModel
 18                                                    18 
 19 # Open a viewer                                <<  19 # Use this open statement to create an OpenGL view:
 20 /vis/open                                      <<  20 /vis/open OGL 600x600-0+0
 21 # This opens the default viewer - see examples <<  21 #
 22 # more comprehensive overview of options. Also <<  22 # Use this open statement to create a .prim file suitable for
                                                   >>  23 # viewing in DAWN:
                                                   >>  24 #/vis/open DAWNFILE
                                                   >>  25 #
                                                   >>  26 # Use this open statement to create a .heprep file suitable for
                                                   >>  27 # viewing in HepRApp:
                                                   >>  28 #/vis/open HepRepFile
                                                   >>  29 #
                                                   >>  30 # Use this open statement to create a .wrl file suitable for
                                                   >>  31 # viewing in a VRML viewer:
                                                   >>  32 #/vis/open VRML2FILE
 23 #                                                  33 #
 24 # Disable auto refresh and quieten vis message     34 # Disable auto refresh and quieten vis messages whilst scene and
 25 # trajectories are established:                    35 # trajectories are established:
 26 /vis/viewer/set/autoRefresh false                  36 /vis/viewer/set/autoRefresh false
 27 /vis/verbose errors                                37 /vis/verbose errors
 28 #                                                  38 #
 29 # Draw geometry:                                   39 # Draw geometry:
 30 /vis/drawVolume worlds                             40 /vis/drawVolume worlds
 31 #                                                  41 #
 32 # Specify view angle:                              42 # Specify view angle:
 33 /vis/viewer/set/viewpointThetaPhi 0 90 deg         43 /vis/viewer/set/viewpointThetaPhi 0 90 deg
 34 /vis/viewer/set/targetPoint 0 800 0 mm             44 /vis/viewer/set/targetPoint 0 800 0 mm
 35 #                                                  45 #
 36 # Specify zoom value:                              46 # Specify zoom value:
 37 /vis/viewer/zoom 10                                47 /vis/viewer/zoom 10
 38 #                                                  48 #
 39 # Specify style (surface or wireframe):            49 # Specify style (surface or wireframe):
 40 #/vis/viewer/set/style wireframe                   50 #/vis/viewer/set/style wireframe
 41 #                                                  51 #
 42 # Draw coordinate axes:                            52 # Draw coordinate axes:
 43 #/vis/scene/add/axes 0 0 0 1 m                     53 #/vis/scene/add/axes 0 0 0 1 m
 44 #                                                  54 #
 45 # Draw smooth trajectories at end of event, sh     55 # Draw smooth trajectories at end of event, showing trajectory points
 46 # as markers 2 pixels wide:                        56 # as markers 2 pixels wide:
 47 #/vis/scene/add/trajectories smooth                57 #/vis/scene/add/trajectories smooth
 48 /vis/scene/add/trajectories                        58 /vis/scene/add/trajectories
 49 /vis/modeling/trajectories/create/drawByCharge     59 /vis/modeling/trajectories/create/drawByCharge
 50 /vis/modeling/trajectories/drawByCharge-0/defa     60 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
 51 /vis/modeling/trajectories/drawByCharge-0/defa     61 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
 52 # (if too many tracks cause core dump => /trac     62 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
 53 #                                                  63 #
 54 # Draw hits at end of event:                       64 # Draw hits at end of event:
 55 /vis/scene/add/hits                                65 /vis/scene/add/hits
 56 #                                                  66 #
 57 # To draw only gammas:                             67 # To draw only gammas:
 58 #/vis/filtering/trajectories/create/particleFi     68 #/vis/filtering/trajectories/create/particleFilter
 59 #/vis/filtering/trajectories/particleFilter-0/     69 #/vis/filtering/trajectories/particleFilter-0/add gamma
 60 #                                                  70 #
 61 # To invert the above, drawing all particles e     71 # To invert the above, drawing all particles except gammas,
 62 # keep the above two lines but also add:           72 # keep the above two lines but also add:
 63 #/vis/filtering/trajectories/particleFilter-0/     73 #/vis/filtering/trajectories/particleFilter-0/invert true
 64 #                                                  74 #
 65 # Many other options are available with /vis/m     75 # Many other options are available with /vis/modeling and /vis/filtering.
 66 # For example, to select colour by particle ID     76 # For example, to select colour by particle ID:
 67 #/vis/modeling/trajectories/create/drawByParti     77 #/vis/modeling/trajectories/create/drawByParticleID
 68 #/vis/modeling/trajectories/drawByParticleID-0     78 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
 69 #                                                  79 #
 70 # Create an attribute filter to draw only part     80 # Create an attribute filter to draw only particles with certain (high) momentum
 71 /vis/filtering/trajectories/create/attributeFi     81 /vis/filtering/trajectories/create/attributeFilter
 72 # Select attribute "IMag"                          82 # Select attribute "IMag"
 73 /vis/filtering/trajectories/attributeFilter-0/     83 /vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
 74 # Select trajectories with 25 MeV <= IMag < 10     84 # Select trajectories with 25 MeV <= IMag < 1000 GeV
 75 /vis/filtering/trajectories/attributeFilter-0/     85 /vis/filtering/trajectories/attributeFilter-0/addInterval 25 MeV 1000 GeV
 76 #                                                  86 #
 77 # To superimpose all of the events from a give     87 # To superimpose all of the events from a given run:
 78 /vis/scene/endOfEventAction accumulate             88 /vis/scene/endOfEventAction accumulate
 79 #                                                  89 #
 80 # Re-establish auto refreshing and verbosity:      90 # Re-establish auto refreshing and verbosity:
 81 /vis/viewer/set/autoRefresh true                   91 /vis/viewer/set/autoRefresh true
 82 /vis/verbose warnings                              92 /vis/verbose warnings
 83 #                                                  93 #
 84 # For file-based drivers, use this to create a     94 # For file-based drivers, use this to create an empty detector view:
 85 #/vis/viewer/flush                                 95 #/vis/viewer/flush
 86 /vis/viewer/set/background 1 1 1                   96 /vis/viewer/set/background 1 1 1
 87                                                    97 
 88 # Fast Simulation                                  98 # Fast Simulation
 89 # Inference Setup                                  99 # Inference Setup
 90 ## dimension of the latent vector (encoded vec    100 ## dimension of the latent vector (encoded vector in a Variational Autoencoder model)
 91 /Par04/inference/setSizeLatentVector 10           101 /Par04/inference/setSizeLatentVector 10
 92 ## size of the condition vector (energy, angle    102 ## size of the condition vector (energy, angle and geometry)
 93 /Par04/inference/setSizeConditionVector 4         103 /Par04/inference/setSizeConditionVector 4
 94 ## path to the model which is set to download     104 ## path to the model which is set to download by cmake
 95 /Par04/inference/setModelPathName MLModels/Gen    105 /Par04/inference/setModelPathName MLModels/Generator.pt
 96 /Par04/inference/setInferenceLibrary TORCH        106 /Par04/inference/setInferenceLibrary TORCH
 97 ## set mesh size for inference == mesh size of    107 ## set mesh size for inference == mesh size of a full sim that
 98 ## was used for training; it coincides with re    108 ## was used for training; it coincides with readout mesh size
 99 /Par04/inference/setSizeOfRhoCells 2.325 mm       109 /Par04/inference/setSizeOfRhoCells 2.325 mm
100 /Par04/inference/setSizeOfZCells 3.4 mm           110 /Par04/inference/setSizeOfZCells 3.4 mm
101 /Par04/inference/setNbOfRhoCells 18               111 /Par04/inference/setNbOfRhoCells 18
102 /Par04/inference/setNbOfPhiCells 50               112 /Par04/inference/setNbOfPhiCells 50
103 /Par04/inference/setNbOfZCells 45                 113 /Par04/inference/setNbOfZCells 45
104                                                   114 
105 ## Dynamic readout mesh from particle directio    115 ## Dynamic readout mesh from particle direction needs to be the first fast sim model!
106 /param/ActivateModel defineMesh                   116 /param/ActivateModel defineMesh
107 ## ML fast sim, configured with the inference     117 ## ML fast sim, configured with the inference setup /Par04/inference
108 /param/ActivateModel inferenceModel               118 /param/ActivateModel inferenceModel