BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSIntegratorKickerThin.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 BDSINTEGRATORKICKERTHIN_H
19#define BDSINTEGRATORKICKERTHIN_H
20
21#include "BDSIntegratorMag.hh"
22#include "BDSIntegratorDipoleFringe.hh"
23
24#include "globals.hh"
25
26class G4Mag_EqRhs;
28
41{
42public:
44 G4double brhoIn,
45 G4Mag_EqRhs* eqOfMIn,
46 G4double minimumRadiusOfCurvatureIn);
47
48 virtual ~BDSIntegratorKickerThin(){;}
53
55 virtual void Stepper(const G4double yIn[],
56 const G4double dydx[],
57 const G4double h,
58 G4double yOut[],
59 G4double yErr[]);
60
61 virtual void OneStep(const G4ThreeVector& localPos,
62 const G4ThreeVector& localMomUnit,
63 const G4ThreeVector& localMom,
64 const G4double& h,
65 const G4double& fcof,
66 G4ThreeVector& localPosOut,
67 G4ThreeVector& localMomOut) const;
68
71 BDSIntegratorDipoleFringe* fringeIntExit;
72
73private:
76
78 const G4double hkick;
79 const G4double vkick;
80 const G4double brho;
81 G4double rho;
82 G4double tiltAngle;
84
87 G4bool hasExitFringe;
88};
89
90#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.