Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/parameterisations/Par04/examplePar04_torch.mac is written in an unsupported language. File is not indexed.

0001 #  examplePar04_torch.mac
0002 #
0003 
0004 /control/execute common_settings.mac
0005 
0006 # Inference Setup
0007 ## dimension of the latent vector (encoded vector in a Variational Autoencoder model)
0008 /Par04/inference/setSizeLatentVector 10
0009 ## size of the condition vector (energy, angle and geometry)
0010 /Par04/inference/setSizeConditionVector 4
0011 ## path to the model which is set to download by cmake
0012 /Par04/inference/setModelPathName MLModels/Generator.pt
0013 /Par04/inference/setInferenceLibrary TORCH
0014 ## set mesh size for inference == mesh size of a full sim that
0015 ## was used for training; it coincides with readout mesh size
0016 /Par04/inference/setSizeOfRhoCells 2.325 mm
0017 /Par04/inference/setSizeOfZCells 3.4 mm
0018 /Par04/inference/setNbOfRhoCells 18
0019 /Par04/inference/setNbOfPhiCells 50
0020 /Par04/inference/setNbOfZCells 45
0021 
0022 # Fast Simulation
0023 /analysis/setFileName 10GeV_100events_fastsim_libtorch.root
0024 ## dynamically set readout mesh from particle direction
0025 ## needs to be the first fast sim model!
0026 /param/ActivateModel defineMesh
0027 ## ML fast sim, configured with the inference setup /Par04/inference
0028 /param/ActivateModel inferenceModel
0029 /run/beamOn 100