BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSGaborLens.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 BDSGABORLENS_H
19#define BDSGABORLENS_H
20
21#include "globals.hh"
22#include "BDSAcceleratorComponent.hh"
23
24class G4Colour;
25class G4Material;
26
34{
35public:
36 BDSGaborLens(const G4String& nameIn,
37 G4double lengthIn,
38 G4double horizontalWidthIn,
39 G4double anodeLengthIn,
40 G4Material* anodeMaterialIn,
41 G4double anodeRadiusIn,
42 G4double anodeThicknessIn,
43 G4double electrodeLengthIn,
44 G4Material* electrodeMaterialIn,
45 G4double electrodeRadiusIn,
46 G4double electrodeThicknessIn,
47 G4Material* outerMaterialIn,
48 G4Colour* colourIn,
49 BDSBeamPipeInfo* beamPipeInfoIn = nullptr,
50 BDSFieldInfo* vacuumFieldInfoIn = nullptr);
51 virtual ~BDSGaborLens();
52
53protected:
54 virtual void Build();
55
56 virtual void BuildContainerLogicalVolume();
57
58 G4double horizontalWidth;
59 G4double anodeRadius;
60 G4double anodeLength;
61 G4Material* anodeMaterial;
62 G4double anodeThickness;
63 G4double electrodeRadius;
64 G4double electrodeLength;
65 G4Material* electrodeMaterial;
66 G4double electrodeThickness;
67 G4Material* outerMaterial;
68 G4Colour* colour;
69 BDSFieldInfo* vacuumFieldInfo;
70 G4double vacuumLength;
71 G4double endcapsLength;
72
73private:
75 BDSGaborLens() = delete;
76
78 void BuildBeamPipe();
79
81 void BuildOuter();
82
87
88};
89
90#endif
Abstract class that represents a component of an accelerator.
Holder class for all information required to describe a beam pipe model.
All info required to build complete field of any type.
Gabor lens based on prototype design at Imperial College (https://doi.org/10.3390/app11104357)
BDSGaborLens & operator=(const BDSGaborLens &)=delete
Assignment and copy constructor not implemented nor used.
void BuildOuter()
Build the outer volume.
BDSGaborLens()=delete
total length of both end caps
virtual void Build()
BDSGaborLens(BDSGaborLens &)=delete
Assignment and copy constructor not implemented nor used.
void BuildBeamPipe()
Build the beam pipe.
virtual void BuildContainerLogicalVolume()