]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSQASDDDataMakerRec.cxx
Restore the processing statistics per event
[u/mrichter/AliRoot.git] / ITS / AliITSQASDDDataMakerRec.cxx
index c94cb41594d204cc95ca22747b36654738f34b23..089544d248df8de9a37d0e02fb724a61d62e377f 100644 (file)
@@ -32,6 +32,7 @@
 #include <TBranch.h>
 #include <TTree.h>
 #include <TMath.h>
+#include <TPaveText.h>
 //#include <TObjArray.h>
 
 // --- Standard library ---
@@ -65,8 +66,8 @@ class AliRunLoader;
 class AliITSLoader;
 class AliITSDetTypeRec;
 
-
-
+using std::endl;
+using std::cout;
 ClassImp(AliITSQASDDDataMakerRec)
 
 //____________________________________________________________________________ 
@@ -415,38 +416,64 @@ Int_t AliITSQASDDDataMakerRec::InitRaws()
 
   Int_t rv = 0 ; 
   Int_t lay, lad, det;
-  Int_t indexlast = 0;
+
   Int_t index1 = 0;
   int offsRW = fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()];
   fSDDhRawsTask = 0;
   if(fkOnline){AliInfo("Book Online Histograms for SDD\n");}
   else {AliInfo("Book Offline Histograms for SDD\n ");}
-  TH1F *h0 = new TH1F("SDDModPattern","HW Modules pattern",fgknSDDmodules,239.5,499.5); //0
+
+       TPaveText *PaveText0=new TPaveText(0.3,0.88,0.9,0.99,"NDC");
+       PaveText0->AddText("");
+       PaveText0->SetFillColor(kMagenta+2);
+       PaveText0->SetTextColor(kWhite);
+       PaveText0->SetBorderSize(1);
+       PaveText0->SetLineWidth(1);     
+       
+       TH1F *h0 = new TH1F("SDDModPattern","HW Modules pattern",fgknSDDmodules,239.5,499.5); //0
   h0->GetXaxis()->SetTitle("Module Number");
   h0->GetYaxis()->SetTitle("Counts");
   h0->SetOption("bar1");
   h0->SetBarOffset(0.01);
   h0->SetBarWidth(0.95);
   h0->SetFillColor(45);
+  h0->GetListOfFunctions()->Add(PaveText0);
+       
   rv = fAliITSQADataMakerRec->Add2RawsList(h0,0+offsRW, expert, !image, !saveCorr);
   fSDDhRawsTask++;
-  
+        
+       TPaveText *PaveText1=new TPaveText(0.3,0.88,0.9,0.99,"NDC");
+       PaveText1->AddText("");
+       PaveText1->SetFillColor(kMagenta+2);
+       PaveText1->SetTextColor(kWhite);
+       PaveText1->SetBorderSize(1);
+       PaveText1->SetLineWidth(1);
+
   //zPhi distribution using ladder and modules numbers
   TH2F *hphil3 = new TH2F("SDDphizL3","SDD #varphiz Layer3 ",12,0.5,6.5,14,0.5,14.5);//1
   hphil3->GetXaxis()->SetTitle("z[Module Number L3 ]");
   hphil3->GetYaxis()->SetTitle("#varphi[ Ladder Number L3]");
   hphil3->SetStats(0);
+       hphil3->GetListOfFunctions()->Add(PaveText1);
   rv = fAliITSQADataMakerRec->Add2RawsList(hphil3,1+offsRW, !expert, image, !saveCorr); 
   fSDDhRawsTask++;
-  
+       TPaveText *PaveText2=new TPaveText(0.3,0.88,0.9,0.99,"NDC");
+       PaveText2->AddText("");
+       PaveText2->SetFillColor(kMagenta+2);
+       PaveText2->SetTextColor(kWhite);
+       PaveText2->SetBorderSize(1);
+       PaveText2->SetLineWidth(1);
+
   TH2F *hphil4 = new TH2F("SDDphizL4","SDD #varphiz Layer4 ",16,0.5,8.5,22,0.5,22.5); //2
   hphil4->GetXaxis()->SetTitle("z[Module Number L4]");
   hphil4->GetYaxis()->SetTitle("#varphi[Ladder Number L4]");
   hphil4->SetStats(0);
+       hphil4->GetListOfFunctions()->Add(PaveText2);
    rv = fAliITSQADataMakerRec->Add2RawsList(hphil4,2+offsRW, !expert, image, !saveCorr); 
   fSDDhRawsTask++;
-  
-  //normalized histograms
+       
+       //normalized histograms
   TH1F *h0norm = new TH1F("SDDModPatternNORM","NORM HW Modules pattern",fgknSDDmodules,239.5,499.5); //3
   h0norm->GetXaxis()->SetTitle("Module Number");
   h0norm->GetYaxis()->SetTitle("Counts");
@@ -588,10 +615,10 @@ Int_t AliITSQASDDDataMakerRec::InitRaws()
     hddl->GetYaxis()->SetTitle("DDL Number");
     rv = fAliITSQADataMakerRec->Add2RawsList(hddl,fOnlineOffsetRaws+offsRW, expert, !image, !saveCorr);
     fSDDhRawsTask++;
-    Int_t indexlast1 = 0;
-    
+
+    Int_t  indexlast1 = 0;
     fTimeBinSize = 4;
-    indexlast = 0;
+
     index1 = 0;
     indexlast1 = fSDDhRawsTask;
     for(Int_t moduleSDD =0; moduleSDD<fgknSDDmodules; moduleSDD++){
@@ -665,7 +692,6 @@ Int_t AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader)
   }
   
   Int_t cnt = 0;
-  Int_t ildcID = -1;
   Int_t iddl = -1;
   Int_t isddmod = -1;
   Int_t coord1, coord2, signal, moduleSDD, activeModule, index1; 
@@ -678,7 +704,6 @@ Int_t AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader)
       for(Int_t jddl=0;jddl<totalddl;jddl++){ddldata[jddl]=kFALSE;}
       //}
   while(stream->Next()) {
-    ildcID = rawReader->GetLDCId();
     iddl = rawReader->GetDDLID();// - fgkDDLIDshift;
     if(iddl<0)isddmod=-1;
     //printf("----------------------iddl %i\n",iddl);
@@ -910,16 +935,32 @@ Int_t AliITSQASDDDataMakerRec::InitRecPoints()
   rv = fAliITSQADataMakerRec->Add2RecPointsList(h6,6 +offsRP, expert, !image);// expert NO image
   fSDDhRecPointsTask++;
 
-  
+       TPaveText *PaveText7=new TPaveText(0.3,0.88,0.9,0.99,"NDC");
+       PaveText7->AddText("");
+       PaveText7->SetFillColor(kMagenta+2);
+       PaveText7->SetTextColor(kWhite);
+       PaveText7->SetBorderSize(1);
+       PaveText7->SetLineWidth(1);     
+       
+       
   TH2F *h7 = new TH2F("SDDModPatternL3RP","Modules pattern L3 RP",12,0.5,6.5,14,0.5,14.5);  //position number 7
   h7->GetXaxis()->SetTitle("z[#Module L3 ]");
   h7->GetYaxis()->SetTitle("#varphi[#Ladder L3]");
+       h7->GetListOfFunctions()->Add(PaveText7);
   rv = fAliITSQADataMakerRec->Add2RecPointsList(h7,7 +offsRP, !expert, image);// expert NO image
   fSDDhRecPointsTask++;
 
-  TH2F *h8 = new TH2F("SDDModPatternL4RP","Modules pattern L4 RP",16,0.5,8.5,22,0.5,22.5); //position number 8
+       TPaveText *PaveText8=new TPaveText(0.3,0.88,0.9,0.99,"NDC");
+       PaveText8->AddText("");
+       PaveText8->SetFillColor(kMagenta+2);
+       PaveText8->SetTextColor(kWhite);
+       PaveText8->SetBorderSize(1);
+       PaveText8->SetLineWidth(1);     
+       
+       TH2F *h8 = new TH2F("SDDModPatternL4RP","Modules pattern L4 RP",16,0.5,8.5,22,0.5,22.5); //position number 8
   h8->GetXaxis()->SetTitle("[#Module L3 ]");
   h8->GetYaxis()->SetTitle("#varphi[#Ladder L4]");
+       h8->GetListOfFunctions()->Add(PaveText8);
   rv = fAliITSQADataMakerRec->Add2RecPointsList(h8,8 +offsRP, !expert, image);// expert NO image
   fSDDhRecPointsTask++;