LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
pyG4Polyhedra Namespace Reference

Functions

G4Polyhedra * 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)
 
G4Polyhedra * f2_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 }
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 }