Message: Re: Problem with G4Sphere Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Problem with G4Sphere 

Forum: Geometry
Re: None Problem with G4Sphere (Adil MACHMACH)
Re: None Re: Problem with G4Sphere (John Apostolakis)
Date: 23 Aug, 2010
From: John Apostolakis <John Apostolakis>

Dear Adil,

Your problem is in placing the "Iron" volume inside the "PE" volume.

>  G4VPhysicalVolume * Sphere_Iron_phys
>   = new  
> G4PVPlacement 
> (0,G4ThreeVector(),Sphere_Iron_log,"Sph_Iron_p",                  
> Sphere_PE_log,false,0);


In a general sense the iron volume seems inside the outer (and inner)  
surface of the PE sphere.

But because the PE sphere volume extends between 5 and 10 cm in R:
   G4double R_min_PE= 5.*cm;
   G4double R_max_PE= 10.*cm;
this means that, as a volume, the "Iron" volume is not part of it - ie  
its points are not inside the PE volume:
   G4double R_min_Iron= 0.*cm;
   G4double R_max_Iron= 4.95*cm;

In your case you need to make the experimental hall the parent volume  
of the Iron volume.

( If you had chosen R_min_PE = 0. * cm;  then 'inside' was correct. )

Best regards,
  John Apostolakis

 Add Message Add Message
to: "Re: Problem with G4Sphere"

 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 ]