Forgotten increment of iterator??? [message #6191] |
Tue, 01 April 2008 13:34 |
Carsten Schwarz
Messages: 282 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
|
|
|
|
|