#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 | |
G3VolTableEntry * | G4CreateVTE (G4String vname, G4String shape, G4int nmed, G4double Rpar[], G4int npar) |
G3VolTableEntry* G4CreateVTE | ( | G4String | vname, | |
G4String | shape, | |||
G4int | nmed, | |||
G4double | Rpar[], | |||
G4int | npar | |||
) |
Definition at line 51 of file G4gsvolu.cc.
References G3toG4MakeSolid(), G3Vol, and G3VolTable::PutVTE().
Referenced by G4gsvolu().
00053 { 00054 // create the solid 00055 G4bool hasNegPars; 00056 G4bool deferred; 00057 G4bool okAxis[3]; 00058 G4VSolid* solid 00059 = G3toG4MakeSolid(vname, shape, rpar, npar, hasNegPars, deferred, okAxis); 00060 00061 // if solid has been deferred 00062 // VTE is created with hasNegPars = true 00063 if (deferred) hasNegPars = true; 00064 00065 // create VTE 00066 G3VolTableEntry* vte 00067 = new G3VolTableEntry(vname, shape, rpar, npar, nmed, solid, hasNegPars); 00068 G3Vol.PutVTE(vte); 00069 00070 return vte; 00071 }