Message: Determining extent of an arbitrary G4LogicalVolume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Determining extent of an arbitrary G4LogicalVolume 

Forum: Geometry
Date: 12 May, 2009
From: Kareem Kazkaz <Kareem Kazkaz>

Hello everyone.

I would like to be able to figure out the maximum extent of a logical volume. Put another way, I would like to know the radius of the smallest sphere that will completely contain any given logical volume.

Has anybody addressed doing something like this already? I know about G4VSolid::CalculateExtent(), but I would like a method that I can apply to any arbitrary logical volume.

If nobody's done anything like this before, here's an approach I was thinking of. Start with a sphere of, say, 1 meter, and place the logical volume at the center of that sphere. If it overlaps, double the radius of the sphere. If it doesn't overlap, halve the radius. I could use a binary search pattern until the radius of the sphere isn't changing by more than a set tolerance.

That said, if anybody's actually already coded up something like this, I'd love to know about it.

Thanks a bunch.

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

1 Question: Re: Determining extent of an arbitrary G4LogicalVolume   (Kareem Kazkaz - 13 May, 2009)
(_ None: Re: Determining extent of an arbitrary G4LogicalVolume   (John Allison - 14 May, 2009)
 Add Message Add Message
to: "Determining extent of an arbitrary G4LogicalVolume"

 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 ]