Import Geant4 3.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:10:37 +02:00
parent 137e303ecc
commit 36c080dca6
3464 changed files with 119310 additions and 52696 deletions
+26 -10
View File
@@ -1,12 +1,28 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4Ray.cc,v 1.5 2000/11/20 17:54:40 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-01 $
//
// $Id: G4Ray.cc,v 1.6.2.1 2001/06/28 19:08:53 gunter Exp $
// GEANT4 tag $Name: $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -103,12 +119,12 @@ void G4Ray::MatVecOrtho(register G4Vector3D &out,
i_Which=2;
if(!i_Which)
f = hypot( in.y(), in.z() );
f = sqrt((in.y())*(in.y())+(in.z())*(in.z())); // hypot(in.y(),in.z())
else
if(i_Which==1)
f = hypot( in.z(), in.x() );
f = sqrt((in.z())*(in.z())+(in.x())*(in.x())); // hypot(in.z(),in.x())
else
f = hypot( in.x(), in.y() );
f = sqrt((in.x())*(in.x())+(in.y())*(in.y())); // hypot(in.x(),in.y())
if( NearZero( f, SMALL ) )
{