G4gstmed.cc File Reference

#include "G4SystemOfUnits.hh"
#include "G4LogicalVolume.hh"
#include "G3toG4.hh"
#include "G3MatTable.hh"
#include "G3MedTable.hh"
#include "G4UserLimits.hh"
#include "G4MagneticField.hh"
#include "G4Material.hh"

Go to the source code of this file.

Functions

void PG4gstmed (G4String *tokens)
void G4gstmed (G4int itmed, G4String, G4int nmat, G4int isvol, G4int, G4double, G4double, G4double stemax, G4double, G4double, G4double, G4double *, G4int useG3TMLimits)


Function Documentation

void G4gstmed ( G4int  itmed,
G4String  ,
G4int  nmat,
G4int  isvol,
G4int  ,
G4double  ,
G4double  ,
G4double  stemax,
G4double  ,
G4double  ,
G4double  ,
G4double ,
G4int  useG3TMLimits 
)

Definition at line 68 of file G4gstmed.cc.

References G3Mat, G3Med, G3MatTable::get(), G3MedTable::put(), and G4UserLimits::SetMaxAllowedStep().

Referenced by PG4gstmed().

00072 {
00073     // get the pointer to material nmat
00074     G4Material* material = G3Mat.get(nmat);
00075 
00076     // NB. there is the possibility for redundancy in the mag field
00077     //     and user limits objects. Who cares.
00078     // Generate the mag field object
00079     // $$$ G4MagneticField* field = new G4MagneticField(ifield, fieldm, tmaxfd);
00080     G4MagneticField* field = 0;
00081 
00082     // Generate the user limits object
00083     // !!! only "stemax" has its equivalent in G4
00084 
00085     G4UserLimits* limits = 0;
00086     if (useG3TMLimits) {
00087       limits = new G4UserLimits();
00088       limits->SetMaxAllowedStep(stemax*cm);
00089       // limits->SetG3DefaultCuts();
00090          // this is arranged globally by physics manager
00091     }
00092 
00093     // Store this medium in the G3Med structure
00094     G3Med.put(itmed, material, field, limits, isvol);
00095 }

void PG4gstmed ( G4String tokens  ) 

Definition at line 44 of file G4gstmed.cc.

References G3fillParams(), G4gstmed(), Ipar, PTgstmed, Rpar, and Spar.

Referenced by G3CLEval().

00045 {
00046     // fill the parameter containers
00047     G3fillParams(tokens,PTgstmed);
00048 
00049     // interpret the parameters
00050     G4String name = Spar[0];
00051     G4int itmed = Ipar[0];
00052     G4int nmat = Ipar[1];
00053     G4int isvol = Ipar[2];
00054     G4int ifield = Ipar[3];
00055     G4int nwbuf = Ipar[4];
00056     G4double fieldm = Rpar[0];
00057     G4double tmaxfd = Rpar[1];
00058     G4double stemax = Rpar[2];
00059     G4double deemax = Rpar[3];
00060     G4double epsil = Rpar[4];
00061     G4double stmin = Rpar[5];
00062     G4double *ubuf = &Rpar[6];
00063 
00064     G4gstmed(itmed,name,nmat,isvol,ifield,fieldm,tmaxfd,stemax,
00065              deemax,epsil,stmin,ubuf,nwbuf);
00066 }


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