GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Forgotten increment of iterator???
Forgotten increment of iterator??? [message #6191] Tue, 01 April 2008 13:34 Go to next message
Carsten Schwarz is currently offline  Carsten Schwarz
Messages: 288
Registered: March 2004
first-grade participant
From: *gsi.de
Dear Sebastian,

runDemo in recotask causes of mc=0 an infinite loop

139 while(candIter!=candmap.end()){
140 TrackCand* cand=candIter->second;
141 if(cand->getNHits()<10){
142 ++candIter;
143 continue;
144 }
145
146 // Get MCTrack
147 CbmMCTrack* mc=(CbmMCTrack*)_mcArray->At(candIter->first);
148 if(mc==0){
149 Error("DemoPRTask::Exec","MCTrack Id=&i not found!",candIter->first);
150 continue;
151 }

is it right that before line 150 an increment of candIter is missing?

MFG
Carsten
Re: Forgotten increment of iterator??? [message #6197 is a reply to message #6191] Wed, 02 April 2008 11:21 Go to previous messageGo to next message
Sebastian Neubert is currently offline  Sebastian Neubert
Messages: 282
Registered: March 2006
Location: Munich
first-grade participant

From: 213.215.163*
Hi Carsten!

You are right of course!
Thanx for that fix!

Will you submit this?

Cheers! Sebastian.


Sebastian Neubert
Technische Universität München
Department Physik E18
sneubert@e18.physik.tu-muenchen.de
tel: +49-8928912592
Re: Forgotten increment of iterator??? [message #6198 is a reply to message #6197] Wed, 02 April 2008 11:51 Go to previous message
Sebastian Neubert is currently offline  Sebastian Neubert
Messages: 282
Registered: March 2006
Location: Munich
first-grade participant

From: 213.215.163*
I have sumbitted a fix.

Cheers!
Sebastian


Sebastian Neubert
Technische Universität München
Department Physik E18
sneubert@e18.physik.tu-muenchen.de
tel: +49-8928912592
Previous Topic: problem in retriving data from runDemo output
Next Topic: Data Challenge
Goto Forum:
  


Current Time: Fri Dec 06 20:36:18 CET 2024

Total time taken to generate the page: 0.00660 seconds