GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » PID information (Question about PID information in FairMCTrack)
PID information [message #21128] Mon, 29 May 2017 16:22 Go to next message
Daniel Wielanek is currently offline  Daniel Wielanek
Messages: 14
Registered: October 2012
Location: Warsaw
occasional visitor
From: *dynamic.gprs.plus.pl
Dear "FairROOTers"
Can somebody explain me what really mean "MotherID", or how to get mother PID?
I was trying to get PDG code of parent by something like this:
FairMCTrack *parent = (FairMCTrack*)mc_tracks->UncheckedAt(daughter->GetMotherId());
parent->GetPdgCode();
But when I looked at histograms I noticed that e.g. pion parent is particle with pid 211 - also pion, what is rather strange. This exist in Geant3/Geant4 setup. Is it a bug or "parent" is also particle that e.g. collided with this track?
Re: PID information [message #22120 is a reply to message #21128] Thu, 25 January 2018 09:17 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hallo Daniel,

Sorry but somehow I did not see this post!! I am really sorry.

The mothered is the index of the parent particle in the simulation stack it has nothin to do with PDG, usually you get the TParticle (or MCTrack object) and then from the Particle you get the PDG.

best,

Mohammad
Previous Topic: FairHit - why only 32bit precision??
Next Topic: Facing Problem During the Installation of Fairsoft
Goto Forum:
  


Current Time: Fri Apr 19 14:00:53 CEST 2024

Total time taken to generate the page: 0.00812 seconds