GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Simulation Issues » Data Structure of GeoTracks/MCTracks
Data Structure of GeoTracks/MCTracks [message #20279] Mon, 13 February 2017 09:46 Go to next message
PaulinaM is currently offline  PaulinaM
Messages: 6
Registered: February 2017
Location: Darmstadt
occasional visitor
From: *084.058.pools.vodafone-ip.de
Hello everyone,

I tried around with extracting data out of r3bsim-simulated files. I found that in GeoTracks daughters are always "0" and ParentIDs are always "-1", so I assume those information not get saved. In my MCTracks ParentIDs get saved, but the UniqueID appears to be always "0", too, so I can't find the ParentTrack. Am I using the wrong attributes to reconstruct particle hierachy? What is the way to get hierachy information?
If I collect the last points of every GeoTrack are those the last points of the trajectories (in the cave) of single particles or do I miss something, maybe due to a linked structure, GeoTracks inside of GeoTracks?


Thanks a lot and best regards,
Paulina
Re: Data Structure of GeoTracks/MCTracks [message #20281 is a reply to message #20279] Tue, 14 February 2017 07:25 Go to previous message
Dmytro Kresan is currently offline  Dmytro Kresan
Messages: 166
Registered: June 2004
first-grade participant
From: *gsi.de
Hello Paulina,

GeoTracks: they are stored in order to draw the trajectories in the event display. This structure does not contain hierarchy information. It is a full trajectory, so end of it is either inside of cave, if particle was stopped (disappeared), or at the edge of the cave if particle leaves it. Normally, we do not use the GeoTracks to analyse simulated data quantitatively.

MCTracks: Contain mother / daughter information and vertex (start) position and momentum. Also PDG code. If you have a track, GetMotherId() method will give you index of the parent track in the same array. So you can access it directly by this index and there is no need for unique id. If mother id is -1 - it is a primary track.

Hope this helps. Best regards,
Dima
Previous Topic: Geant4 seeds in R3BRoot
Next Topic: info on charged particle simulations into NeuLAND
Goto Forum:
  


Current Time: Sat Nov 23 06:34:53 CET 2024

Total time taken to generate the page: 0.00757 seconds