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