33#include "G4GeometryManager.hh"
47 fFieldLength(2.*((
G4Tubs*)fVolume->GetSolid())->GetZHalfLength()+fFringeZ),
48 fFieldRadius(((
G4Tubs*)fVolume->GetSolid())->GetOuterRadius())
54 G4double field[6])
const
56 G4ThreeVector global(point[0],point[1],point[2]);
63 G4ThreeVector B(0.0,0.0,
fBfield);
78 G4double r = std::sqrt(local.x()*local.x()+local.y()*local.y());
88 G4double r = std::sqrt(local.x()*local.x()+local.y()*local.y());
Definition of the F04GlobalField class.
Definition of the F04SimpleSolenoid class.
G4AffineTransform fGlobal2local
G4bool IsOutside(G4ThreeVector &local) const
IsOutside() returns true when outside the solenoid.
void AddFieldValue(const G4double point[4], G4double field[6]) const override
AddFieldValue() adds the field for this solenoid into field[].
F04SimpleSolenoid(G4double, G4double, G4LogicalVolume *, G4ThreeVector)
Default constructor.
G4bool IsWithin(G4ThreeVector &local) const
IsWithin() returns true when inside the solenoid.