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) ;
80 for (
G4int i=0; i<6; i++)
81 fFieldComponents[i] = p.fFieldComponents[i];
87 for (
G4int i=0; i<6; i++)
88 fFieldComponents[i] = p.fFieldComponents[i];
100 fieldBandE[3]= fFieldComponents[3] ;
101 fieldBandE[4]= fFieldComponents[4] ;
102 fieldBandE[5]= fFieldComponents[5] ;
CLHEP::Hep3Vector G4ThreeVector
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)