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

Referenced by export_G4Polycone().

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

Referenced by export_G4Polycone().

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