BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSMagnetOuterFactoryPolesSquare.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 BDSMAGNETOUTERFACTORYPOLESSQUARE_H
19#define BDSMAGNETOUTERFACTORYPOLESSQUARE_H
20
21#include "BDSMagnetOuterFactoryPolesBase.hh"
22
23#include "globals.hh" // geant4 globals / types
24#include <vector>
25
26class BDSBeamPipe;
27class G4Colour;
28class G4LogicalVolume;
29class G4Material;
30class G4VSolid;
31
45{
46public:
49
50private:
52 virtual void CleanUp();
53
55 void CleanUpPolesSquare();
56
58 virtual void CreateYokeAndContainerSolid(const G4String& name,
59 G4double length,
60 G4int order,
61 G4double magnetContainerLength,
62 G4double magnetContainerRadiusIn);
63
64 virtual void IntersectPoleWithYoke(const G4String& name,
65 G4double length,
66 G4int orderIn);
67
72 virtual void CreateLogicalVolumes(const G4String& name,
73 G4Colour* colour,
74 G4Material* outerMaterial);
75
77 virtual void PlaceComponents(const G4String& name,
78 G4int order);
79
83 virtual BDSMagnetOuter* CommonConstructor(const G4String& name,
84 G4double length,
85 BDSBeamPipe* beamPipe,
86 G4int order,
87 G4double magnetContainerLength,
88 const BDSMagnetOuterInfo* recipe);
89
92 std::vector<G4RotationMatrix*> poleRotations;
93 std::vector<G4VSolid*> poleSolids;
94 std::vector<G4LogicalVolume*> poleLVs;
95
98 G4int order;
99};
100
101#endif
A holder class for a piece of beam pipe geometry.
Factory class for outer volume of magnets. Produces magnets with 2N-poles around the beampipe with a ...
Factory class for outer volume of magnets.
void CleanUpPolesSquare()
Clean up for this factory. Non-virtual as used in constructor.
virtual void IntersectPoleWithYoke(const G4String &name, G4double length, G4int orderIn)
Chop off the top of the pole to match the appropriate yoke geometry.
virtual BDSMagnetOuter * CommonConstructor(const G4String &name, G4double length, BDSBeamPipe *beamPipe, G4int order, G4double magnetContainerLength, const BDSMagnetOuterInfo *recipe)
virtual void CreateLogicalVolumes(const G4String &name, G4Colour *colour, G4Material *outerMaterial)
std::vector< G4RotationMatrix * > poleRotations
virtual void PlaceComponents(const G4String &name, G4int order)
Place the poles and yoke in the container volume.
virtual void CreateYokeAndContainerSolid(const G4String &name, G4double length, G4int order, G4double magnetContainerLength, G4double magnetContainerRadiusIn)
Create yoke that connects poles and container to put them in.
virtual void CleanUp()
Clean up all memebers used.
Holder struct of all information required to create the outer geometry of a magnet.
An object for both the returned magnet outer body but also a tight fitting container for the whole ma...