Message: Re: How to get track length of a primary particle at the end of event in the digitization Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: How to get track length of a primary particle at the end of event in the digitization 

Forum: Hits, Digitization and Pileup
Re: Question How to get track length of a primary particle at the end of event in the digitization (Soman)
Re: Idea Re: How to get track length of a primary particle at the end of event in the digitization (Michael H. Kelsey)
Date: 21 Jul, 2017
From: Soman <Soman>

Thank you very much for your note. I'll check your approach and I hope it works for me. I'm just still wondering why G4Trajectory can't help me with this. Shouldn't G4Trajectory contain any information about all tracks and steps of an event? I had found G4Trajectory(G4Track* aTrack), so I don't know if I can use below method:

==================================================================
  G4int fparentID = aTrack->GetParentID()

  if (fparentID == 0)

   G4double ftrackLength = aTRack->GetTrackLength();

==================================================================

But the question is that how G4Trajectory keeps all tracks of a given event and how (or if) I can search between its tracks and implement above codes.

Thanks a lot.

Kind regards, Soman

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

1 None: Re: How to get track length of a primary particle at the end of event in the digitization   (Mike Kelsey - 21 Jul, 2017)
(_ Question: Re: How to get track length of a primary particle at the end of event in the digitization   (Soman - 21 Jul, 2017)
(_ None: Re: How to get track length of a primary particle at the end of event in the digitization   (Mike Kelsey - 21 Jul, 2017)
 Add Message Add Message
to: "Re: How to get track length of a primary particle at the end of event in the digitization"

 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 ]