43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# examplePar04_onnx_calodit.mac
|
|
#
|
|
/control/execute common_settings_lowgran.mac
|
|
# Initialize
|
|
/run/initialize
|
|
|
|
/control/execute common_settings_postInit.mac
|
|
|
|
# Inference Setup
|
|
## path to the model which is set to download by cmake
|
|
/Par04/inference/setModelPathName MLModels/cd.onnx
|
|
## Set ML model to use (VAE, CaloDiT-2)
|
|
/Par04/inference/setModelType CaloDiT-2
|
|
/Par04/inference/setProfileFlag 0
|
|
/Par04/inference/setOptimizationFlag 0
|
|
## cuda flag
|
|
/Par04/inference/setCudaFlag 0
|
|
/Par04/inference/setInferenceLibrary ONNX
|
|
## set mesh size for inference == mesh size of a full sim that
|
|
## was used for training; it coincides with readout mesh size
|
|
/Par04/inference/setSizeOfRhoCells 4.65 mm
|
|
/Par04/inference/setSizeOfZCells 3.4 mm
|
|
/Par04/inference/setNbOfRhoCells 9
|
|
/Par04/inference/setNbOfPhiCells 16
|
|
/Par04/inference/setNbOfZCells 45
|
|
|
|
# cuda options
|
|
/Par04/inference/cuda/setDeviceId 0
|
|
/Par04/inference/cuda/setGpuMemLimit 2147483648
|
|
/Par04/inference/cuda/setArenaExtendedStrategy kSameAsRequested
|
|
/Par04/inference/cuda/setCudnnConvAlgoSearch DEFAULT
|
|
/Par04/inference/cuda/setDoCopyInDefaultStream 1
|
|
/Par04/inference/cuda/setCudnnConvUseMaxWorkspace 1
|
|
|
|
# Fast Simulation
|
|
/analysis/setFileName 10GeV_100events_calodit_onnx.root
|
|
## dynamically set readout mesh from particle direction
|
|
## needs to be the first fast sim model!
|
|
/param/ActivateModel defineMesh
|
|
## ML fast sim, configured with the inference setup /Par04/inference
|
|
/param/ActivateModel inferenceModel
|
|
/run/beamOn 100
|