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

Go to the source code of this file.

Functions

void G4gsdvn2 (G4String name, G4String moth, G4int ndiv, G4int iaxis, G4double c0, G4int numed)
 
void G4gsdvt2 (G4String name, G4String moth, G4double Step, G4int iaxis, G4double c0, G4int numed, G4int ndvmx)
 
void PG4gsdvx (G4String *tokens)
 
void G4gsdvx (G4String name, G4String moth, G4int ndiv, G4int iaxis, G4double Step, G4double c0, G4int numed, G4int ndvmx)
 

Function Documentation

◆ G4gsdvn2()

void G4gsdvn2 ( G4String  name,
G4String  moth,
G4int  ndiv,
G4int  iaxis,
G4double  c0,
G4int  numed 
)

Definition at line 56 of file G4gsdvn2.cc.

58{
59 // find mother VTE
60 G3VolTableEntry* mvte = G3Vol.GetVTE(vmoth);
61 if (mvte == 0) {
62 G4String text = "G4gsdvn2:'" + vmoth + "' has no VolTableEntry";
63 G4Exception("G4gsdvn2()", "G3toG40025", FatalException, text);
64 return;
65 }
66 else {
67 // a new vte clone copy with division is created
68 // for each mother (clone copy)
69
71 kDvn2, ndiv, iaxis, numed, c0, 0.);
72 }
73}
@ kDvn2
Definition: G3Division.hh:53
G3G4DLL_API G3VolTable G3Vol
Definition: clparse.cc:54
@ FatalException
void G4CreateCloneVTEWithDivision(G4String vname, G3VolTableEntry *mvte, G3DivType divType, G4int nofDivisions, G4int iaxis, G4int nmed, G4double c0, G4double step)
Definition: G4gsdvn.cc:52
G3VolTableEntry * GetVTE(const G4String &Vname)
Definition: G3VolTable.cc:54
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

Referenced by G4gsdvx(), and PG4gsdvn2().

◆ G4gsdvt2()

void G4gsdvt2 ( G4String  name,
G4String  moth,
G4double  Step,
G4int  iaxis,
G4double  c0,
G4int  numed,
G4int  ndvmx 
)

Definition at line 58 of file G4gsdvt2.cc.

60{
61 // find mother VTE
62 G3VolTableEntry* mvte = G3Vol.GetVTE(vmoth);
63 if (mvte == 0) {
64 G4String text = "G4gsdvt2:'" + vmoth + "' has no VolTableEntry";
65 G4Exception("G4gsdvt2()", "G3toG40015", FatalException, text);
66 return;
67 }
68 else {
69 // a new vte clone copy with division is created
70 // for each mother (clone copy)
71
73 kDvt2, ndvmx, iaxis, numed, c0, step);
74 }
75}
@ kDvt2
Definition: G3Division.hh:53
void G4CreateCloneVTEWithDivision(G4String vname, G3VolTableEntry *mvte, G3DivType divType, G4int nofDivisions, G4int iaxis, G4int nmed, G4double c0, G4double step)
Definition: G4gsdvn.cc:52

Referenced by G4gsdvx(), and PG4gsdvt2().

◆ G4gsdvx()

void G4gsdvx ( G4String  name,
G4String  moth,
G4int  ndiv,
G4int  iaxis,
G4double  Step,
G4double  c0,
G4int  numed,
G4int  ndvmx 
)

Definition at line 58 of file G4gsdvx.cc.

60{
61 // pass to gsdvn2 or gsdvt2
62 if (Step > 0.) {
63 G4gsdvt2(name,moth,Step,iaxis,c0,numed,ndvmx);
64 } else if (ndiv > 0) {
65 G4gsdvn2(name,moth,ndiv,iaxis,c0,numed);
66 }
67}
void G4gsdvn2(G4String name, G4String moth, G4int ndiv, G4int iaxis, G4double c0, G4int numed)
Definition: G4gsdvn2.cc:56
void G4gsdvt2(G4String name, G4String moth, G4double Step, G4int iaxis, G4double c0, G4int numed, G4int ndvmx)
Definition: G4gsdvt2.cc:58

Referenced by PG4gsdvx().

◆ PG4gsdvx()

void PG4gsdvx ( G4String tokens)

Definition at line 40 of file G4gsdvx.cc.

41{
42 // fill the parameter containers
43 G3fillParams(tokens,PTgsdvx);
44
45 // interpret the parameters
46 G4String name = Spar[0];
47 G4String moth = Spar[1];
48 G4int ndiv = Ipar[0];
49 G4int iaxis = Ipar[1];
50 G4int numed = Ipar[2];
51 G4int ndvmx = Ipar[3];
52 G4double Step = Rpar[0];
53 G4double c0 = Rpar[1];
54
55 G4gsdvx(name,moth,ndiv,iaxis,Step,c0,numed,ndvmx);
56}
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 PTgsdvx
Definition: G3toG4.hh:59
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
void G4gsdvx(G4String name, G4String moth, G4int ndiv, G4int iaxis, G4double Step, G4double c0, G4int numed, G4int ndvmx)
Definition: G4gsdvx.cc:58

Referenced by G3CLEval().