Message: RE: information on the original primary particle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: information on the original primary particle 

Forum: Event and Track Management
Re: None information on the original primary particle (Eva)
Date: 19 Oct, 2007
From: Makoto Asai <Makoto Asai>

Hi,

Did you set your TrackInformation to G4Track?
Please refer /examples/extended/runAndEvent/RE01
for the use of G4VUserTrackInformation.

Makoto 

> -----Original Message-----
> From: Eva [mailto:evamaria.reillo@ciemat.es] 
> Sent: Friday, October 19, 2007 5:11 AM
> To: publichypernews
> Subject: information on the original primary particle
> 
> *** Discussion title: Event and Track Management
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/eventtrackmanage/724"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Hello, in my simulations i need information on the original primary
> particles, so i have implemented the G4VUserTrackInformation 
> as it is in
> http://geant4.slac.stanford.edu/Tips/event/1.html , but when i try to
> get the information , i get a segmentation fault. am i doing something
> wrong?
> 
> In my UserSteppingAction i have the following lines:
> 
> #include "T01TrackInformation.hh"
> .
> .
> .
>   T01TrackInformation* info = 
> (T01TrackInformation*)(aStep->GetTrack()->GetUserInformation());
>   G4cout << " Original Track ID " << 
> info->GetOriginalTrackID() << G4endl;
> 
> Thank you.
> 

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

 Add Message Add Message
to: "RE: information on the original primary particle"

 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 ]