65 if ( (vField<0) || (vTheta<0) || (vTheta>
pi) || (vPhi<0) || (vPhi>twopi) )
67 std::ostringstream msg;
68 msg <<
"ERROR in G4UniformMagField::G4UniformMagField(double, double, double) : "
69 <<
"Invalid parameter(s). " << std::endl;
70 msg <<
" Expected " << std::endl;
72 msg <<
" - Magnitude vField: Value = " << vField
73 <<
" Expected vField > 0 " ;
74 if ( vField<0) { msg <<
" <------ Erroneous "; }
77 msg <<
" - Theta angle: Value = " << vTheta
78 <<
" Expected between 0 <= theta <= pi = " <<
pi <<
" ";
79 if ( (vTheta<0) || (vTheta>pi) ) { msg <<
" <------ Erroneous "; }
82 msg <<
" - Phi angle: Value = " << vPhi
83 <<
" Expected between 0 <= phi <= 2*pi = " << twopi << std::endl;
84 if ( (vPhi<0) || (vPhi>twopi) ) { msg <<
" <------ Erroneous "; }
86 G4Exception(
"G4UniformMagField::G4UniformMagField()",
101 for (
G4int i=0; i<3; i++)
107 if (&p ==
this)
return *
this;
108 for (
G4int i=0; i<3; i++)
CLHEP::Hep3Vector G4ThreeVector
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)