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

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

Definition at line 56 of file G4gsdvn2.cc.

References FatalException, G3Vol, G4CreateCloneVTEWithDivision(), G4Exception(), G3VolTable::GetVTE(), and kDvn2.

00058 {
00059   // find mother VTE
00060   G3VolTableEntry* mvte = G3Vol.GetVTE(vmoth);
00061   if (mvte == 0) {
00062     G4String text = "G4gsdvn2:'" + vmoth + "' has no VolTableEntry";
00063     G4Exception("G4gsdvn2()", "G3toG40025", FatalException, text);
00064     return;
00065   }    
00066   else {
00067     // a new vte clone copy with division is created
00068     // for each mother (clone copy)
00069     
00070     G4CreateCloneVTEWithDivision(vname, mvte, 
00071                                   kDvn2, ndiv, iaxis, numed, c0, 0.); 
00072   }  
00073 }

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

Definition at line 58 of file G4gsdvt2.cc.

References FatalException, G3Vol, G4CreateCloneVTEWithDivision(), G4Exception(), G3VolTable::GetVTE(), and kDvt2.

00060 {
00061   // find mother VTE
00062   G3VolTableEntry* mvte = G3Vol.GetVTE(vmoth);
00063   if (mvte == 0) {
00064     G4String text = "G4gsdvt2:'" + vmoth + "' has no VolTableEntry";
00065     G4Exception("G4gsdvt2()", "G3toG40015", FatalException, text);
00066     return;
00067   }    
00068   else {
00069     // a new vte clone copy with division is created
00070     // for each mother (clone copy)
00071     
00072     G4CreateCloneVTEWithDivision(vname, mvte, 
00073                                   kDvt2, ndvmx, iaxis, numed, c0, step); 
00074   }  
00075 }

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.

References G4gsdvn2(), and G4gsdvt2().

Referenced by PG4gsdvx().

00060 {
00061     // pass to gsdvn2 or gsdvt2
00062     if (Step > 0.) {
00063         G4gsdvt2(name,moth,Step,iaxis,c0,numed,ndvmx);
00064     } else if (ndiv > 0) {
00065         G4gsdvn2(name,moth,ndiv,iaxis,c0,numed);
00066     }
00067 }

void PG4gsdvx ( G4String tokens  ) 

Definition at line 40 of file G4gsdvx.cc.

References G3fillParams(), G4gsdvx(), Ipar, PTgsdvx, Rpar, and Spar.

Referenced by G3CLEval().

00041 {
00042     // fill the parameter containers
00043     G3fillParams(tokens,PTgsdvx);
00044 
00045     // interpret the parameters
00046     G4String name = Spar[0];
00047     G4String moth = Spar[1];
00048     G4int ndiv = Ipar[0];
00049     G4int iaxis = Ipar[1];
00050     G4int numed = Ipar[2];
00051     G4int ndvmx = Ipar[3];
00052     G4double Step = Rpar[0];
00053     G4double c0 = Rpar[1];
00054 
00055     G4gsdvx(name,moth,ndiv,iaxis,Step,c0,numed,ndvmx);
00056 }


Generated on Mon May 27 17:50:46 2013 for Geant4 by  doxygen 1.4.7