X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FmacrosSDD%2FPlotQASDD.C;h=0403d36d967ee7abc6f9d02407810cc69b0fa68e;hb=0b13c1f9b0924c8688115f11eb594030a320b84a;hp=e4a95ea9e2a51500150650e4739245d230f5166f;hpb=2a250bc57d2a979190ddf5001efdd7a8b79f616d;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/macrosSDD/PlotQASDD.C b/ITS/macrosSDD/PlotQASDD.C index e4a95ea9e2a..0403d36d967 100644 --- a/ITS/macrosSDD/PlotQASDD.C +++ b/ITS/macrosSDD/PlotQASDD.C @@ -94,8 +94,12 @@ void PlotQASDD(Char_t fileName[100]="File.QA.111333.2010.LHC09b.pass2.root",Char // -------------This part is to read the number of chunks that were merged Float_t fChnknmbr=0.; FILE * pChunkNumber = fopen ("ChunkNumber.txt","r"); - fscanf(pChunkNumber, "%f", &fChnknmbr); + if(pChunkNumber){ + Int_t rv=fscanf(pChunkNumber, "%f", &fChnknmbr); fclose (pChunkNumber); + } + else fChnknmbr=1.; + gStyle->SetPalette(1); float fCNinv=1./fChnknmbr; // printf("\n====================>%f\n\n", fCNinv); @@ -607,6 +611,7 @@ void PlotQASDD(Char_t fileName[100]="File.QA.111333.2010.LHC09b.pass2.root",Char printf("...Found\n"); historaw2->GetYaxis()->SetRangeUser(0,fmaxmargin); historaw2->SetTitle("Charge"); + historaw2->SetFillColor(0); if (irrpp==4) {historaw2->SetStats(0);historaw2->SetLineColor(2);historaw2->DrawCopy();} if (irrpp!=4) {historaw2->SetStats(0);historaw2->SetLineColor(4);historaw2->DrawCopy("same");} legend->AddEntry(historaw2,layer,"l"); @@ -656,6 +661,7 @@ void PlotQASDD(Char_t fileName[100]="File.QA.111333.2010.LHC09b.pass2.root",Char printf("...Found\n"); historaw2->GetYaxis()->SetRangeUser(0,fmaxmargin); historaw2->SetTitle("Drift Time"); + historaw2->SetFillColor(0); if (irrpp==6) {historaw2->SetStats(0); historaw2->SetLineColor(2);historaw2->DrawCopy();} if (irrpp!=6) {historaw2->SetStats(0); historaw2->SetLineColor(4);historaw2->DrawCopy("same");} legend->AddEntry(historaw2,layer,"l");