Message: G4Trap Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4Trap 

Forum: Geometry
Date: 06 Mar, 2014
From: sergi <sergi>

Dear G4Users,

I want to build a triangular prism (a triangle at the face +pDz and the same trinagle at -pDz). For this I have used G4Trap with:

pTheta = pPhi = 0

pDx2 = pDx4 = 0

pDx1 = pDx3 = (half base of my triangle)

pDy1 = pDy2 = (half height of my triangle)

With this I got an error, supposedly because pDx2 and pDx4 could not be 0. I also have tried to put these values next to zero (for example 0.001) and the error didn't appear.

My two questions are:

- Is it possible to build my triangular prism with pDx2 and pDx4 equal to 0, or with other G4class?

- If I build the triangular prism with G4Trap (with pDx2 = pDx4 = 0.001 ) how can I know which is exactly the center of my triangle? In order to move it accurately

Thank you very much.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: G4Trap   (Tom Roberts - 06 Mar, 2014)
 Add Message Add Message
to: "G4Trap"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]