Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyG4Polycone Namespace Reference

Functions

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

Function Documentation

G4Polycone* pyG4Polycone::f1_CreatePolycone ( const G4String name,
G4double  phiStart,
G4double  phiTotal,
G4int  numZPlanes,
const std::vector< G4double > &  zPlane,
const std::vector< G4double > &  rInner,
const std::vector< G4double > &  rOuter 
)

Definition at line 44 of file pyG4Polycone.cc.

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 G4Polycone(name, phiStart, phiTotal, numZPlanes,
61  zlist, r0list, r1list);
62 }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function:

G4Polycone* pyG4Polycone::f2_CreatePolycone ( const G4String name,
G4double  phiStart,
G4double  phiTotal,
G4int  numRZ,
const std::vector< G4double > &  r,
const std::vector< G4double > &  z 
)

Definition at line 65 of file pyG4Polycone.cc.

69 {
70  G4double zlist[numRZ];
71  G4double rlist[numRZ];
72 
73  for (G4int i=0; i< numRZ; i++) {
74  rlist[i]= r[i];
75  zlist[i]= z[i];
76  }
77 
78  return new G4Polycone(name, phiStart, phiTotal, numRZ,
79  rlist, zlist);
80 
81 }
int G4int
Definition: G4Types.hh:78
tuple z
Definition: test.py:28
double G4double
Definition: G4Types.hh:76

Here is the caller graph for this function: