]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ESDCheck/AliHMPIDQATask.cxx
Addition of Lc->V0+bachelor analysis (Zaida)
[u/mrichter/AliRoot.git] / ESDCheck / AliHMPIDQATask.cxx
index 2e0b6e2505773008a444b5d2e2025716c5817807..a4e65a7a8558d09d33a1dbbced5e7b4c0ae0cd06 100644 (file)
@@ -30,6 +30,7 @@
 #include <TLegend.h> 
 #include <TROOT.h>
 #include <TVector3.h> 
+#include <TString.h> 
 
 #include "AliHMPIDQATask.h" 
 #include "AliESD.h" 
@@ -41,6 +42,7 @@ AliHMPIDQATask::AliHMPIDQATask(const char *name) :
   AliAnalysisTask(name,""),  
   fChain(0),
   fESD(0), 
+  fOutputContainer(0),
   fhHMPIDCkovP(0),
   fhHMPIDMipXY(0),
   fhHMPIDDifXY(0),
@@ -99,6 +101,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 +189,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 +246,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())) ;
+
+  TString report ; 
+  if(problem)
+    report="Problems found, please check!!!";  
+  else 
+    report="OK";
+
+  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }