Message: Strange behavior of G4Polycone Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Strange behavior of G4Polycone 

Keywords: G4Polycone overlapping volume
Forum: Geometry
Date: 26 Apr, 2006
From: Kazuyoshi Furutaka <Kazuyoshi Furutaka>

Hi all,

I'm using Geant4.8.0.p01.

By applying the following modification to examples/novice/N02,
I got a warning for overlapping volume:
Checking overlaps for volume PolyconePhys ...
WARNING - G4PVPlacement::CheckOverlaps()
          Overlap is detected for volume PolyconePhys
          with volume Tracker
          at point (-28.7402,124.627,-2300)

*** G4Exception : InvalidSetup
      issued by : G4PVPlacement::CheckOverlaps()
Overlap with volume already placed !
*** This is just a warning message.

It seems there's no overlapping, from a visual inspection.
My intention is to place a 20-cm height Polycone outside
the tracker region.

Is my usage of G4Polycone wrong?

Thanks in advance.


Kazuyoshi

--- ExN02DetectorConstruction.cc.orig   2005-05-31 01:51:43.000000000 +0900
+++ ExN02DetectorConstruction.cc        2006-04-26 11:01:16.000000000 +0900
@@ -35,6 +35,7 @@

 #include "G4Material.hh"
 #include "G4Box.hh"
+#include "G4Polycone.hh"
 #include "G4LogicalVolume.hh"
 #include "G4PVPlacement.hh"
 #include "G4PVParameterised.hh"
@@ -211,6 +212,20 @@
          << "The chambers are " << ChamberWidth/mm << " mm of "
          << ChamberMater->GetName() << "\n The distance between chamber is "
         << ChamberSpacing/cm << " cm" << G4endl;
+
+  const G4double zz[] = {  0.0*cm,  10.0*cm, 20.0*cm };
+  const G4double ri[] = {  0.0*cm,  10.0*cm, 10.0*cm };
+  const G4double ro[] = { 20.0*cm,  20.0*cm, 20.0*cm };
+  G4Polycone* polyconeSolid =
+    new G4Polycone("PolyconeSolid", 0.0, 360.0*deg, 3, zz, ri, ro );
+  G4LogicalVolume* polyconeLogic =
+    new G4LogicalVolume(polyconeSolid, ChamberMater, "PolyconeLogic",0,0,0);
+  G4VPhysicalVolume* polyconePhys;
+  polyconePhys = new G4PVPlacement(0,
+                                  G4ThreeVector(0.,0.,250.*cm),
+                                  polyconeLogic, "PolyconePhys",
+                                  logicWorld,
+                                  false,0,true);

   //------------------------------------------------
   // Sensitive detectors

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

 Add Message Add Message
to: "Strange behavior of G4Polycone"

 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 ]