GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » loop over PndMcTracks
Re: loop over PndMcTracks [message #15701 is a reply to message #15699] Sun, 10 November 2013 21:00 Go to previous messageGo to previous message
Yuri Naryshkin is currently offline  Yuri Naryshkin
Messages: 42
Registered: August 2008
continuous participant
From: *desy.de
Thank you Stefano! Now I use the latest version:
pandaroot/tutorials/apr13/
do simulation full chain with: tut_runall.sh
and analysis with tut_ana.C
I get information about MC track with:

// *** loop over MC track
for (jl=0;jl<mctrk.GetLength();++jl)
{
cout << "all MC tracks " << jl
<< " " << mctrk[jl].PdgCode()
<< " " << mctrk[jl].Px()
<< endl;
}
But when I try to extract mother particle ID and StartX:

<< " " << mctrk[jl].MotherID();
<< " " << mctrk[jl].StartX();

it is the problem. Could you please tell me how I can get this?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [FIXED] use MC particle hypothesis in PndRecoKalmanTask
Next Topic: PndKinFitter Mass constraints and resolution
Goto Forum:
  


Current Time: Tue Oct 22 06:06:30 CEST 2019

Total time taken to generate the page: 0.02520 seconds