]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed warnings
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 May 2010 08:42:34 +0000 (08:42 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 May 2010 08:42:34 +0000 (08:42 +0000)
FMD/AliFMDQAChecker.cxx

index 95365ae156121406f4f93be517a110fa98376755..3ae58b6772247a143893c66ca1d88b36e551588a 100644 (file)
@@ -71,13 +71,11 @@ void AliFMDQAChecker::Check(Double_t*                   rv,
     
     if(!list[specie]) continue;
     
-    TIter next1(list[specie]);
-    TH1F*  hist = 0;
-    
-    for(Int_t i= 0; i<list[specie]->GetEntriesFast(); i++) {
+    TH1F* hist  = 0;
+    Int_t nHist = list[specie]->GetEntriesFast();
+    for(Int_t i= 0; i< nHist; i++) {
       
-      hist = (TH1F*)list[specie]->At(i);
-      if(!hist) continue;
+      if (!(hist = static_cast<TH1F*>(list[specie]->At(i)))) continue;
       
       if(what == AliQAv1::kESD) 
        rv[specie] += (hist->GetMean() > 0 ? 1 : 0);