Message: Volume name inside magnetic field class Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Volume name inside magnetic field class 

Forum: Fields: Magnetic and Otherwise
Date: 10 Aug, 2004
From: Zarko Pavlovic <zarko@mail.hep.utexas.edu>

Hi, I want to find the volume in which the particle is in from within the magnetic field class, so I can find how far from the boundary is the particle. My magnetic field depends on that. When I try to do that using:

G4ThreeVector pos(Point[0],Point[1],Point[2]);

G4Navigator*  theNavigator=G4TransportationManager::GetTransportationManager()->
             GetNavigatorForTracking();

G4VPhysicalVolume* current_pos_Vol=theNavigator->LocateGlobalPointAndSetup(pos);

something is not working properly. For example I have the step size limit set to some small value inside the same volumes that have field attached. With the above code inserted I see that my step size limit is not restricted only to the volumes that it is assigned to anymore. Also, if I output the volume name from the stepping action class and from magnetic field class they don't match. I consider only the first volume outputed from magnetic class after the step output. Is there any other way I could find the distance from boundaries? Thanks,

Zarko

PS I'm using g3tog4 to build geometry.

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

 Add Message Add Message
to: "Volume name inside magnetic field class"

 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 ]