]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ESDCheck/AliHMPIDQATask.cxx
Base class (AliMisaligner); each detector will provide its derived class,
[u/mrichter/AliRoot.git] / ESDCheck / AliHMPIDQATask.cxx
index 4da33f2273394cdcbbcce923bcdb56323b2b69ee..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); 
@@ -243,11 +248,11 @@ void AliHMPIDQATask::Terminate(Option_t *)
   
   AliInfo(Form("!!! All the eps files are in %s.tar.gz !!!", GetName())) ;
 
-  char * report ; 
+  TString report ; 
   if(problem)
     report="Problems found, please check!!!";  
   else 
     report="OK";
 
-  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report)) ; 
+  AliInfo(Form("*** %s Summary Report: %s \n",GetName(), report.Data())) ; 
 }