]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ESDCheck/AliT0QATask.cxx
fix problem with fXpos11 in LoadXPos (Philippe C., thanks to Christian)
[u/mrichter/AliRoot.git] / ESDCheck / AliT0QATask.cxx
index 451ef5ab122c06c5d4ed8c278764bd49b26864bf..56db7fd13c652898ae574b4f215dbf5b8b9138ff 100644 (file)
@@ -142,15 +142,17 @@ void AliT0QATask::Terminate(Option_t *)
   fhT02 = (TH1F*)fOutputContainer->At(1);
   fhT03 = (TH1F*)fOutputContainer->At(2);
 
+  Bool_t problem = kFALSE ; 
   AliInfo(Form(" *** %s Report:", GetName())) ; 
 
   Float_t mean = fhT02->GetMean();
 
   printf ("mean time T0 ps %f\n", mean) ;
 
-  if ( mean > 12600 || mean < 12400 ) 
+  if ( mean > 12600 || mean < 12400 ) {
    AliWarning (" !!!!!!!!!!-----events sample is WRONG - T0 unreal -------");  
-
+   problem = kTRUE ;
+  }
   TCanvas  * cTO1 = new TCanvas("cT01", "T0 ESD Test", 400, 10, 600, 700) ;
   cTO1->Divide(2, 2) ;
 
@@ -172,5 +174,13 @@ void AliT0QATask::Terminate(Option_t *)
   sprintf(line, ".!rm -fR *.eps"); 
   gROOT->ProcessLine(line);
  
-  AliInfo(Form("!!! All the eps files are in %s.tar.gz !!! \n", GetName())) ;
+  AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
+
+  char * report ; 
+  if(problem)
+    report="Problems found, please check!!!";  
+  else 
+    report="OK";
+
+  AliInfo(Form("*** %s Summary Report: %s\n",GetName(), report)) ; 
 }