BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSUndulator.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
20#ifndef BDSUNDULATOR_H
21#define BDSUNDULATOR_H
22
23#include "BDSAcceleratorComponent.hh"
24
25#include "globals.hh"
26
27class BDSBeamPipeInfo;
28class BDSFieldInfo;
29
39{
40public:
41 BDSUndulator(const G4String& nameIn,
42 G4double lengthIn,
43 G4double periodIn,
44 G4double magnetHeightIn,
45 G4double magnetWidthIn,
46 G4double undulatorGapIn,
47 BDSBeamPipeInfo* beamPipeInfoIn,
48 BDSFieldInfo* vacuumFieldInfoIn,
49 BDSFieldInfo* outerFieldInfoIn,
50 const G4String& materialIn = "iron");
51
52 virtual ~BDSUndulator();
53
54protected:
55 virtual void Build();
56
57 virtual void BuildContainerLogicalVolume();
58
59 BDSFieldInfo* vacuumFieldInfo;
60 BDSFieldInfo* outerFieldInfo;
61 const G4double undulatorPeriod;
62 const G4double horizontalWidth;
64 G4double undulatorGap;
65 G4int numMagnets;
66 G4String material;
67};
68
69#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.
Undulator.
G4double undulatorGap
Full undulator gap.
const G4double horizontalWidth
Element width (and height)
G4double undulatorMagnetHeight
Full magnet box height.
G4String material
Undulator magnet material.
G4int numMagnets
Total number of magnets (1 undulator period is 2 magnets)
virtual void BuildContainerLogicalVolume()
virtual void Build()