]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correcting AliHLTGlobalTriggerDecision::Clear(): using Delete instead of Clear for...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 08:38:04 +0000 (08:38 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 08:38:04 +0000 (08:38 +0000)
This seems to be a complex problem for TClonesArrays of class objects containing TClonesArrays
https://savannah.cern.ch/bugs/index.php?74072

HLT/BASE/AliHLTGlobalTriggerDecision.cxx

index 4cb552ed15a12aa41c7bcc117ee5c1ee77e9d7c3..8d88b2c0cb8d8e717caa1c1631bec45f6cce3d8c 100644 (file)
@@ -308,7 +308,10 @@ void AliHLTGlobalTriggerDecision::Clear(Option_t* option)
   // Clears the trigger domain and resets the decision result.
   
   AliHLTTriggerDecision::Clear(option);
-  fContributingTriggers.Clear(option);
+  // because of TClonesArray members in AliHLTTriggerDecision it is not
+  // enough to call Clear. Delete will also invoke the destructor of the
+  // elements which is necessary to do the proper internal cleanup
+  fContributingTriggers.Delete();
   DeleteInputObjects();
   fCounters.Set(0);
 }