Message: Re: how to trace back a track Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: how to trace back a track 

Forum: Event and Track Management
Re: Question how to trace back a track (Maura E.M.)
Date: 27 Jul, 2016
From: Gumplinger Peter <Gumplinger Peter>

Dear Maura,
> I read your answer about photons created by Compton interactions
> "The photon after Compton process is not a secondary particle but the primary with reduced energy and changed direction"
> which compromises the feasibility of my project.
Since the photon is still a primary (e.g. it still has: aStep->GetTrack()->GetTrackID() == 1 && aStep->GetTrack()->GetParentID() == 0) you can identify it only by:

if (aStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL) {
   if (aStep->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName() == "compt") {

immediately after the ComptonScattering process. This is when you can put its properties into your Ntuple. At the same time, I would then immediately also kill it.


In this way, you won't get any second ComptonScattering happening to the photon. In addition, I'd also kill (in StackingAction) any and all secondary particles.

That should do it!

Best regards, Peter

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

1 Question: Re: how to trace back a track   (Maura E.M. - 28 Jul, 2016)
 Add Message Add Message
to: "Re: how to trace back a track"

 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 ]