+ results1.Form("%i good module(s) and %i good drift region(s) have not recpoints!",emptydiff,emptydrdiff);
+ results2.Form("Cosmic Events %d .Follow the TWiki instruction and call the Expert ",neventsrecpoints);
+ color=kRed;
+ textcolor=kWhite;
+ sddQACheckerValue=fHighSDDValue[AliQAv1::kERROR];
+ }
+ }
+ }
+
+
+
+ if(exactive==0 && emptydiff==0 && exactivedriftregion==0 && emptydrdiff==0){
+ AliInfo(Form("All the active modules (%i) and single drift regions (%i) are in acquisition. The number of excluded modules are %i and the excluded single drift regions are %i\n",active,activedriftregion,excluded,excludeddriftregion));
+ results1.Form("OK.");
+ results2.Form(" All active modules have recpoints");
+ color=kGreen;
+ textcolor=kBlack;
+ sddQACheckerValue=fHighSDDValue[AliQAv1::kINFO];
+ }
+ if(exactive!=0||exactivedriftregion!=0){
+ AliError(Form("%i modules and %i single drift regions excluded from the acquisition have recpoints. Active modules %i single drift region %i \n ",exactive,exactivedriftregion,active,activedriftregion));
+ AliError(Form("Layer 3: %i modules and %i single drift regions excluded from the acquisition have recpoints. Active modules %i single drift region %i \n ",exactivemoduleperlayer[0],exactivedrperlayer[0],activemoduleperlayer[0],activedrperlayer[0]));
+ AliError(Form("Layer 3: %i modules and %i single drift regions excluded from the acquisition have recpoints. Active modules %i single drift region %i \n ",exactivemoduleperlayer[1],exactivedrperlayer[1],activemoduleperlayer[1],activedrperlayer[1]));
+ results1.Form("%i modules and %i drift region excluded from the acquisition have recpoints",exactive,exactivedriftregion);
+ results2.Form("Follow the TWiki instructions and Call the SDD expert ");
+ color=kRed;
+ textcolor=kWhite;
+ sddQACheckerValue=fHighSDDValue[AliQAv1::kERROR];
+ }
+ if(excluded==exactive||excludeddriftregion==exactivedriftregion){
+ AliError(Form("All the modules (%d) or single drift regions (%d) excluded from the acquisition have recpoints!\n Active modules %i \t Active drfift regions %i\n",excluded,excludeddriftregion,active,activedriftregion));
+ results1.Form("All the modules (%d) or drift regions (%d) excluded from the acquisition have recpoints!",excluded,excludeddriftregion );
+ results2.Form("Follow the TWiki instructions and Call the SDD expert ");
+ color=kRed;
+ textcolor=kWhite;
+ sddQACheckerValue=fHighSDDValue[AliQAv1::kFATAL];
+ }
+ if(active==0||activedriftregion==0){
+ AliError(Form("No modules or single drift regions have recpoints: excluded %i \t excluded active %i \n\t\t excluded single drift regions %i \t excluded active drift regions %i \n", excluded, exactive, excludeddriftregion, exactivedriftregion));
+ results1.Form("No modules or drift region have recpoints: excluded modules %i excluded drift regions %i ", excluded, excludeddriftregion );
+ results2.Form("Follow the TWiki instructions and Call the SDD expert ");
+ color=kRed;
+ textcolor=kWhite;
+ sddQACheckerValue=fHighSDDValue[AliQAv1::kFATAL];
+ }
+
+ //TPaveText *pave[2]={0,0};
+ next.Begin();
+
+ while( (hdata=dynamic_cast<TH1* >(next())) )
+ {
+ if (hdata){
+ TString hname=hdata->GetName();
+ if(hname.Contains("SDDModPatternL3RP") || hname.Contains("SDDModPatternL4RP")){
+ if(hname.Contains("NORM"))continue;
+ //AliInfo("========================================Found histo 11\n");
+ TPaveText *ptext = ((TPaveText *)hdata->GetListOfFunctions()->FindObject("TPave"));
+ if(ptext) {
+ ptext->Clear();
+ ptext->AddText(results1.Data());
+ ptext->AddText(results2.Data());
+ ptext->SetFillColor(color);
+ ptext->SetTextColor(textcolor);
+ }
+ }
+ else
+ if(hname.Contains("SDDRecPointCheck"))
+ {
+
+ //AliInfo("========================================Found histo\n");
+ ((TH1F*)hdata)->SetBinContent(5,active);
+ ((TH1F*)hdata)->SetBinContent(6,filled);
+ ((TH1F*)hdata)->SetBinContent(7,activedriftregion);
+ ((TH1F*)hdata)->SetBinContent(8,filleddr);
+ ((TH1F*)hdata)->SetBinContent(9,excluded);
+ ((TH1F*)hdata)->SetBinContent(10,empty);
+ ((TH1F*)hdata)->SetBinContent(11,excludeddriftregion);
+ ((TH1F*)hdata)->SetBinContent(12,emptydr);
+ ((TH1F*)hdata)->SetBinContent(13,exactive);
+ ((TH1F*)hdata)->SetBinContent(14,emptydiff);
+ ((TH1F*)hdata)->SetBinContent(15,exactivedriftregion);
+ ((TH1F*)hdata)->SetBinContent(16,emptydrdiff);
+
+ //layer 3
+ ((TH1F*)hdata)->SetBinContent(19,activemoduleperlayer[0]);
+ ((TH1F*)hdata)->SetBinContent(20,filledmodules[0]);
+ ((TH1F*)hdata)->SetBinContent(21,activedrperlayer[0]);
+ ((TH1F*)hdata)->SetBinContent(22,filleddriftregion[0]);
+ ((TH1F*)hdata)->SetBinContent(23,excludedmoduleperlayer[0]);
+ ((TH1F*)hdata)->SetBinContent(24,emptymodules[0]);
+ ((TH1F*)hdata)->SetBinContent(25,excludeddrperlayer[0]);
+ ((TH1F*)hdata)->SetBinContent(26,emptydriftregion[0]);
+ ((TH1F*)hdata)->SetBinContent(27,exactivemoduleperlayer[0]);
+ ((TH1F*)hdata)->SetBinContent(28,emptyactivemoduleperlayer[0]);
+ ((TH1F*)hdata)->SetBinContent(29,exactivedrperlayer[0]);
+ ((TH1F*)hdata)->SetBinContent(30,emptyactivedrperlayer[0]);
+
+ //layer 4
+ ((TH1F*)hdata)->SetBinContent(35,activemoduleperlayer[1]);
+ ((TH1F*)hdata)->SetBinContent(36,filledmodules[1]);
+ ((TH1F*)hdata)->SetBinContent(37,activedrperlayer[1]);
+ ((TH1F*)hdata)->SetBinContent(38,filleddriftregion[1]);
+ ((TH1F*)hdata)->SetBinContent(39,excludedmoduleperlayer[1]);
+ ((TH1F*)hdata)->SetBinContent(40,emptymodules[1]);
+ ((TH1F*)hdata)->SetBinContent(41,excludeddrperlayer[1]);
+ ((TH1F*)hdata)->SetBinContent(42,emptydriftregion[1]);
+ ((TH1F*)hdata)->SetBinContent(43,exactivemoduleperlayer[1]);
+ ((TH1F*)hdata)->SetBinContent(44,emptyactivemoduleperlayer[1]);
+ ((TH1F*)hdata)->SetBinContent(45,exactivedrperlayer[1]);
+ ((TH1F*)hdata)->SetBinContent(46,emptyactivedrperlayer[1]);
+ //hdata->GetListOfFunctions()->Add(pave[0]);
+
+ }
+ }//if hadata