Geant4 11.2.2
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 50 of file G4gspart.cc.

52{
53}

Referenced by PG4gspart().

◆ PG4gspart()

void PG4gspart ( G4String * tokens)

Definition at line 32 of file G4gspart.cc.

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

Referenced by G3CLEval().