BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
BDSMagnetOuterFactory.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2022.
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 BDSMAGNETOUTERFACTORY_H
20#define BDSMAGNETOUTERFACTORY_H
21
22#include "BDSMagnetOuter.hh"
23#include "BDSMagnetGeometryType.hh"
24#include "BDSMagnetType.hh"
25
26#include "globals.hh" // geant4 globals / types
27
28class BDSBeamPipe;
29class BDSFieldInfo;
32class G4Material;
33
46{
47public:
50
52
57 BDSMagnetOuterInfo* outerInfo,
58 G4double outerLength,
59 G4double chordLength,
60 BDSBeamPipe* beampipe);
61
62private:
65
68
71 BDSMagnetOuter* CreateExternal(const G4String& name,
73 G4double length,
74 G4double magnetContainerLength,
75 BDSBeamPipe* beampipe);
76
82 G4double length,
83 BDSGeometryExternal* external,
84 BDSBeamPipe* beampipe);
85
86 void CheckOuterBiggerThanBeamPipe(const G4String& name,
87 const BDSMagnetOuterInfo* outerInfo,
88 const BDSBeamPipe* beamPipe) const;
89
101};
102
103
104
105#endif
A holder class for a piece of beam pipe geometry.
Definition: BDSBeamPipe.hh:45
All info required to build complete field of any type.
Definition: BDSFieldInfo.hh:65
A generic geometry component for a bdsim model.
A loaded piece of externally provided geometry.
Abstract base class for magnet outer volume factories.
The main interface for using the magnet outer factories.
static BDSMagnetOuterFactory * Instance()
Singleton accessor.
BDSMagnetOuterFactoryBase * lhcleft
Factory instance.
BDSMagnetOuterFactoryBase * polesfacetcrop
Factory instance.
BDSMagnetOuterFactoryBase * lhcright
Factory instance.
static BDSMagnetOuterFactory * instance
Singleton instance.
BDSGeometryComponent * CreateContainerForExternal(const G4String &name, G4double length, BDSGeometryExternal *external, BDSBeamPipe *beampipe)
BDSMagnetOuter * CreateExternal(const G4String &name, BDSMagnetOuterInfo *info, G4double length, G4double magnetContainerLength, BDSBeamPipe *beampipe)
BDSMagnetOuterFactoryBase * cylindrical
Factory instance.
BDSMagnetOuterFactoryBase * polessquare
Factory instance.
BDSMagnetOuter * CreateMagnetOuter(BDSMagnetType magnetType, BDSMagnetOuterInfo *outerInfo, G4double outerLength, G4double chordLength, BDSBeamPipe *beampipe)
BDSMagnetOuterFactoryBase * polescircular
Factory instance.
BDSMagnetOuterFactoryBase * GetAppropriateFactory(BDSMagnetGeometryType magnetTypeIn)
Get the appropriate derived factory for the required magnet style.
BDSMagnetOuterFactoryBase * none
Factory instance.
BDSMagnetOuterFactoryBase * polesfacet
Factory instance.
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...