Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4gspart.cc File Reference
#include "G4ProcessManager.hh"
#include "G3toG4.hh"
#include "G3PartTable.hh"

Go to the source code of this file.

Functions

void PG4gspart (G4String *tokens)
 
void G4gspart (G4int, G4String, G4int, G4double, G4double, G4double, G4double *, G4int)
 

Function Documentation

◆ G4gspart()

void G4gspart ( G4int  ipart,
G4String  chnpar,
G4int  itrtyp,
G4double  amass,
G4double  charge,
G4double  tlife,
G4double ubuf,
G4int  nwb 
)

Definition at line 51 of file G4gspart.cc.

53{
54}

Referenced by PG4gspart().

◆ PG4gspart()

void PG4gspart ( G4String tokens)

Definition at line 33 of file G4gspart.cc.

34{
35 // fill the parameter containers
36 G3fillParams(tokens,PTgspart);
37
38 // interpret the parameters
39 G4String chnpar = Spar[0];
40 G4int ipart = Ipar[0];
41 G4int itrtyp = Ipar[1];
42 G4int nwb = Ipar[2];
43 G4double amass = Rpar[0];
44 G4double charge = Rpar[1];
45 G4double tlife = Rpar[2];
46 G4double *ubuf = &Rpar[3];
47
48 G4gspart(ipart,chnpar,itrtyp,amass,charge,tlife,ubuf,nwb);
49}
G3G4DLL_API G4int Ipar[1000]
Definition: clparse.cc:66
void G3fillParams(G4String *tokens, const char *ptypes)
Definition: clparse.cc:219
G3G4DLL_API G4double Rpar[1000]
Definition: clparse.cc:67
G3G4DLL_API G4String Spar[1000]
Definition: clparse.cc:68
#define PTgspart
Definition: G3toG4.hh:67
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
void G4gspart(G4int, G4String, G4int, G4double, G4double, G4double, G4double *, G4int)
Definition: G4gspart.cc:51

Referenced by G3CLEval().