]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ESDCheck/AliHMPIDQATask.cxx
Adding OpenFile in CreateOutput (Yves)
[u/mrichter/AliRoot.git] / ESDCheck / AliHMPIDQATask.cxx
index 2e0b6e2505773008a444b5d2e2025716c5817807..1b8440c7c9cb8f934678933c8d16fff102aa59b1 100644 (file)
@@ -99,6 +99,9 @@ void AliHMPIDQATask::ConnectInputData(const Option_t*)
 void AliHMPIDQATask::CreateOutputObjects()
 {  
   // create histograms 
+
+  OpenFile(0) ; 
+
   fhHMPIDCkovP    = new TH2F("CkovP" , "#theta_{c}, [rad];P, [GeV]", 150,   0,  7  ,100, -3, 1); 
   fhHMPIDSigP     = new TH2F("SigP"  ,"#sigma_{#theta_c}"          , 150,   0,  7  ,100, 0, 1e20);
   fhHMPIDMipXY    = new TH2F("MipXY" ,"mip position"               , 260,   0,130  ,252,0,126); 
@@ -184,6 +187,7 @@ void AliHMPIDQATask::Terminate(Option_t *)
   fhHMPIDProb[3] = (TH1F*)fOutputContainer->At(7);
   fhHMPIDProb[4] = (TH1F*)fOutputContainer->At(8);
 
+  Bool_t problem = kFALSE ; 
   AliInfo(Form(" *** %s Report:", GetName())) ; 
 
   Float_t n = 1.292 ; //mean freon ref idx 
@@ -240,5 +244,13 @@ void AliHMPIDQATask::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)) ; 
 }