Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4gsdvx.cc File Reference
#include "globals.hh"
#include "G3toG4.hh"
Include dependency graph for G4gsdvx.cc:

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

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 
70  G4CreateCloneVTEWithDivision(vname, mvte,
71  kDvn2, ndiv, iaxis, numed, c0, 0.);
72  }
73 }
G3VolTableEntry * GetVTE(const G4String &Vname)
Definition: G3VolTable.cc:54
void G4CreateCloneVTEWithDivision(G4String vname, G3VolTableEntry *mvte, G3DivType divType, G4int nofDivisions, G4int iaxis, G4int, G4double c0, G4double step)
Definition: G4gsdvn.cc:52
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G3G4DLL_API G3VolTable G3Vol
Definition: clparse.cc:54

Here is the call graph for this function:

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 
72  G4CreateCloneVTEWithDivision(vname, mvte,
73  kDvt2, ndvmx, iaxis, numed, c0, step);
74  }
75 }
G3VolTableEntry * GetVTE(const G4String &Vname)
Definition: G3VolTable.cc:54
void G4CreateCloneVTEWithDivision(G4String vname, G3VolTableEntry *mvte, G3DivType divType, G4int nofDivisions, G4int iaxis, G4int, G4double c0, G4double step)
Definition: G4gsdvn.cc:52
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
G3G4DLL_API G3VolTable G3Vol
Definition: clparse.cc:54

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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 G4double Rpar[1000]
Definition: clparse.cc:67
const XML_Char * name
Definition: expat.h:151
void G3fillParams(G4String *tokens, const char *ptypes)
Definition: clparse.cc:219
int G4int
Definition: G4Types.hh:78
void G4gsdvx(G4String name, G4String moth, G4int ndiv, G4int iaxis, G4double Step, G4double c0, G4int numed, G4int ndvmx)
Definition: G4gsdvx.cc:58
G3G4DLL_API G4String Spar[1000]
Definition: clparse.cc:68
G3G4DLL_API G4int Ipar[1000]
Definition: clparse.cc:66
double G4double
Definition: G4Types.hh:76
#define PTgsdvx
Definition: G3toG4.hh:59

Here is the call graph for this function:

Here is the caller graph for this function: