BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSMagnetOuterFactoryPolesFacetCommon.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#ifndef BDSMAGNETOUTERFACTORYPOLESFACETCOMMON_H
20#define BDSMAGNETOUTERFACTORYPOLESFACETCOMMON_H
21
22#include "BDSMagnetOuterFactoryPolesBase.hh"
23
24#include "globals.hh" // geant4 globals / types
25
43{
44public:
46
48
49protected:
51 virtual void CalculateStartAngles();
52
55
58
59private:
62
64 virtual void CreateYokeAndContainerSolid(const G4String& name,
65 G4double length,
66 G4int order,
67 G4double magnetContainerLength,
68 G4double magnetContainerRadiusIn);
69
71 G4double factor;
72};
73
74#endif
Factory class for outer volume of magnets. Produces magnets with 2N-poles around the beampipe with a ...
Factory class for outer volume of magnets.
BDSMagnetOuterFactoryPolesFacetCommon()
Private constructor to force use of supplied one.
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 CalculateStartAngles()
Calculate start angle of polyhedra based on order and segment angle.
G4double factor
Factor by which number of polyhedra vertices is multiplied by.
G4double poleIntersectionStartAngle
Start angle for pole intersection.