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) 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 BDSMAGNETOUTERFACTORYPOLESFACETCOMMON_H
19#define BDSMAGNETOUTERFACTORYPOLESFACETCOMMON_H
20
21#include "BDSMagnetOuterFactoryPolesBase.hh"
22
23#include "globals.hh" // geant4 globals / types
24
42{
43public:
45
47
48protected:
50 virtual void CalculateStartAngles();
51
54
57
58private:
61
63 virtual void CreateYokeAndContainerSolid(const G4String& name,
64 G4double length,
65 G4int order,
66 G4double magnetContainerLength,
67 G4double magnetContainerRadiusIn);
68
70 G4double factor;
71};
72
73#endif
Factory class for outer volume of magnets. Produces magnets with 2N-poles around the beampipe with a ...
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.