Do not delete subtasks when AliRunDigitizer is deleted. Owner should delete them...
authorjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jul 2002 08:59:39 +0000 (08:59 +0000)
committerjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 17 Jul 2002 08:59:39 +0000 (08:59 +0000)
STEER/AliRunDigitizer.cxx

index 08a8cbe..5aa2622 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.17  2002/07/16 13:47:53  jchudoba
+Add methods to get access to names of files used in merging.
+
 Revision 1.16  2002/06/07 09:18:47  jchudoba
 Changes to enable merging of ITS fast rec points. Although this class should be responsible for a creation of digits only, other solutions would be more complicated.
 
@@ -226,6 +229,10 @@ AliRunDigitizer::AliRunDigitizer(Int_t nInputStreams, Int_t sperb) : TTask("AliR
 AliRunDigitizer::~AliRunDigitizer() {
 // dtor
 
+// do not delete subtasks, let the creator delete them
+  if (GetListOfTasks()) 
+    GetListOfTasks()->Clear("nodelete");
+  
   if (fInputStreams) {
     delete fInputStreams;
     fInputStreams = 0;