38 return (
G4int) parameterList.size();
44 parameterList.push_back(newParameter);
48void G4GDMLParameterisation::ComputeTransformation(
56void G4GDMLParameterisation::ComputeDimensions(
G4Box& box,
const G4int index,
65void G4GDMLParameterisation::ComputeDimensions(
G4Trd& trd,
const G4int index,
76void G4GDMLParameterisation::ComputeDimensions(
G4Trap& trap,
const G4int index,
80 parameterList[index].dimension[1],
81 parameterList[index].dimension[2],
82 parameterList[index].dimension[3],
83 parameterList[index].dimension[4],
84 parameterList[index].dimension[5],
85 parameterList[index].dimension[6],
86 parameterList[index].dimension[7],
87 parameterList[index].dimension[8],
88 parameterList[index].dimension[9],
89 parameterList[index].dimension[10]);
93void G4GDMLParameterisation::ComputeDimensions(
G4Tubs& tubs,
const G4int index,
104void G4GDMLParameterisation::ComputeDimensions(
G4Cons& cons,
const G4int index,
117void G4GDMLParameterisation::ComputeDimensions(
G4Sphere& sphere,
130void G4GDMLParameterisation::ComputeDimensions(
G4Orb& orb,
const G4int index,
133 orb.
SetRadius(parameterList[index].dimension[0]);
137void G4GDMLParameterisation::ComputeDimensions(
G4Ellipsoid& ellipsoid,
141 ellipsoid.
SetSemiAxis(parameterList[index].dimension[0],
142 parameterList[index].dimension[1],
143 parameterList[index].dimension[2]);
144 ellipsoid.
SetZCuts(parameterList[index].dimension[3],
145 parameterList[index].dimension[4]);
149void G4GDMLParameterisation::ComputeDimensions(
G4Torus& torus,
154 parameterList[index].dimension[1],
155 parameterList[index].dimension[2],
156 parameterList[index].dimension[3],
157 parameterList[index].dimension[4]);
161void G4GDMLParameterisation::ComputeDimensions(
G4Para& para,
const G4int index,
167 para.
SetAlpha(parameterList[index].dimension[3]);
168 para.
SetTanAlpha(std::tan(parameterList[index].dimension[3]));
170 parameterList[index].dimension[5]);
174void G4GDMLParameterisation::ComputeDimensions(
G4Hype& hype,
const G4int index,
185void G4GDMLParameterisation::ComputeDimensions(
G4Polycone& pcone,
190 origparam.Start_angle = parameterList[index].dimension[0];
191 origparam.Opening_angle = parameterList[index].dimension[1];
192 origparam.Num_z_planes = (
G4int) parameterList[index].dimension[2];
193 G4int nZplanes = origparam.Num_z_planes;
195 for(
G4int ii = 0; ii < nZplanes; ++ii)
197 origparam.Rmin[ii] = parameterList[index].dimension[3 + ii * 3];
198 origparam.Rmax[ii] = parameterList[index].dimension[4 + ii * 3];
199 origparam.Z_values[ii] = parameterList[index].dimension[5 + ii * 3];
207void G4GDMLParameterisation::ComputeDimensions(
G4Polyhedra& polyhedra,
212 origparam.Start_angle = parameterList[index].dimension[0];
213 origparam.Opening_angle = parameterList[index].dimension[1];
214 origparam.Num_z_planes = (
G4int) parameterList[index].dimension[2];
215 origparam.numSide = (
G4int) parameterList[index].dimension[3];
217 G4int nZplanes = origparam.Num_z_planes;
219 for(
G4int ii = 0; ii < nZplanes; ++ii)
221 origparam.Rmin[ii] = parameterList[index].dimension[4 + ii * 3];
222 origparam.Rmax[ii] = parameterList[index].dimension[5 + ii * 3];
223 origparam.Z_values[ii] = parameterList[index].dimension[6 + ii * 3];
void SetZHalfLength(G4double dz)
void SetYHalfLength(G4double dy)
void SetXHalfLength(G4double dx)
void SetInnerRadiusPlusZ(G4double Rmin2)
void SetZHalfLength(G4double newDz)
void SetStartPhiAngle(G4double newSPhi, G4bool trig=true)
void SetOuterRadiusMinusZ(G4double Rmax1)
void SetOuterRadiusPlusZ(G4double Rmax2)
void SetDeltaPhiAngle(G4double newDPhi)
void SetInnerRadiusMinusZ(G4double Rmin1)
void SetZCuts(G4double newzBottomCut, G4double newzTopCut)
void SetSemiAxis(G4double x, G4double y, G4double z)
void AddParameter(const PARAMETER &)
void SetOuterStereo(G4double newOSte)
void SetOuterRadius(G4double newORad)
void SetZHalfLength(G4double newHLZ)
void SetInnerStereo(G4double newISte)
void SetInnerRadius(G4double newIRad)
void SetRadius(G4double newRmax)
void SetYHalfLength(G4double val)
void SetTanAlpha(G4double val)
void SetThetaAndPhi(double pTheta, double pPhi)
void SetZHalfLength(G4double val)
void SetXHalfLength(G4double val)
void SetAlpha(G4double alpha)
void SetOriginalParameters(G4PolyconeHistorical *pars)
G4PolyconeHistorical * GetOriginalParameters() const
void SetOriginalParameters(G4PolyhedraHistorical *pars)
G4PolyhedraHistorical * GetOriginalParameters() const
void SetDeltaPhiAngle(G4double newDphi)
void SetStartThetaAngle(G4double newSTheta)
void SetOuterRadius(G4double newRmax)
void SetDeltaThetaAngle(G4double newDTheta)
void SetInnerRadius(G4double newRMin)
void SetStartPhiAngle(G4double newSphi, G4bool trig=true)
void SetAllParameters(G4double pRmin, G4double pRmax, G4double pRtor, G4double pSPhi, G4double pDPhi)
void SetAllParameters(G4double pDz, G4double pTheta, G4double pPhi, G4double pDy1, G4double pDx1, G4double pDx2, G4double pAlp1, G4double pDy2, G4double pDx3, G4double pDx4, G4double pAlp2)
void SetYHalfLength2(G4double val)
void SetXHalfLength1(G4double val)
void SetYHalfLength1(G4double val)
void SetXHalfLength2(G4double val)
void SetZHalfLength(G4double val)
void SetDeltaPhiAngle(G4double newDPhi)
void SetStartPhiAngle(G4double newSPhi, G4bool trig=true)
void SetInnerRadius(G4double newRMin)
void SetOuterRadius(G4double newRMax)
void SetZHalfLength(G4double newDz)
void SetTranslation(const G4ThreeVector &v)
void SetRotation(G4RotationMatrix *)