Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QSSParameters.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// G4QSSParameters
27//
28// Hold parameters for QSS Integrator driver -- used to create
29// all QSStepper objects (directly or via IntegrationDriver).
30// Checks consistency of values proposed.
31//
32// This design means that objects of only *one* order of QSS driver
33// can be created (QSS2 or QSS3 must be used globally).
34//
35// Author: John Apostolakis (CERN), 19.08.2025
36// --------------------------------------------------------------------
37#ifndef G4QSSParameters_HH
38#define G4QSSParameters_HH
39
40#include "G4Types.hh"
41
42/**
43 * @brief G4QSSParameters hold parameters for the QSS Integrator driver.
44 * It is used to create all QSStepper objects, directly or via the
45 * Integration Driver. Checks for consistency of the proposed values.
46 */
47
48class G4QSSParameters
49{
50 public:
51
52 static G4QSSParameters* Instance();
53
54 /**
55 * Default Destructor.
56 */
57 ~G4QSSParameters() = default;
58
59 /**
60 * Accessors.
61 */
62 inline G4int GetQssOrder() { return fQssOrder; }
63 inline G4double Get_dQRel() { return fdQRel; }
64 inline G4double Get_dQMin() { return fdQMin; }
65 inline G4int GetMaxSubsteps() { return fMaxSubsteps; }
66
67 /**
68 * Modifiers.
69 */
70 G4bool SetQssOrder( G4int value, G4bool onlyWarn= false );
71 G4bool Set_dQRel( G4double dQRel );
72 G4bool Set_dQMin( G4double dQMin );
73 G4bool SetMaxSubsteps( G4int maxSubsteps );
74
75 private:
76
77 /**
78 * Private default Constructor.
79 */
80 G4QSSParameters() = default;
81
82 private:
83
84 G4int fQssOrder = 2;
85 G4double fdQMin = 0.00001;
86 G4double fdQRel = 0.001;
87 G4int fMaxSubsteps = 5000;
88};
89
90#endif
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4QSSParameters hold parameters for the QSS Integrator driver. It is used to create all QSStepper obj...
static G4QSSParameters * Instance()
G4bool Set_dQMin(G4double dQMin)
G4bool SetQssOrder(G4int value, G4bool onlyWarn=false)
G4bool Set_dQRel(G4double dQRel)
~G4QSSParameters()=default
G4bool SetMaxSubsteps(G4int maxSubsteps)