LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 43 of file pyG4Polyhedra.cc.

Referenced by export_G4Polyhedra().

49 {
50  G4double zlist[numZPlanes];
51  G4double r0list[numZPlanes];
52  G4double r1list[numZPlanes];
53 
54  for (G4int i=0; i< numZPlanes; i++) {
55  zlist[i]= zPlane[i];
56  r0list[i]= rInner[i];
57  r1list[i]= rOuter[i];
58  }
59 
60  return new G4Polyhedra(name, phiStart, phiTotal, numSide, numZPlanes,
61  zlist, r0list, r1list);
62 }
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 65 of file pyG4Polyhedra.cc.

Referenced by export_G4Polyhedra().

70 {
71  G4double zlist[numRZ];
72  G4double rlist[numRZ];
73 
74  for (G4int i=0; i< numRZ; i++) {
75  zlist[i]= z[i];
76  rlist[i]= r[i];
77  }
78 
79  return new G4Polyhedra(name, phiStart, phiTotal, numSide, numRZ,
80  rlist, zlist);
81 
82 }