Message: Local to Global... again Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Local to Global... again 

Keywords: geometry local to global G4VPhysicalVolume G4LogicalVolume G4Navigator
Forum: Geometry
Date: 30 Mar, 2007
From: Nathaniel Tagg <>

Hello, I've been reading threads 616 and 287. I confess that I am a Geant newbie.

My specific application: I am creating a geometry (using the VGM package) and I wish to attach local magnetic fields to specific volumes (magnets). The Field classes allow only global coordinates, so I need to actually go from local to global coordinates. (I also want to find the global vector corresponding to the local Z-axis.)

After constructing the detector, I have a pointer to the volume that I want to navigate from.

Gabriele's earlier posts, in 287, suggested that one uses a 'custom G4Navigtor' to 'scan for a global point in the local volume'. How does one do that?

I'm constructing a beam line geometry with some fairly small magnets inside a large world volume.. surely I don't have to do a trial-and-error search of every global grid point just to find where one of my magnets... do I?

Thanks for any help with this,


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

1 None: Re: Local to Global... again   (Tom Roberts - 30 Mar, 2007)
1 None: Re: Local to Global... again   (Nathaniel Tagg - 30 Mar, 2007)
3 None: Re: Local to Global... again   (John Allison - 31 Mar, 2007)
1 None: Re: Local to Global... again   (Nathaniel Tagg - 02 Apr, 2007)
1 None: Re: Local to Global... again   (Vladimir IVANTCHENKO - 02 Apr, 2007)
... 2 Message(s)
2 Feedback: Re: Local to Global... again   (Gabriele Cosmo - 05 Apr, 2007)
 Add Message Add Message
to: "Local to Global... again"

 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 ]