GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » FairMCPoint trackID vs FairLink trackID.
FairMCPoint trackID vs FairLink trackID. [message #11110] Wed, 20 October 2010 19:17 Go to previous message
Lia Lavezzi
Messages: 291
Registered: May 2007
Location: Torino
first-grade participant

From: *
Hi Tobias,
I have a question on FairLink.
I tried to get the trackID from the simulated STTPoints, both with the fTrackID variable of FairMCPoint and from the FairLink, by doing:

cbmsim.Scan("STTPoint.fLinks.fType:STTPoint.fLinks.fIndex:STTPoint.fTrackID ")

I expected to find STTPoint.fLinks.fIndex always equal to STTPoint.fTrackID but I see that sometimes they are are different.

How is it possible? In PndSttPoint there is:
PndSttPoint::PndSttPoint(Int_t trackID, Int_t detID, TVector3 pos,
                         TVector3 posInLocal, TVector3 posOutLocal,
                         TVector3 momIn, TVector3 momOut,
                         Double_t tof, Double_t length, Double_t eLoss,
Double_t mass)
  : FairMCPoint(trackID, detID, pos, momIn, tof, length, eLoss)
  SetLink(FairLink("MCTrack", trackID));
} trackID is the same in FairMCPoint and in FairLink. Confused

I also printed the trackID during the simulation, in ProcessHits, to see whether it was equal to STTPoint.fLinks.fIndex or STTPoint.fTrackID and it is equal to STTPoint.fLinks.fIndex.

Another test I did: I tried the command line I wrote above (with the equivalent points) for MVD, GEM and MDT and I see differences between *Point.fLinks.fIndex and *Point.fTrackID there too.

The main question is: am I reading the link in the wrong way or is there some real problem? Do you have any suggestion?

Thank you in advance,

Read Message
Read Message
Read Message
Previous Topic: Problems with TPC and genfit
Next Topic: Memory leaks in digitization (TPC!)
Goto Forum:

Current Time: Sat Mar 02 03:22:00 CET 2024

Total time taken to generate the page: 0.01089 seconds