BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSIntegratorType.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2023.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#ifndef BDSINTEGRATORTYPE_H
20#define BDSINTEGRATORTYPE_H
21
22#include "BDSTypeSafeEnum.hh"
23
24#include "globals.hh" // geant4 types / globals
25#include "G4Version.hh"
26
34{
35
36 enum type {none, teleporter, solenoid, dipolerodrigues, dipolerodrigues2,
37 dipolematrix, quadrupole, sextupole,
38 multipolethin, octupole, decapole, dipolefringe, dipolefringescaling,
39 euler, kickerthin, g4rk4minimumstep,
40 g4cashkarprkf45, g4classicalrk4, g4constrk4, g4expliciteuler,
41 g4impliciteuler, g4simpleheum, g4simplerunge,
42 g4exacthelixstepper, g4helixexpliciteuler, g4helixheum,
43 g4heliximpliciteuler, g4helixmixedstepper, g4helixsimplerunge,
44 g4nystromrk4, g4rkg3stepper, rmatrixthin, paralleltransport,
45 cavityfringe
46#if G4VERSION_NUMBER > 1029
47 // introduced in version 10.3
48 , g4bogackishampine23, g4bogackishampine45, g4dolomcprirk34,
49 g4dormandprince745, g4dormandprincerk56, g4tsitourasrk45
50#endif
51#if G4VERSION_NUMBER > 1039
52 // introduced in version 10.4
53 , g4dormandprincerk78, g4rk547feq1, g4rk547feq2, g4rk547feq3
54#endif
55 };
56};
57
59
60namespace BDS
61{
63 BDSIntegratorType DetermineIntegratorType(G4String integratorType);
64}
65
66#endif
Improve type-safety of native enum data type in C++.
Return either G4Tubs or G4CutTubs depending on flat face.
BDSIntegratorType DetermineIntegratorType(G4String integratorType)
Function that determines enum from string (case-insensitive).
Type definition for integrators.