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) ;
72 fFieldComponents[5]) );
82 for (
G4int i=0; i<6; i++)
84 fFieldComponents[i] = p.fFieldComponents[i];
91 if (&p ==
this)
return *
this;
93 for (
G4int i=0; i<6; i++)
95 fFieldComponents[i] = p.fFieldComponents[i];
108 fieldBandE[3]= fFieldComponents[3] ;
109 fieldBandE[4]= fFieldComponents[4] ;
110 fieldBandE[5]= fFieldComponents[5] ;
CLHEP::Hep3Vector G4ThreeVector
static constexpr double twopi
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static constexpr double pi
G4ElectricField & operator=(const G4ElectricField &p)