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) 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 BDSGABORLENS_H
20#define BDSGABORLENS_H
21
22#include "globals.hh"
23#include "BDSAcceleratorComponent.hh"
24
25class G4Colour;
26class G4Material;
27
35{
36public:
37 BDSGaborLens(const G4String& nameIn,
38 G4double lengthIn,
39 G4double horizontalWidthIn,
40 G4double anodeLengthIn,
41 G4Material* anodeMaterialIn,
42 G4double anodeRadiusIn,
43 G4double anodeThicknessIn,
44 G4double electrodeLengthIn,
45 G4Material* electrodeMaterialIn,
46 G4double electrodeRadiusIn,
47 G4double electrodeThicknessIn,
48 G4Material* outerMaterialIn,
49 G4Colour* colourIn,
50 BDSBeamPipeInfo* beamPipeInfoIn = nullptr,
51 BDSFieldInfo* vacuumFieldInfoIn = nullptr);
52 virtual ~BDSGaborLens();
53
54protected:
55 virtual void Build();
56
57 virtual void BuildContainerLogicalVolume();
58
59 G4double horizontalWidth;
60 G4double anodeRadius;
61 G4double anodeLength;
62 G4Material* anodeMaterial;
63 G4double anodeThickness;
64 G4double electrodeRadius;
65 G4double electrodeLength;
66 G4Material* electrodeMaterial;
67 G4double electrodeThickness;
68 G4Material* outerMaterial;
69 G4Colour* colour;
70 BDSFieldInfo* vacuumFieldInfo;
71 G4double vacuumLength;
72 G4double endcapsLength;
73
74private:
76 BDSGaborLens() = delete;
77
79 void BuildBeamPipe();
80
82 void BuildOuter();
83
88
89};
90
91#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()