33#include "G4GeometryManager.hh"
53 G4double field[6])
const
55 G4ThreeVector global(point[0],point[1],point[2]);
63 G4double Bz = (
fB2-
fB1) * std::abs(local.z())/(length/2.) +
fB1;
65 if (
fHalf) {
if (local.z() >= 0.) Bz =
fB1; }
67 G4ThreeVector B(0.0,0.0,Bz);
Definition of the F04FocusSolenoid class.
Definition of the F04GlobalField class.
Definition of the F04SimpleSolenoid class.
G4AffineTransform fGlobal2local
F04FocusSolenoid(G4double, G4double, G4double, G4LogicalVolume *, G4ThreeVector)
Default constructor.
void AddFieldValue(const G4double point[4], G4double field[6]) const override
AddFieldValue() adds the field for this solenoid into field[].
G4bool IsOutside(G4ThreeVector &local) const
IsOutside() returns true when outside the solenoid.