Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #  examplePar04_torch_calodit.mac
0002 #
0003 
0004 /control/execute common_settings_lowgran.mac
0005 # Initialize
0006 /run/initialize
0007 
0008 /control/execute common_settings_postInit.mac
0009 
0010 # Inference Setup
0011 ## path to the model which is set to download by cmake
0012 /Par04/inference/setModelPathName MLModels/cd_cpu.pt
0013 ## Set ML model to use (VAE, CaloDiT-2)
0014 /Par04/inference/setModelType CaloDiT-2
0015 /Par04/inference/setInferenceLibrary TORCH
0016 ## set mesh size for inference == mesh size of a full sim that
0017 ## was used for training; it coincides with readout mesh size
0018 /Par04/inference/setSizeOfRhoCells 4.65 mm
0019 /Par04/inference/setSizeOfZCells 3.4 mm
0020 /Par04/inference/setNbOfRhoCells 9
0021 /Par04/inference/setNbOfPhiCells 16
0022 /Par04/inference/setNbOfZCells 45
0023 
0024 # Fast Simulation
0025 /analysis/setFileName 10GeV_100events_calodit_torch.root
0026 ## dynamically set readout mesh from particle direction
0027 ## needs to be the first fast sim model!
0028 /param/ActivateModel defineMesh
0029 ## ML fast sim, configured with the inference setup /Par04/inference
0030 /param/ActivateModel inferenceModel
0031 /run/beamOn 100