]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALQAChecker.cxx
Updated to q
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALQAChecker.cxx
index c871a149bdf707e95b0b4477a64aa04fb4a18ce7..54089f98f95e7e3ce05ee6217559f68a2ff3f00c 100644 (file)
@@ -57,7 +57,7 @@ AliQACheckerBase("EMCAL","EMCAL Quality Assurance Data Maker"),
 fTextSM(new TText*[fknSM]),
 fLineCol(new TLine(48.0,0.,48.0,47.0)),
 fLineRow(new TLine(0.,24.,96.,24.)),
-fText(new TPaveText(0.2,40.,1.6,90.,"br"))
+fText(new TPaveText(0.2,0.7,0.8,0.9,"NDC"))
 {
   // ctor
   fLineCol->SetLineColor(1);
@@ -87,7 +87,7 @@ AliQACheckerBase(qac.GetName(), qac.GetTitle()),
 fTextSM(new TText*[fknSM]) ,
 fLineCol(static_cast<TLine*>(qac.fLineCol->Clone())) , 
 fLineRow(static_cast<TLine*>(qac.fLineRow->Clone())) , 
-fText(new TPaveText(0.2,40.,1.6,90.,"br"))
+fText(new TPaveText(0.2,0.7,0.8,0.9,"NDC"))
 {
    // copy ctor 
   for (Int_t sm = 0 ; sm < fknSM ; sm++){
@@ -101,7 +101,7 @@ AliEMCALQAChecker& AliEMCALQAChecker::operator = (const AliEMCALQAChecker &qac)
   fTextSM  = new TText*[fknSM] ;
   fLineCol = static_cast<TLine*>(qac.fLineCol->Clone()) ; 
   fLineRow = static_cast<TLine*>(qac.fLineRow->Clone()) ; 
-  fText    = new TPaveText(0.2,40.,1.6,90.,"br") ;
+  fText    = new TPaveText(0.2,0.7,0.8,0.9,"NDC") ;
   for (Int_t sm = 0 ; sm < fknSM ; sm++){
     fTextSM[sm] = static_cast<TText *>(qac.fTextSM[sm]->Clone()) ;
   }
@@ -192,7 +192,7 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
           hdata->GetListOfFunctions()->Add(fTextSM[iSM]); 
        }
       }   
-      if ( ratio->GetListOfFunctions()->GetEntries() == 0 ){
+      if ( ratio->GetListOfFunctions()->GetEntries() == 0 ){ //adding the object at the beginning
         ratio->GetListOfFunctions()->Add(fText) ;
       }
 
@@ -210,21 +210,23 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
       rv = NGoodTower/nTot ; 
       printf("%2.2f %% towers out of range [0.8, 1.2]\n", (1-rv)*100);
       if(fText){
-        fText->DeleteText() ;
         fText->Clear() ; 
-      }      
-      fText->AddText(Form("%2.2f %% towers out of range [0.8, 1.2]", (1-rv)*100));     
-      if (rv < 0.9) {
-        test[specie] = 0.9 ;
-        // 2 lines text info for quality         
-        fText->SetFillColor(2) ;
-        fText->AddText(Form("EMCAL = NOK, CALL EXPERTS!!!")); 
-      }
-      else {
-        test[specie] = 0.1 ;
-        fText->SetFillColor(3) ;
-        fText->AddText(Form("EMCAL = OK, ENJOY...")); 
-      }
+        
+        fText->AddText(Form("%2.2f %% towers out of range [0.8, 1.2]", (1-rv)*100));     
+        if (rv < 0.9) {
+          test[specie] = 0.9 ;
+          // 2 lines text info for quality         
+          fText->SetFillColor(2) ;
+          fText->AddText(Form("EMCAL = NOK, CALL EXPERTS!!!")); 
+        }
+        else {
+          test[specie] = 0.1 ;
+          fText->SetFillColor(3) ;
+          fText->AddText(Form("EMCAL = OK, ENJOY...")); 
+        }
+        //hdata->Reset("ICE");
+        //ratio->Reset("ICE");
+      }//fText
      } 
     } //finish the checking
 }