GSI Forum - RDF feed
type: channel
description: GSI Helmholtzzentrum für Schwerionenforschung
items: Forgotten increment of iterator???
items: Re: Forgotten increment of iterator???

Forgotten increment of iterator???
type: item
description: 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
creator: Carsten Schwarz
date: 2008-04-01T11:34:01-00:00

Re: Forgotten increment of iterator???
type: item
description: Hi Carsten! You are right of course! Thanx for that fix! Will you submit this? Cheers! Sebastian.
creator: Sebastian Neubert
date: 2008-04-02T09:21:14-00:00

Re: Forgotten increment of iterator???
type: item
description: I have sumbitted a fix. Cheers! Sebastian
creator: Sebastian Neubert
date: 2008-04-02T09:51:23-00:00