Message: Re: Positron annihilation coordinates Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Positron annihilation coordinates 

Forum: Event and Track Management
Re: Question Positron annihilation coordinates (Ottavia)
Re: Feedback Re: Positron annihilation coordinates (Gumplinger Peter)
Date: 12 Mar, 2013
From: Ottavia <Ottavia>

Hi Peter,

thank you very much for your suggestions.

I tried to do as you told, in the StackingAction I've put:

if (track->GetCreatorProcess() != 0){
 G4String name = track->GetCreatorProcess()-> GetProcessName();

 G4ThreeVector position;

 if(name == "annihil" ){
   position = track->GetPosition();}

but unfortunately the histogram I get has the same shape of the one I used to obtain before.

Regarding the number of entries I must say that it doesn't match the number of events, for instance: if I ask for 1000 events, the total number of entries (that is the number of annihilation photons that therefore should be 2000) I get 1936.

I even tried to use GetVertexPosition instead of GetPosition but I always get (0,0,0). Shouldn't it actually give me the position of the vertex where the track was originated?

Thank you for your help.


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

1 Note: Re: Positron annihilation coordinates   (Ottavia - 12 Mar, 2013)
2 Feedback: Re: Positron annihilation coordinates   (Gumplinger Peter - 12 Mar, 2013)
3 None: Re: Positron annihilation coordinates   (michel maire - 13 Mar, 2013)
 Add Message Add Message
to: "Re: Positron annihilation coordinates"

 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 ]