Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G3Division.cc File Reference
#include <assert.h>
#include "G3Division.hh"
#include "G3VolTableEntry.hh"
#include "G3toG4MakeSolid.hh"
#include "G4Para.hh"
#include "G3Pos.hh"
#include "G4SystemOfUnits.hh"
#include "G4LogicalVolume.hh"
#include "G4VPhysicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4PVReplica.hh"
#include "G4ReflectionFactory.hh"

Go to the source code of this file.

Functions

G3VolTableEntryG4CreateVTE (G4String vname, G4String shape, G4int nmed, G4double Rpar[], G4int npar)
 

Function Documentation

◆ G4CreateVTE()

G3VolTableEntry * G4CreateVTE ( G4String  vname,
G4String  shape,
G4int  nmed,
G4double  Rpar[],
G4int  npar 
)

Definition at line 50 of file G4gsvolu.cc.

52{
53 // create the solid
54 G4bool hasNegPars;
55 G4bool deferred;
56 G4bool okAxis[3];
57 G4VSolid* solid
58 = G3toG4MakeSolid(vname, shape, rpar, npar, hasNegPars, deferred, okAxis);
59
60 // if solid has been deferred
61 // VTE is created with hasNegPars = true
62 if (deferred) hasNegPars = true;
63
64 // create VTE
65 G3VolTableEntry* vte
66 = new G3VolTableEntry(vname, shape, rpar, npar, nmed, solid, hasNegPars);
67 G3Vol.PutVTE(vte);
68
69 return vte;
70}
G3G4DLL_API G3VolTable G3Vol
Definition: clparse.cc:53
G4VSolid * G3toG4MakeSolid(const G4String &vname, const G4String &shape, const G4double *Rpar, const G4int npar, G4bool &NegVolPars, G4bool &Deferred, G4bool *OKAxis)
bool G4bool
Definition: G4Types.hh:86
G3VolTableEntry * PutVTE(G3VolTableEntry *aVTE)
Definition: G3VolTable.cc:75

Referenced by G4gsvolu().