Bug fix - Teminate - as virtula function
[u/mrichter/AliRoot.git] / TPC / AliTPCAnalysisTaskcalib.cxx
index 132e88176efb13f070b40867cedd6085f317dca9..02866fc9684fba61f5ea0c4a5155ad207ad4f342 100644 (file)
@@ -103,6 +103,14 @@ void AliTPCAnalysisTaskcalib::CreateOutputObjects() {
   //
 }
 void AliTPCAnalysisTaskcalib::Terminate(Option_t */*option*/) {
+  //
+  //
+  //
+  TIterator *i=fCalibJobs.MakeIterator();
+  AliTPCcalibBase *job;
+  while ((job=dynamic_cast<AliTPCcalibBase*>(i->Next()))){
+    job->Terminate();
+  }
 }
 
 // we could have been living inside a master class...