Problem 156

Summary: Bug in G4MagHelicalStepper.cc ??
Product: Geant4 Reporter: seidl
Component: geometry/magneticfieldAssignee: Vladimir.Grichine
Status: RESOLVED INVALID    
Severity: normal CC: John.Apostolakis
Priority: P2    
Version: 1.0   
Hardware: PC   
OS: Linux   

Description seidl 2000-09-27 09:18:30 CEST
If I understand the code of G4MagHelicalStepper.cc right,
I would replace the line CosT = 1.0 - 2.0 * SinT * SinT;
by CosT = 1.0 - 4.0 * SinT * SintT;
Comment 1 Gabriele Cosmo 2000-09-28 02:25:59 CEST
Please, note this is still referring to Geant4 1.0 !
Comment 2 Gabriele Cosmo 2000-10-04 02:08:59 CEST
Problem now under investigation.
Comment 3 Gabriele Cosmo 2000-10-04 05:02:59 CEST
Report from V.Grichine analysis of the problem:
 G4MagHelicalStepper has been checked and did not find error.
 The formula below:
    cos(2*theta) = cos^2(theta) - sin^2(theta) = 1 - 2*sin^2(theta)
 is correctly represented.