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) 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 BDSUNDULATOR_H
19#define BDSUNDULATOR_H
20
21#include "BDSAcceleratorComponent.hh"
22
23#include "globals.hh"
24
25class G4Material;
26class BDSBeamPipeInfo;
27class BDSFieldInfo;
28
38{
39public:
40 BDSUndulator() = delete;
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 G4Material* materialIn);
55 virtual ~BDSUndulator();
56
57protected:
58 virtual void Build();
59
60 virtual void BuildContainerLogicalVolume();
61
62 BDSFieldInfo* vacuumFieldInfo;
63 BDSFieldInfo* outerFieldInfo;
64 const G4double undulatorPeriod;
65 const G4double horizontalWidth;
67 G4double undulatorGap;
68 G4int numMagnets;
69 G4Material* material;
70};
71
72#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.
BDSUndulator(BDSUndulator &)=delete
Assignment and copy constructor not implemented nor used.
const G4double horizontalWidth
Element width (and height)
G4double undulatorMagnetHeight
Full magnet box height.
G4int numMagnets
Total number of magnets (1 undulator period is 2 magnets)
G4Material * material
Undulator magnet material.
virtual void BuildContainerLogicalVolume()
virtual void Build()
BDSUndulator & operator=(const BDSUndulator &)=delete
Assignment and copy constructor not implemented nor used.