Message: Re: G4Navigator::ComputeLocalPoint is now protected Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4Navigator::ComputeLocalPoint is now protected 

Forum: Event and Track Management
Re: None G4Navigator::ComputeLocalPoint is now protected
Date: 06 Jan, 2004
From: Vladimir Ivanchenko <Vladimir Ivanchenko>

On Tue, 6 Jan 2004 incerti@cenbg.in2p3.fr wrote:

> *** Discussion title: Event and Track Management
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/eventtrackmanage/128"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Dear all,
> 
> I have been using widely the ComputeLocalPoint method of G4Navigator in
> my previous G4 codes to compute magnetic fields, but now in the new
> version of G4, this method is protected. Does anyone know where to find
> an example of the use of this or an equivalent method now that it is
> protected ?
> 
> Thanks for your help, sebastien
> 
Hi,

I use following method:

  // Transform points into local system
  G4StepPoint* prePoint = aStep->GetPreStepPoint();
  G4StepPoint* postPoint = aStep->GetPostStepPoint();
  G4ThreeVector p1 = prePoint->GetPosition();
  G4ThreeVector p2 = postPoint->GetPosition();

  const G4AffineTransform* trans = prePoint->GetTouchable()
        ->GetHistory()->GetPtrTopTransform();

  p1 = trans->TransformPoint(p1);
  p2 = trans->TransformPoint(p2);

VI


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

 Add Message Add Message
to: "Re: G4Navigator::ComputeLocalPoint is now protected"

 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 ]