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 previous message
Carsten Schwarz is currently offline  Carsten Schwarz
Messages: 280
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
 
Read Message
Read Message
Read Message
Previous Topic: problem in retriving data from runDemo output
Next Topic: Data Challenge
Goto Forum:
  


Current Time: Fri Apr 19 15:34:42 CEST 2024

Total time taken to generate the page: 0.01087 seconds