41 fFieldComponents[0] = FieldVector.
x();
42 fFieldComponents[1] = FieldVector.
y();
43 fFieldComponents[2] = FieldVector.
z();
49 this->fFieldComponents[1],
50 this->fFieldComponents[2]) );
56 fFieldComponents[0] = newFieldVector.
x();
57 fFieldComponents[1] = newFieldVector.
y();
58 fFieldComponents[2] = newFieldVector.
z();
65 if ( (vField<0) || (vTheta<0) || (vTheta>
pi) || (vPhi<0) || (vPhi>
twopi) )
67 G4Exception(
"G4UniformMagField::G4UniformMagField()",
70 fFieldComponents[0] = vField*std::sin(vTheta)*std::cos(vPhi) ;
71 fFieldComponents[1] = vField*std::sin(vTheta)*std::sin(vPhi) ;
72 fFieldComponents[2] = vField*std::cos(vTheta) ;
82 for (
G4int i=0; i<3; i++)
83 fFieldComponents[i] = p.fFieldComponents[i];
88 if (&p ==
this)
return *
this;
89 for (
G4int i=0; i<3; i++)
90 fFieldComponents[i] = p.fFieldComponents[i];
99 B[0]= fFieldComponents[0] ;
100 B[1]= fFieldComponents[1] ;
101 B[2]= fFieldComponents[2] ;
108 fFieldComponents[2]);
CLHEP::Hep3Vector G4ThreeVector
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)