42 fFieldComponents[0] = 0.0;
43 fFieldComponents[1] = 0.0;
44 fFieldComponents[2] = 0.0;
45 fFieldComponents[3] = FieldVector.
x();
46 fFieldComponents[4] = FieldVector.
y();
47 fFieldComponents[5] = FieldVector.
z();
54 if ( (vField<0) || (vTheta<0) || (vTheta>pi) || (vPhi<0) || (vPhi>twopi) )
56 G4Exception(
"G4UniformElectricField::G4UniformElectricField()",
60 fFieldComponents[0] = 0.0;
61 fFieldComponents[1] = 0.0;
62 fFieldComponents[2] = 0.0;
63 fFieldComponents[3] = vField*std::sin(vTheta)*std::cos(vPhi) ;
64 fFieldComponents[4] = vField*std::sin(vTheta)*std::sin(vPhi) ;
65 fFieldComponents[5] = vField*std::cos(vTheta) ;
75 for (
G4int i=0; i<6; i++)
76 fFieldComponents[i] = p.fFieldComponents[i];
82 for (
G4int i=0; i<6; i++)
83 fFieldComponents[i] = p.fFieldComponents[i];
95 fieldBandE[3]= fFieldComponents[3] ;
96 fieldBandE[4]= fFieldComponents[4] ;
97 fieldBandE[5]= fFieldComponents[5] ;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)