Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
pyG4Polyhedra Namespace Reference

Functions

G4Polyhedraf1_CreatePolyhedra (const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numZPlanes, const std::vector< G4double > &zPlane, const std::vector< G4double > &rInner, const std::vector< G4double > &rOuter)
 
G4Polyhedraf2_CreatePolyhedra (const G4String &name, G4double phiStart, G4double phiTotal, G4int numSide, G4int numRZ, const std::vector< G4double > &r, const std::vector< G4double > &z)
 

Function Documentation

G4Polyhedra* pyG4Polyhedra::f1_CreatePolyhedra ( const G4String name,
G4double  phiStart,
G4double  phiTotal,
G4int  numSide,
G4int  numZPlanes,
const std::vector< G4double > &  zPlane,
const std::vector< G4double > &  rInner,
const std::vector< G4double > &  rOuter 
)

Definition at line 44 of file pyG4Polyhedra.cc.

Referenced by export_G4Polyhedra().

50 {
51  G4double zlist[numZPlanes];
52  G4double r0list[numZPlanes];
53  G4double r1list[numZPlanes];
54 
55  for (G4int i=0; i< numZPlanes; i++) {
56  zlist[i]= zPlane[i];
57  r0list[i]= rInner[i];
58  r1list[i]= rOuter[i];
59  }
60 
61  return new G4Polyhedra(name, phiStart, phiTotal, numSide, numZPlanes,
62  zlist, r0list, r1list);
63 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76
G4Polyhedra* pyG4Polyhedra::f2_CreatePolyhedra ( const G4String name,
G4double  phiStart,
G4double  phiTotal,
G4int  numSide,
G4int  numRZ,
const std::vector< G4double > &  r,
const std::vector< G4double > &  z 
)

Definition at line 66 of file pyG4Polyhedra.cc.

Referenced by export_G4Polyhedra().

71 {
72  G4double zlist[numRZ];
73  G4double rlist[numRZ];
74 
75  for (G4int i=0; i< numRZ; i++) {
76  zlist[i]= z[i];
77  rlist[i]= r[i];
78  }
79 
80  return new G4Polyhedra(name, phiStart, phiTotal, numSide, numRZ,
81  rlist, zlist);
82 
83 }
G4double z
Definition: TRTMaterials.hh:39
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76