Message: Re: Turn off overlap warning Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Turn off overlap warning 

Forum: Geometry
Re: Idea Turn off overlap warning (Kareem Kazkaz)
Date: 28 Aug, 2009
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Kareem,

> I would like to request a new feature for the next version of GEANT. I
> would like to be able to turn off the warning when I check for
> overlapping volumes. Right now, I can call
> G4PVPlacement::CheckOverlaps() and get a "true" return value, but
> there's no way to turn off the warning, even with verbosity set to 0. A
> simple "if( verbose )" flag would work great. I tried to attach an
> appropriately-modified file, but for some reason I'm not allowed to
> upload files. I'll post the file as a comment to this thread.
> 
> I am trying to determine the smallest bounding volume of any arbitrary
> shape, and as such I purposely create volumes that are too small. This
> results in many warning messages, which alarms other people who use the
> simulation.

the method CheckOverlaps() is meant to inform in detail about overlaps
in the geometry for debugging purposes. By running it in non-verbose
mode it will just flag when an overlap is found and run silently otherwise.

We could introduce an additional level of verbosity to satisfy your needs,
however, let me point out that the technique you use for determining the
smallest bounding box is certainly not efficient.
It would be more appropriate to compute (with some coding) the extent
of the solid, perhaps by adopting the CalculateExtent() method that each
one of the shapes already provides...

Cheers, Gabriele

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

1 Question: Re: Turn off overlap warning   (Kareem Kazkaz - 28 Aug, 2009)
(_ Note: Re: Turn off overlap warning   (Kareem Kazkaz - 28 Aug, 2009)
(_ None: Re: Turn off overlap warning   (John Allison - 29 Aug, 2009)
 Add Message Add Message
to: "Re: Turn off overlap warning"

 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 ]