fHighSDDValue[ibit]=0.;
}
for(Int_t i=0;i<AliRecoParam::kNSpecies;i++) fPaveText[i] = NULL;
- for(Int_t i=0;i<2; i++) {
- fPaveTextRaw[i] = NULL;
- fPaveTextRec[i] = NULL;
- }
} // ctor
fPaveText[i]=NULL;
}
}
- for(Int_t i=0;i<2;i++) {
- if(fPaveTextRaw[i])
- {
- delete fPaveTextRaw[i];
- fPaveTextRaw[i]=NULL;
- }
- if(fPaveTextRec[i])
- {
- delete fPaveTextRec[i];
- fPaveTextRec[i]=NULL;
- }
- }
} // dtor
//__________________________________________________________________
Int_t layer1=0;
if(hname.Contains("3"))layer1=0;
else if(hname.Contains("4"))layer1=1;
- if(dynamic_cast<TH2*>(hdata)){
- hlayer[layer1]=(TH2*)((dynamic_cast<TH2*>(hdata))->Clone());
- hlayer[layer1]->SetName(Form("%s_copy",hname.Data()));
- int modmay=hlayer[layer1]->GetNbinsY();
- TH1D* hproj= hlayer[layer1]->ProjectionY();
- Double_t ladcontent=0;
- for(Int_t i=1;i<=modmay;i++) {//loop on the ladders
- ladcontent=hproj->GetBinContent(i);
- if(AliITSQADataMakerRec::AreEqual(ladcontent,0.)) emptyladders[layer1]++;
- else filledladders[layer1]++;}//end for
- AliInfo(Form(" %s : empty ladders %i \t filled ladders %i\n",hname.Data(), emptyladders[layer1], filledladders[layer1]));//end else layer 3
- delete hproj;
- hproj=NULL;
- }//end if htemp
+ TH2* htemp=dynamic_cast<TH2*>(hdata);
+ if(htemp){
+ hlayer[layer1]=(TH2*)((dynamic_cast<TH2*>(hdata))->Clone());
+ hlayer[layer1]->SetName(Form("%s_copy",hname.Data()));
+ int modmay=hlayer[layer1]->GetNbinsY();
+ TH1D* hproj= hlayer[layer1]->ProjectionY();
+ Double_t ladcontent=0;
+ for(Int_t i=1;i<=modmay;i++) {//loop on the ladders
+ ladcontent=hproj->GetBinContent(i);
+ if(AliITSQADataMakerRec::AreEqual(ladcontent,0.)) emptyladders[layer1]++;
+ else filledladders[layer1]++;}//end for
+ AliInfo(Form(" %s : empty ladders %i \t filled ladders %i\n",hname.Data(), emptyladders[layer1], filledladders[layer1]));//end else layer 3
+ delete hproj;
+ hproj=NULL;
+ }//end if htemp
}//end else entries !=0
}//end check on phiz
//TPaveText *pave[2]={0,0};
next.Begin();
- for(Int_t lay=0;lay<2; lay++) if(fPaveTextRaw[lay]) { delete fPaveTextRaw[lay]; fPaveTextRaw[lay] = NULL; }
while( (hdata=dynamic_cast<TH1* >(next())) ) {
if (hdata){
TString hname=hdata->GetName();
if(hname.Contains("SDDphizL3") || hname.Contains("SDDphizL4")){
if(hname.Contains("NORM"))continue;
//AliInfo("========================================Found histo 11\n");
- Int_t lay=0;
- if(hname.Contains("3"))lay=0;
- else if(hname.Contains("4"))lay=1;
- fPaveTextRaw[lay]=new TPaveText(0.3,0.9,0.9,0.99,"NDC");
- //fPaveTextRaw[lay]->AddText(hname.Data());
- fPaveTextRaw[lay]->AddText(results1.Data());
- fPaveTextRaw[lay]->AddText(results2.Data());
- fPaveTextRaw[lay]->SetFillColor(color);
- fPaveTextRaw[lay]->SetBorderSize(1);
- fPaveTextRaw[lay]->SetLineWidth(1);
- //hdata->GetListOfFunctions()->Add(pave[lay]);
+ TPaveText *ptext = ((TPaveText *)hdata->GetListOfFunctions()->FindObject("TPave"));
+ ptext->Clear();
+ ptext->AddText(results1.Data());
+ ptext->AddText(results2.Data());
} else if(hname.Contains("SDDRawDataCheck")) {
//AliInfo("========================================Found histo\n");
((TH1F*)hdata)->SetBinContent(42,emptyactivemoduleperlayer[1]);
((TH1F*)hdata)->SetBinContent(43,exactivedrperlayer[1]);
((TH1F*)hdata)->SetBinContent(44,emptyactivedrperlayer[1]);
- //hdata->GetListOfFunctions()->Add(pave[0]);
//break;
}
}//if hdata
//TPaveText *pave[2]={0,0};
next.Begin();
- for(Int_t lay=0;lay<2; lay++) if(fPaveTextRec[lay]) { delete fPaveTextRec[lay]; fPaveTextRec[lay] = NULL; }
while( (hdata=dynamic_cast<TH1* >(next())) )
{
if(hname.Contains("SDDModPatternL3RP") || hname.Contains("SDDModPatternL4RP")){
if(hname.Contains("NORM"))continue;
//AliInfo("========================================Found histo 11\n");
- Int_t lay=0;
- if(hname.Contains("3"))lay=0;
- else if(hname.Contains("4"))lay=1;
- fPaveTextRec[lay]=new TPaveText(0.3,0.88,0.9,0.99,"NDC");
- fPaveTextRec[lay]->AddText(results1.Data());
- fPaveTextRec[lay]->AddText(results2.Data());
- fPaveTextRec[lay]->SetFillColor(color);
- fPaveTextRec[lay]->SetBorderSize(1);
- fPaveTextRec[lay]->SetLineWidth(1);
- //hdata->GetListOfFunctions()->Add(pave[lay]);
+ TPaveText *ptext = ((TPaveText *)hdata->GetListOfFunctions()->FindObject("TPave"));
+ ptext->Clear();
+ ptext->AddText(results1.Data());
+ ptext->AddText(results2.Data());
}
else
if(hname.Contains("SDDRecPointCheck"))
gPad->SetRightMargin(0.15);
gPad->SetLeftMargin(0.05);
hist->SetStats(0);
- hist->SetOption("box") ;
+ hist->SetOption("colz") ;
////hist->GetListOfFunctions()->FindObject("palette")->SetLabelSize(0.025);
//gPad->Update();
}
- if(hname.Contains("SDDphizL3")) hist->GetListOfFunctions()->Add(fPaveTextRaw[0]);
- if(hname.Contains("SDDphizL4")) hist->GetListOfFunctions()->Add(fPaveTextRaw[1]);
hist->DrawCopy();
fImage[esIndex]->cd(++npad) ;
fImage[esIndex]->cd(npad)->SetBorderMode(0) ;
- if(hname.Contains("SDDphizL3")) {
- hist->GetListOfFunctions()->Clear();
- hist->GetListOfFunctions()->Delete();
- delete fPaveTextRaw[0];
- fPaveTextRaw[0] = NULL;
- }
- if(hname.Contains("SDDphizL4")) {
- hist->GetListOfFunctions()->Clear();
- hist->GetListOfFunctions()->Delete();
- delete fPaveTextRaw[1];
- fPaveTextRaw[1] = NULL;
- }
}
}
fImage[esIndex]->Print(Form("%s%s%d.%s", AliQAv1::GetImageFileName(), AliQAv1::GetModeName(mode), AliQAChecker::Instance()->GetRunNumber(), AliQAv1::GetImageFileFormat()), "ps") ;
gPad->SetRightMargin(0.15);
gPad->SetLeftMargin(0.05);
hist->SetStats(0);
- hist->SetOption("box") ;
+ hist->SetOption("colz") ;
//// TPaletteAxis *paletta =(TPaletteAxis*)hist->GetListOfFunctions()->FindObject("palette");
//paletta->SetLabelSize(0.025);
//gPad->Update();
}
- if(hname.Contains("SDDModPatternL3RP")) hist->GetListOfFunctions()->Add(fPaveTextRaw[0]);
- if(hname.Contains("SDDModPatternL4RP")) hist->GetListOfFunctions()->Add(fPaveTextRaw[1]);
+
hist->DrawCopy();
fImage[esIndex]->cd(++npad) ;
fImage[esIndex]->cd(npad)->SetBorderMode(0) ;
- if(hname.Contains("SDDModPatternL3RP")) {
- hist->GetListOfFunctions()->Clear();
- hist->GetListOfFunctions()->Delete();
- delete fPaveTextRec[0];
- fPaveTextRec[0] = NULL;
- }
- if(hname.Contains("SDDModPatternL4RP")) {
- hist->GetListOfFunctions()->Clear();
- hist->GetListOfFunctions()->Delete();
- delete fPaveTextRec[1];
- fPaveTextRec[1] = NULL;
- }
- }
+ }
}
fImage[esIndex]->Print(Form("%s%s%d.%s", AliQAv1::GetImageFileName(), AliQAv1::GetModeName(mode), AliQAChecker::Instance()->GetRunNumber(), AliQAv1::GetImageFileFormat()), "ps") ;
}
#include <TBranch.h>
#include <TTree.h>
#include <TMath.h>
+#include <TPaveText.h>
//#include <TObjArray.h>
// --- Standard library ---
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");
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++;
{
//return the number of the processed events for a given task and trigger class (-1 for all)
return fAliITSQADataMakerRec->GetEvCountTotal(task, trigCl);
-}
+}
\ No newline at end of file