Geant4 11.1.1
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 55 of file G4gsdvn2.cc.

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

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 57 of file G4gsdvt2.cc.

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

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 57 of file G4gsdvx.cc.

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

Referenced by PG4gsdvx().

◆ PG4gsdvx()

void PG4gsdvx ( G4String tokens)

Definition at line 39 of file G4gsdvx.cc.

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

Referenced by G3CLEval().