GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » loop over PndMcTracks
Re: loop over PndMcTracks [message #15704 is a reply to message #15702] Mon, 11 November 2013 11:22 Go to previous messageGo to previous message
Yuri Naryshkin is currently offline  Yuri Naryshkin
Messages: 42
Registered: August 2008
continuous participant
From: *desy.de
Dear Stefano,
the piece of code is:
//YN
// *** loop over MC track
for (jl=0;jl<mctrk.GetLength();++jl)
{
cout << "all MC tracks " << jl
<< " " << mctrk[jl].PdgCode()
<< " " << mctrk[jl].Px()
<< " " << mctrk[jl]->MotherID();
<< endl;
}
//YN


the error message is:

*************************************************************
initialisation for run id 372981311
*************************************************************
[ERROR ] init() ANAPidSelections not initialized
Error in <FairRuntimeDb::initContainers()>: Error occured during initialization
evt aaa1
[INFO ] The number of entries in chain is 5000
Warning: wrong member access operator '->' tut_ana.C:140:
Error: Can't call TCandidate::MotherID() in current scope tut_ana.C:140:
Possible candidates are...
(in TCandidate)
(in TFitParams)
*** Interpreter error recovered ***
all MC tracks 0 211 -0.0498608 root [1]
 
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: Sun Feb 24 04:00:00 CET 2019

Total time taken to generate the page: 0.02692 seconds