put the QA making in the event loop
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Aug 2008 14:57:07 +0000 (14:57 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Aug 2008 14:57:07 +0000 (14:57 +0000)
STEER/AliReconstruction.cxx

index 423edc1962b85de95a3ee819eb8832b89b49c614..31855684e6e4b6e5831da0772128d6691a86aa2b 100644 (file)
@@ -1584,10 +1584,13 @@ Bool_t AliReconstruction::ProcessEvent(Int_t iEvent)
     // write ESD
     if (fCleanESD) CleanESD(fesd);
 
-    if (fRunGlobalQA) {
+  if (fRunQA) 
+    fQASteer->RunOneEvent(fesd) ; 
+
+  if (fRunGlobalQA) {
       AliQADataMaker *qadm = fQASteer->GetQADataMaker(AliQA::kGLOBAL);
       if (qadm && fQATasks.Contains(Form("%d", AliQA::kESDS)))
-       qadm->Exec(AliQA::kESDS, fesd);
+        qadm->Exec(AliQA::kESDS, fesd);
     }
 
     if (fWriteESDfriend) {
@@ -1700,7 +1703,6 @@ void AliReconstruction::SlaveTerminate()
 
   // End of cycle for the in-loop  
   if (fRunQA) {
-    fQASteer->RunOneEvent(fesd) ; 
     fQASteer->EndOfCycle() ;
   }
   if (fRunGlobalQA) {