Message: grid_test behaviour in geant4.9.0.p01 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question grid_test behaviour in geant4.9.0.p01 

Keywords: grid_test
Forum: Geometry
Date: 11 Oct, 2007
From: Gabriel Musat <>


I had a problem with the ILC simulation software Mokka, and I managed to reproduce it with novice example N04: My DetectorConstruction builds 2 nested G4Boxes that have borders in common, as follows:

  G4VSolid * calorimeter
    = new G4Box("calorimeter",100.0*mm,100.0*mm,100.0*mm);
  G4LogicalVolume * calorimeter_log
    = new G4LogicalVolume(calorimeter,Scinti,"calo_L",0,0,0);


  G4VSolid * caloLayer
    = new G4Box("caloLayer",50.0*mm,50.0*mm,50.0*mm);
  G4LogicalVolume * caloLayer_log
    = new G4LogicalVolume(caloLayer,Lead,"caloR_L",0,0,0);
  G4ThreeVector layerPos(50.0*mm,-50.0*mm,-50.0*mm);
  new G4PVPlacement(0,layerPos,caloLayer_log,"caloL_P",

With this geometry, when I run /geometry/test/grid_test true

I get a message saying that

GeomTest Error: Overshooting daughter volume
    The volume caloL_P[0] appears to extend outside the mother volume caloM_P[0]
    at the following points in global coordinates: (list truncated)
       length (cm)    ---------- start position (cm) -----------   ----------- end position (cm) ------------
                10                 0           -10           -10                0             0           -10
                10                 2           -10           -10                2             0           -10

This happens while compiling with geant4.9.0.p01 but not with geant4.8.3.

While looking at the above code, we can see that caloL_P is not outside its mother volume.

Did I do anything wrong here?

Thank you for your help!

Gabriel Musat (

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

1 None: Re: grid_test behaviour in geant4.9.0.p01   (Tatiana Nikitina - 16 Oct, 2007)
 Add Message Add Message
to: "grid_test behaviour in geant4.9.0.p01"

 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 ]