#include <TH1F.h>
#include <TLegend.h>
#include <TROOT.h>
+#include <TString.h>
#include "AliT0QATask.h"
#include "AliESD.h"
void AliT0QATask::CreateOutputObjects()
{
// create histograms
+
+ OpenFile(0) ;
+
fhT01 = new TH1F("hRealVertex", "Primary vertex", 100, -20, 20);
fhT02 = new TH1F("hT0start", "T0 start time", 100, 12400, 12600);
fhT03 = new TH1F("hT0vertex", "T0vertex", 100, -20, 20);
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) ;
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())) ;
}