BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSIntegratorRMatrixThin.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
19#ifndef BDSINTEGRATORRMATRIXTHIN_HH
20#define BDSINTEGRATORRMATRIXTHIN_HH
21
22#include "BDSIntegratorMag.hh"
23
24#include "globals.hh"
25
26class G4Mag_EqRhs;
28
42{
43public:
45 G4Mag_EqRhs* eqOfMIn,
46 G4double maximumRadiusIn);
47
48 virtual ~BDSIntegratorRMatrixThin(){;}
49
50 virtual void Stepper(const G4double y[],
51 const G4double dydx[],
52 const G4double h,
53 G4double yOut[],
54 G4double yErr[]);
55
56private:
58
59protected:
60 // matrix elements set differently in derived cavity fringe class.
61 G4double kick1;
62 G4double kick2;
63 G4double kick3;
64 G4double kick4;
65 G4double rmat11;
66 G4double rmat12;
67 G4double rmat13;
68 G4double rmat14;
69 G4double rmat21;
70 G4double rmat22;
71 G4double rmat23;
72 G4double rmat24;
73 G4double rmat31;
74 G4double rmat32;
75 G4double rmat33;
76 G4double rmat34;
77 G4double rmat41;
78 G4double rmat42;
79 G4double rmat43;
80 G4double rmat44;
81
82 G4double maximumRadius;
83};
84
85#endif
Common functionality to BDSIM integrators.
Integrator that just moves the particle parallel to the s axis.
Efficient storage of magnet strengths.