41 fFieldComponents[0] = FieldVector.
x();
42 fFieldComponents[1] = FieldVector.
y();
43 fFieldComponents[2] = FieldVector.
z();
49 fFieldComponents[0] = newFieldVector.
x();
50 fFieldComponents[1] = newFieldVector.
y();
51 fFieldComponents[2] = newFieldVector.
z();
58 if ( (vField<0) || (vTheta<0) || (vTheta>pi) || (vPhi<0) || (vPhi>twopi) )
60 G4Exception(
"G4UniformMagField::G4UniformMagField()",
63 fFieldComponents[0] = vField*std::sin(vTheta)*std::cos(vPhi) ;
64 fFieldComponents[1] = vField*std::sin(vTheta)*std::sin(vPhi) ;
65 fFieldComponents[2] = vField*std::cos(vTheta) ;
75 for (
G4int i=0; i<3; i++)
76 fFieldComponents[i] = p.fFieldComponents[i];
81 if (&p ==
this)
return *
this;
82 for (
G4int i=0; i<3; i++)
83 fFieldComponents[i] = p.fFieldComponents[i];
92 B[0]= fFieldComponents[0] ;
93 B[1]= fFieldComponents[1] ;
94 B[2]= fFieldComponents[2] ;
101 fFieldComponents[2]);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)