BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSIntegratorKickerThin.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
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 BDSINTEGRATORKICKERTHIN_H
20#define BDSINTEGRATORKICKERTHIN_H
21
22#include "BDSIntegratorMag.hh"
23#include "BDSIntegratorDipoleFringe.hh"
24
25#include "globals.hh"
26
27class G4Mag_EqRhs;
29
42{
43public:
45 G4double brhoIn,
46 G4Mag_EqRhs* eqOfMIn,
47 G4double minimumRadiusOfCurvatureIn);
48
49 virtual ~BDSIntegratorKickerThin(){;}
54
56 virtual void Stepper(const G4double yIn[],
57 const G4double dydx[],
58 const G4double h,
59 G4double yOut[],
60 G4double yErr[]);
61
62 virtual void OneStep(const G4ThreeVector& localPos,
63 const G4ThreeVector& localMomUnit,
64 const G4ThreeVector& localMom,
65 const G4double& h,
66 const G4double& fcof,
67 G4ThreeVector& localPosOut,
68 G4ThreeVector& localMomOut) const;
69
72 BDSIntegratorDipoleFringe* fringeIntExit;
73
74private:
77
79 const G4double hkick;
80 const G4double vkick;
81 const G4double brho;
82 G4double rho;
83 G4double tiltAngle;
85
88 G4bool hasExitFringe;
89};
90
91#endif
Integrator that ignores the field and uses the analytical solution for a dipole kick.
Integrator for thin h or v kick.
G4bool hasEntranceFringe
Cache if the fringe or pole face effects are to be applied.
G4double rho
Cache of variable.
const G4double hkick
Cache of variable.
BDSIntegratorDipoleFringe * fringeIntEntr
Separate fringe field integrators for entrance and exit fringes.
virtual void Stepper(const G4double yIn[], const G4double dydx[], const G4double h, G4double yOut[], G4double yErr[])
The stepper for integration.
const G4double vkick
Cache of variable.
G4double tiltAngle
Cache of variable.
const G4double brho
Cache of variable.
BDSIntegratorKickerThin()=delete
Private default constructor to enforce use of supplied constructor.
BDSIntegratorKickerThin & operator=(const BDSIntegratorKickerThin &)=delete
Assignment and copy constructor not implemented nor used.
BDSIntegratorKickerThin(BDSIntegratorKickerThin &)=delete
Assignment and copy constructor not implemented nor used.
Common functionality to BDSIM integrators.
Efficient storage of magnet strengths.