19#ifndef BDSMAGNETOUTERFACTORYPOLESSQUARE_H
20#define BDSMAGNETOUTERFACTORYPOLESSQUARE_H
22#include "BDSMagnetOuterFactoryPolesBase.hh"
62 G4double magnetContainerLength,
63 G4double magnetContainerRadiusIn);
75 G4Material* outerMaterial);
88 G4double magnetContainerLength,
94 std::vector<G4VSolid*> poleSolids;
95 std::vector<G4LogicalVolume*> poleLVs;
A holder class for a piece of beam pipe geometry.
Factory class for outer volume of magnets. Produces magnets with 2N-poles around the beampipe with a ...
Factory class for outer volume of magnets.
void CleanUpPolesSquare()
Clean up for this factory. Non-virtual as used in constructor.
virtual void IntersectPoleWithYoke(const G4String &name, G4double length, G4int orderIn)
Chop off the top of the pole to match the appropriate yoke geometry.
virtual BDSMagnetOuter * CommonConstructor(const G4String &name, G4double length, BDSBeamPipe *beamPipe, G4int order, G4double magnetContainerLength, const BDSMagnetOuterInfo *recipe)
virtual void CreateLogicalVolumes(const G4String &name, G4Colour *colour, G4Material *outerMaterial)
std::vector< G4RotationMatrix * > poleRotations
virtual void PlaceComponents(const G4String &name, G4int order)
Place the poles and yoke in the container volume.
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 CleanUp()
Clean up all memebers used.
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...