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