Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FieldParametersMessenger.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// G4FieldParametersMessenger
27//
28// Class description:
29//
30// Messenger class that defines commands for field configuration.
31//
32// Implements commands:
33// - /field/fieldType fieldType
34// fieldType = Magnetic | ElectroMagnetic | Gravity
35// - /field/equationType eqType
36// eqType = EqMagnetic | EqMagneticWithSpin | EqElectroMagnetic |
37// EqEMfieldWithSpin | EqEMfieldWithEDM
38// - /field/stepperType stepperType
39// stepperType = CashKarpRKF45 | ClassicalRK4 | ExplicitEuler | ImplicitEuler |
40// SimpleHeum | SimpleRunge | ConstRK4 | ExactHelixStepper
41// | HelixExplicitEuler | HelixHeum | HelixImplicitEuler |
42// HelixMixedStepper | HelixSimpleRunge | NystromRK4 |
43// RKG3Stepper
44// - /field/setMinimumStep value
45// - /field/setDeltaChord value
46// - /field/setDeltaOneStep value
47// - /field/setDeltaIntersection value
48// - /field/setMinimumEpsilonStep value
49// - /field/setMaximumEpsilonStep value
50// - /field/setConstDistance value
51// - /field/printParameters
52//
53// Only equation type and stepper type values that are handled by G4FieldBuilder
54// are accepted by the commands.
55
56// Author: Ivana Hrivnacova (IJClab, Orsay), 2024.
57// -------------------------------------------------------------------
58#ifndef G4FIELDPARAMETERSMESSENGER_HH
59#define G4FIELDPARAMETERSMESSENGER_HH
60
61#include "G4UImessenger.hh"
62#include "globals.hh"
63
65
66class G4UIcommand;
67class G4UIdirectory;
73
74/**
75 * @brief G4FieldParametersMessenger is a messenger class that defines
76 * commands for field configuration. Only equation type and stepper type
77 * values that are handled by G4FieldBuilder are accepted by the commands.
78 */
79
81{
82 public:
83
84 /**
85 * Standard constructor for G4FieldParametersMessenger.
86 * @param[in] fieldParameters Pointer to the field parameters object.
87 */
89
90 /**
91 * Destructor.
92 */
94
95 /**
96 * Default constructor, copy constructor and assignment operator not allowed.
97 */
101
102 /**
103 * Applies command to the associated object.
104 */
105 void SetNewValue(G4UIcommand* command, G4String newValues) override;
106
107 private:
108
109 /** Associated class object. */
110 G4FieldParameters* fFieldParameters = nullptr;
111
112 /** Commands directory. */
113 G4UIdirectory* fDirectory = nullptr;
114
115 // Commands data members
116
117 /** Command: fieldType. */
118 G4UIcmdWithAString* fFieldTypeCmd = nullptr;
119
120 /** Command: equationType. */
121 G4UIcmdWithAString* fEquationTypeCmd = nullptr;
122
123 /** Command: stepperType. */
124 G4UIcmdWithAString* fStepperTypeCmd = nullptr;
125
126 /** Command: setMinimumStep. */
127 G4UIcmdWithADoubleAndUnit* fSetMinimumStepCmd = nullptr;
128
129 /** Command: setDeltaChord. */
130 G4UIcmdWithADoubleAndUnit* fSetDeltaChordCmd = nullptr;
131
132 /** Command: setDeltaOneStep. */
133 G4UIcmdWithADoubleAndUnit* fSetDeltaOneStepCmd = nullptr;
134
135 /** Command: setDeltaIntersection. */
136 G4UIcmdWithADoubleAndUnit* fSetDeltaIntersectionCmd = nullptr;
137
138 /** Command: setMinimumEpsilon. */
139 G4UIcmdWithADouble* fSetMinimumEpsilonStepCmd = nullptr;
140
141 /** Command: setMaximumEpsilon. */
142 G4UIcmdWithADouble* fSetMaximumEpsilonStepCmd = nullptr;
143
144 /** Command: setConstDistance. */
145 G4UIcmdWithADoubleAndUnit* fSetConstDistanceCmd = nullptr;
146
147 /** Command: printParameters. */
148 G4UIcmdWithoutParameter* fPrintParametersCmd = nullptr;
149};
150
151#endif
G4FieldParametersMessenger(G4FieldParameters *fieldParameters)
G4FieldParametersMessenger & operator=(const G4FieldParametersMessenger &)=delete
void SetNewValue(G4UIcommand *command, G4String newValues) override
G4FieldParametersMessenger(const G4FieldParametersMessenger &)=delete
G4FieldParameters defines the type of equation of motion of a particle in a field and the integration...
G4UImessenger()=default