coverity: move fText usage until after fText is checked
authordsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jan 2012 13:48:05 +0000 (13:48 +0000)
committerdsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 31 Jan 2012 13:48:05 +0000 (13:48 +0000)
EMCAL/AliEMCALQAChecker.cxx

index 5abb7d8..f2c4863 100644 (file)
@@ -232,7 +232,6 @@ void AliEMCALQAChecker::CheckRaws(Double_t * test, TObjArray ** list)
          return;
        } 
       }
-      lstF->Add(fText->Clone()) ;
       //
       //now check the ratio histogram
       Double_t binContent = 0. ;  
@@ -248,6 +247,7 @@ 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){
+       lstF->Add(fText->Clone()) ;
         fText->Clear() ; 
         
         fText->AddText(Form("%2.2f %% towers out of range [0.8, 1.2]", (1-rv)*100));