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) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef BDSINTEGRATORTYPE_H
19#define BDSINTEGRATORTYPE_H
20
21#include "BDSTypeSafeEnum.hh"
22
23#include "globals.hh" // geant4 types / globals
24#include "G4Version.hh"
25
33{
34
35 enum type {none, teleporter, solenoid, dipolerodrigues, dipolerodrigues2,
36 dipolematrix, quadrupole, sextupole,
37 multipolethin, octupole, decapole, dipolefringe, dipolefringescaling,
38 euler, kickerthin, g4rk4minimumstep,
39 g4cashkarprkf45, g4classicalrk4, g4constrk4, g4expliciteuler,
40 g4impliciteuler, g4simpleheum, g4simplerunge,
41 g4exacthelixstepper, g4helixexpliciteuler, g4helixheum,
42 g4heliximpliciteuler, g4helixmixedstepper, g4helixsimplerunge,
43 g4nystromrk4, g4rkg3stepper, rmatrixthin, paralleltransport,
44 cavityfringe, gaborlens
45#if G4VERSION_NUMBER > 1029
46 // introduced in version 10.3
47 , g4bogackishampine23, g4bogackishampine45, g4dolomcprirk34,
48 g4dormandprince745, g4dormandprincerk56, g4tsitourasrk45
49#endif
50#if G4VERSION_NUMBER > 1039
51 // introduced in version 10.4
52 , g4dormandprincerk78, g4rk547feq1, g4rk547feq2, g4rk547feq3
53#endif
54 };
55};
56
58
59namespace BDS
60{
62 BDSIntegratorType DetermineIntegratorType(G4String integratorType);
63}
64
65#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.