Message: Track Status doesn't work Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Track Status doesn't work 

Forum: Event and Track Management
Date: 25 Jul, 2017
From: Soman <Soman>


I need to know the track information just before the track is dead (particle is dead). I tried below codes but it didn't work, i.e. it didn't enter the if.


G4bool track_status = (aTrack.GetTrackStatus()== fStopAndKill);
 if (track_status == true){
  num = num+1; // counter
  cout << num << endl; // to check if it enters the if

  trackLength = aTrack.GetTrackLength();
  globalTime = aTrack.GetGlobalTime();


Also I tried (fStopButAlive) and even (fAlive), but none holded the "if". Could everyone please tell me what could be wrong?

Many thanks.

Best, Somayeh

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

1 None: Re: Track Status doesn't work   (Marc Verderi - 26 Jul, 2017)
(_ Note: Re: Track Status doesn't work   (Soman - 26 Jul, 2017)
 Add Message Add Message
to: "Track Status doesn't work"

 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 ]