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 - 2023.
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.
Definition: BDSFieldInfo.hh:66
Undulator.
Definition: BDSUndulator.hh:39
G4double undulatorGap
Full undulator gap.
Definition: BDSUndulator.hh:64
const G4double horizontalWidth
Element width (and height)
Definition: BDSUndulator.hh:62
G4double undulatorMagnetHeight
Full magnet box height.
Definition: BDSUndulator.hh:63
G4String material
Undulator magnet material.
Definition: BDSUndulator.hh:66
G4int numMagnets
Total number of magnets (1 undulator period is 2 magnets)
Definition: BDSUndulator.hh:65
virtual void BuildContainerLogicalVolume()
Definition: BDSUndulator.cc:76
virtual void Build()