BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSMagnetOuterFactory.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 BDSMAGNETOUTERFACTORY_H
19#define BDSMAGNETOUTERFACTORY_H
20
21#include "BDSMagnetOuter.hh"
22#include "BDSMagnetGeometryType.hh"
23#include "BDSMagnetType.hh"
24
25#include "globals.hh" // geant4 globals / types
26
27class BDSBeamPipe;
28class BDSFieldInfo;
31class G4Material;
32
45{
46public:
49
51
56 BDSMagnetOuterInfo* outerInfo,
57 G4double outerLength,
58 G4double chordLength,
59 BDSBeamPipe* beampipe);
60
61private:
64
67
70 BDSMagnetOuter* CreateExternal(const G4String& name,
72 G4double length,
73 G4double magnetContainerLength,
74 BDSBeamPipe* beampipe);
75
81 G4double length,
82 BDSGeometryExternal* external,
83 BDSBeamPipe* beampipe);
84
85 void CheckOuterBiggerThanBeamPipe(const G4String& name,
86 const BDSMagnetOuterInfo* outerInfo,
87 const BDSBeamPipe* beamPipe) const;
88
101};
102
103
104
105#endif
A holder class for a piece of beam pipe geometry.
All info required to build complete field of any type.
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.
G4bool sensitiveOuter
Cache of global option.
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...