GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » keeping track of a particle as it goes through a detector
Re: keeping track of a particle as it goes through a detector [message #14666 is a reply to message #14665] Thu, 25 April 2013 08:30 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
Hey,

If I understand you well, you generated the electrons out side FairRoot, and then you transport them with FairRoot through your detector. i.e your electrons are considered as primary particles, so you can cut on the Mother ID of your points (it should be -1 for primaries). From your MCPoint you can get the TrackId of the track which generate this point (FairMCPoint::GetTrackID())and then the Stack you get the MCTrack and then the mother ID of the track.

for example:

motherID = (((FairMCTrack*)fMCTrackArray->At(FairMCPoint->GetTrackID()))->GetMotherId());




In the event display you can select display primary only to see these particles.

Mohammad
 
Read Message
Read Message
Previous Topic: Usage of FairLink
Next Topic: Fairroot compiler errors: when building current pandaroot revision (19615)
Goto Forum:
  


Current Time: Fri Apr 19 11:16:15 CEST 2024

Total time taken to generate the page: 0.01022 seconds