Message: How to define simple solid cone? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to define simple solid cone? 

Keywords: how to create a solid cone
Forum: Geometry
Date: 19 Aug, 2007
From: Brad Oborn <>

Hi, sorry if this is a very stupid question - but how can I define a very simple solid cone?  If I use G4Cons and wish to make a pointed end (to make a perfect cone then I get run-time errors (because I have set the two radii to zero):
ERROR - G4Cons()::G4Cons(): layer1
        Invalide values for radii ! -         pRmin1 = 0, pRmin2 = 0, pRmax1 = 0, pRmax2 = 0.0635

*** G4Exception : InvalidSetup
      issued by : G4Cons::G4Cons()
Invalid radii.
*** Fatal Exception *** core dump ***

*** G4Exception: Aborting execution ***


I notice that in the file: ....examples/advanced/medical_linac/src/ this problem is worked around by setting one radius to a very small number:

  G4double  layer1Rmax1 = 0.00000001*cm;


Is this a limit of G4Cons?? Is there any other way of defining a simple solid cone??

Thanks, Brad.

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

1 None: Re: How to define simple solid cone?   (Vladimir Grichine - 21 Aug, 2007)
 Add Message Add Message
to: "How to define simple solid cone?"

 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 ]