Download
|
User Forum
|
Contact Us
|
Bug Reports
Home
>
Examples
Loading...
Searching...
No Matches
extended
parameterisations
Par04
include
Par04InferenceMessenger.hh
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
#ifdef USE_INFERENCE
27
#ifndef PAR04INFERENCEMESSENGER_H
28
#define PAR04INFERENCEMESSENGER_H
29
30
#include "G4UImessenger.hh"
// for G4UImessenger
31
#include <G4String.hh>
// for G4String
32
class
G4UIcmdWithADoubleAndUnit
;
33
class
G4UIcmdWithAString
;
34
class
G4UIcmdWithAnInteger
;
35
class
G4UIcommand
;
36
class
G4UIdirectory
;
37
class
Par04InferenceSetup
;
38
39
/**
40
* @brief Inference messenger.
41
*
42
* Provides UI commands to setup the inference: name of the inference library,
43
* path to the ML model, size of the latent space, the size of the condition
44
* vector and flags for optimization and profiling. It allows to specify the
45
* mesh size (in cylindrical coordinates) that was used in training dataset
46
* (full simulation).
47
*
48
*/
49
50
class
Par04InferenceMessenger
:
public
G4UImessenger
{
51
public
:
52
Par04InferenceMessenger
(
Par04InferenceSetup
*);
53
~Par04InferenceMessenger
();
54
/// Invokes appropriate methods based on the typed command
55
virtual
void
SetNewValue(
G4UIcommand
*,
G4String
)
final
;
56
/// Retrieves the current settings
57
virtual
G4String
GetCurrentValue(
G4UIcommand
*)
final
;
58
59
private
:
60
/// Inference to setup
61
Par04InferenceSetup
*fInference =
nullptr
;
62
/// Command to set the directory common to all inference messengers in this
63
/// example /Par04
64
G4UIdirectory
*fExampleDir =
nullptr
;
65
/// Command to set the directory for inference settings /Par04/inference
66
G4UIdirectory
*fInferenceDir =
nullptr
;
67
/// Command to set the inference library
68
G4UIcmdWithAString
*fInferenceLibraryCmd =
nullptr
;
69
/// Command to set fModelPathNameCmd
70
G4UIcmdWithAString
*fModelPathNameCmd =
nullptr
;
71
/// Command to set the fSizeLatentVectorCmd
72
G4UIcmdWithAnInteger
*fSizeLatentVectorCmd =
nullptr
;
73
/// Command to set the fSizeConditionVectorCmd
74
G4UIcmdWithAnInteger
*fSizeConditionVectorCmd =
nullptr
;
75
/// Command to set the fProfileFlagCmd
76
G4UIcmdWithAnInteger
*fProfileFlagCmd =
nullptr
;
77
/// Command to set the fOptimizationFlagCmd
78
G4UIcmdWithAnInteger
*fOptimizationFlagCmd =
nullptr
;
79
/// Command to set the number of cells in the cylindrical readout mesh (along
80
/// rho axis)
81
G4UIcmdWithAnInteger
*fMeshNbRhoCellsCmd =
nullptr
;
82
/// Command to set the number of cells in the cylindrical readout mesh (along
83
/// phi axis)
84
G4UIcmdWithAnInteger
*fMeshNbPhiCellsCmd =
nullptr
;
85
/// Command to set the number of cells in the cylindrical readout mesh (along
86
/// z axis)
87
G4UIcmdWithAnInteger
*fMeshNbZCellsCmd =
nullptr
;
88
/// Command to the size of cells in the cylindrical readout mesh (along rho
89
/// axis)
90
G4UIcmdWithADoubleAndUnit
*fMeshSizeRhoCellsCmd =
nullptr
;
91
/// Command to the size of cells in the cylindrical readout mesh (along z
92
/// axis)
93
G4UIcmdWithADoubleAndUnit
*fMeshSizeZCellsCmd =
nullptr
;
94
/// Commands to set execution provider flags
95
/// GPU
96
G4UIcmdWithAnInteger
*fCudaFlagCmd =
nullptr
;
97
/// Cuda Commands
98
G4UIdirectory
*fCudaOptionsDir =
nullptr
;
99
G4UIcmdWithAString
*fCudaDeviceIdCmd =
nullptr
;
100
G4UIcmdWithAString
*fCudaGpuMemLimitCmd =
nullptr
;
101
G4UIcmdWithAString
*fCudaArenaExtendedStrategyCmd =
nullptr
;
102
G4UIcmdWithAString
*fCudaCudnnConvAlgoSearchCmd =
nullptr
;
103
G4UIcmdWithAString
*fCudaDoCopyInDefaultStreamCmd =
nullptr
;
104
G4UIcmdWithAString
*fCudaCudnnConvUseMaxWorkspaceCmd =
nullptr
;
105
};
106
107
#endif
108
#endif
G4String
G4UIcmdWithADoubleAndUnit
G4UIcmdWithAString
G4UIcmdWithAnInteger
G4UIcommand
G4UIdirectory
G4UImessenger
Par04InferenceMessenger
Definition
Doxymodules_parameterisations.h:85
Par04InferenceSetup
Definition
Doxymodules_parameterisations.h:86
Generated on Tue Jan 30 2024 12:18:45 for Geant4 examples by
1.9.8
Applications
|
User Support
|
Publications
|
Collaboration