Message: RE: Need help with tracking Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Need help with tracking 

Forum: Event and Track Management
Re: None Need help with tracking (Adam)
Re: None Re: Need help with tracking (Adam)
Date: 31 May, 2007
From: Makoto Asai <Makoto Asai>

> G4VProcess* aProcess = aTrack->GetCreatorProcess();
> 
> The error I'm getting is:
> 
> src/ExN02SteppingAction.cc:62: error: invalid conversion from `const
>  G4VProcess*' to `G4VProcess*'

As your compiler says, you are getting the const pointer.
Thus, your code should be

const G4VProcess* aProcess = aTrack->GetCreatorProcess();

Also, note that you will get a null pointer if the track is a primary.


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

 Add Message Add Message
to: "RE: Need help with tracking"

 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 ]