80 G4double r = std::sqrt(local.
x()*local.
x()+local.
y()*local.
y());
81 return (r > fFieldRadius || std::fabs(local.
z()) > fFieldLength/2.0);
90 G4double r = std::sqrt(local.
x()*local.
x()+local.
y()*local.
y());
91 return (r < fFieldRadius && std::fabs(local.
z()) < fFieldLength/2.0);
G4bool IsOutside(G4ThreeVector &local) const
IsOutside() returns true when outside the solenoid.
Definition of the F04GlobalField class.
G4VSolid * GetSolid() const
double B(double temperature)
F04SimpleSolenoid(G4double, G4double, G4LogicalVolume *, G4ThreeVector)
Default constructor.
G4bool IsWithin(G4ThreeVector &local) const
IsWithin() returns true when inside the solenoid.
G4AffineTransform fGlobal2local
Definition of the F04SimpleSolenoid class.
G4LogicalVolume * fVolume
virtual void AddFieldValue(const G4double point[4], G4double field[6]) const