Loading...
Searching...
No Matches
examplePar04_torch.mac
Go to the documentation of this file.
1# examplePar04_torch.mac
2#
3
4/control/execute common_settings.mac
5
6# Inference Setup
7## dimension of the latent vector (encoded vector in a Variational Autoencoder model)
8/Par04/inference/setSizeLatentVector 10
9## size of the condition vector (energy, angle and geometry)
10/Par04/inference/setSizeConditionVector 4
11## path to the model which is set to download by cmake
12/Par04/inference/setModelPathName MLModels/Generator.pt
13/Par04/inference/setInferenceLibrary TORCH
14## set mesh size for inference == mesh size of a full sim that
15## was used for training; it coincides with readout mesh size
16/Par04/inference/setSizeOfRhoCells 2.325 mm
17/Par04/inference/setSizeOfZCells 3.4 mm
18/Par04/inference/setNbOfRhoCells 18
19/Par04/inference/setNbOfPhiCells 50
20/Par04/inference/setNbOfZCells 45
21
22# Fast Simulation
23/analysis/setFileName 10GeV_100events_fastsim_libtorch.root
24## dynamically set readout mesh from particle direction
25## needs to be the first fast sim model!
26/param/ActivateModel defineMesh
27## ML fast sim, configured with the inference setup /Par04/inference
28/param/ActivateModel inferenceModel
29/run/beamOn 100

Applications | User Support | Publications | Collaboration