Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
// This code implementation is the intellectual property of
// the RD44 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: G4gsdvx.cc,v 2.1 1998/07/12 02:54:25 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
#include "globals.hh"
#include "G3toG4.hh"
void PG4gsdvx(RWCString tokens[])
{
// fill the parameter containers
G3fillParams(tokens,PTgsdvx);
// interpret the parameters
G4String name = Spar[0];
G4String moth = Spar[1];
G4int ndiv = Ipar[0];
G4int iaxis = Ipar[1];
G4int numed = Ipar[2];
G4int ndvmx = Ipar[3];
G4double Step = Rpar[0];
G4double c0 = Rpar[1];
G4gsdvx(name,moth,ndiv,iaxis,Step,c0,numed,ndvmx);
}
void G4gsdvx(G4String name, G4String moth, G4int ndiv, G4int iaxis,
G4double Step, G4double c0, G4int numed, G4int ndvmx)
{
// pass to gsdvn2 or gsdvt2
if (Step > 0.) {
G4gsdvt2(name,moth,Step,iaxis,c0,numed,ndvmx);
} else if (ndiv > 0) {
G4gsdvn2(name,moth,ndiv,iaxis,c0,numed);
}
}