BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSFieldGaborLens.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2024.
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 BDSFIELDGABORLENS_H
20#define BDSFIELDGABORLENS_H
21
22#include "BDSFieldEM.hh"
23
24#include "globals.hh"
25#include "G4ThreeVector.hh"
26
27#include <utility>
28
30
38{
39public:
40 BDSFieldGaborLens(BDSMagnetStrength const* strength);
41
42 virtual ~BDSFieldGaborLens(){;}
43
45 virtual std::pair<G4ThreeVector, G4ThreeVector> GetField(const G4ThreeVector& position,
46 const G4double t) const;
47
48private:
51
53 static const G4double c;
54
56 static const G4double pmass;
57
59 G4double plasmaEfield;
60
62 G4double bfieldMag;
63
65 G4double kg;
66
68 G4double anodeRadius;
69
70
71};
72
73#endif
Interface for BDSIM electro-magnetic fields that may or may not be local.
Definition BDSFieldEM.hh:41
Gabor lens electromagnetic field.
G4double anodeRadius
anode radius
static const G4double c
speed of light.
BDSFieldGaborLens()
Private constructor to force use of provided one.
virtual std::pair< G4ThreeVector, G4ThreeVector > GetField(const G4ThreeVector &position, const G4double t) const
Accessor to get B and E field.
G4double kg
gabor lens kg strength
G4double plasmaEfield
plasma e-field strength
G4double bfieldMag
solenoid-equivalent field strength
static const G4double pmass
proton mass.
Efficient storage of magnet strengths.