From: richterm Date: Wed, 23 Jul 2008 19:37:59 +0000 (+0000) Subject: bugfix: reset of sub-collection flag X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=4562bf66c2b9252696921e04c77dbb0d447033ef;p=u%2Fmrichter%2FAliRoot.git bugfix: reset of sub-collection flag --- diff --git a/HLT/BASE/AliHLTOUT.cxx b/HLT/BASE/AliHLTOUT.cxx index 292539bcd13..bc90ff2e4d0 100644 --- a/HLT/BASE/AliHLTOUT.cxx +++ b/HLT/BASE/AliHLTOUT.cxx @@ -738,7 +738,11 @@ int AliHLTOUT::AddSubCollection(AliHLTOUT* pCollection) iResult++; } if (iResult>0) { - pCollection->SetStatusFlag(kIsSubCollection); + if (CheckStatusFlag(kIsSubCollection)) { + fLog.LoggingVarargs(kHLTLogWarning, "AliHLTOUT", "AddSubCollection" , __FILE__ , __LINE__ , "HLTOUT object %p has already been added as sub-collection", pCollection); + } else { + pCollection->SetStatusFlag(kIsSubCollection); + } } ClearStatusFlag(kCollecting); @@ -759,6 +763,7 @@ int AliHLTOUT::ReleaseSubCollection(AliHLTOUT* pCollection) } block++; } + pCollection->ClearStatusFlag(kIsSubCollection); return iResult; } @@ -781,8 +786,10 @@ int AliHLTOUT::Reset() } for (AliHLTOUTPVector::iterator collection=subCollections.begin(); - collection!=subCollections.end(); collection++) + collection!=subCollections.end(); collection++) { (*collection)->Reset(); + (*collection)->ClearStatusFlag(kIsSubCollection); + } ResetInput();