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 wrote:

> *** Discussion title: Event and Track Management
> Email replies to must include:
>   In-Reply-To: <"/eventtrackmanage/128">
>   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

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()

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


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 ]