LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pyG4Polycone Namespace Reference

Functions

G4Polycone * 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)
 
G4Polycone * f2_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.

Referenced by export_G4Polycone().

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 }
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.

Referenced by export_G4Polycone().

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 }