GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: keeping track of a particle as it goes through a detector
items: Re: keeping track of a particle as it goes through a detector

keeping track of a particle as it goes through a detector
type: item
description: Hey guys, Say I have a scattered electron from some generated Monte-Carlo events. I simulate these generated events in a detector I built using FairRoot. I would like to keep track of this particular scattered electron as it goes through the detector. Running a script similar to run_rutherford.C gives me a root tree of the detector points and mctracks. What cuts can I make with either the detector points or mctracks to help me look at only the initial scattered electron? I hope my question makes sense. Let me know what I can clarify.
creator: Raphael Cervantes
date: 2013-04-25T00:29:59-00:00

Re: keeping track of a particle as it goes through a detector
type: item
description: 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
creator: Mohammad Al-Turany
date: 2013-04-25T06:30:23-00:00