Message: Accessing PostStepPoint from ClassifyNewTrack() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Accessing PostStepPoint from ClassifyNewTrack() 

Forum: Event and Track Management
Date: 01 Feb, 2006
From: Sara Vecchio <sara.vecchio@pi.infn.it>

Why, if in the StackingAction I change from

G4ThreeVector position = track->GetPosition();

to

G4ThreeVector position = track->GetStep()->GetPostStepPoint()->GetPosition();

I get segmentation violation at run time? 
I have read of a similar problem relating to killing the track
but I just want to extract information and I have still not understood
 how to solve it in my case

*** Break *** segmentation violation
 Generating stack trace...
/usr/bin/addr2line: 'DoPET': No such file
 0x0830d442 in G4StackManager::PushOneTrack(G4Track*, G4VTrajectory*) + 0xb2 from DoPET

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

1 None: Re: Accessing PostStepPoint from ClassifyNewTrack()   (Vladimir IVANTCHENKO - 01 Feb, 2006)
 Add Message Add Message
to: "Accessing PostStepPoint from ClassifyNewTrack()"

 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 ]