19#ifndef BDSMAGNETOUTERINFO_H
20#define BDSMAGNETOUTERINFO_H
21#include "BDSMagnetGeometryType.hh"
49 G4double horizontalWidthIn,
50 G4Material* outerMaterialIn,
51 G4double innerRadiusIn,
52 G4double vhRatioIn = 1,
53 G4double angleInIn = 0,
54 G4double angleOutIn = 0,
55 G4bool yokeOnLeft =
false,
57 G4bool buildEndPiecesIn =
true,
58 G4double coilWidthFractionIn = 0.65,
59 G4double coilHeightFractionIn = 0.8,
60 const G4String& geometryTypeAndPathIn =
"",
61 G4Colour* colourIn =
nullptr,
62 G4bool autoColour =
true);
66 G4double horizontalWidth;
67 G4Material* outerMaterial;
74 G4bool buildEndPieces;
75 G4double coilWidthFraction;
76 G4double coilHeightFraction;
77 G4String geometryTypeAndPath;
81 inline G4double MinimumIntersectionRadiusRequired()
const {
return std::hypot(0.5*horizontalWidth, 0.5*horizontalWidth*vhRatio);}
Holder struct of all information required to create the outer geometry of a magnet.
G4bool hStyle
H Style for dipoles. If not, it's assumed C style.
BDSMagnetOuterInfo()
default constructor