warnings fixed
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 27 Feb 2011 22:07:01 +0000 (22:07 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 27 Feb 2011 22:07:01 +0000 (22:07 +0000)
T0/AliT0DataDCS.cxx

index d489f13..c0fb36e 100644 (file)
@@ -522,9 +522,10 @@ Bool_t AliT0DataDCS::ProcessData(TMap& aliasMap)
                     for(Int_t l=0; l<aliasEntr[j]; l++)
                     {
                       AliDCSValue *aValue=dynamic_cast<AliDCSValue*> (aliasArr->At(l));
-                      t0MPDcentA +=  aValue->GetFloat();
+                      t0MPDcentA +=  Int_t(aValue->GetFloat());
                     }
-                    fMPDcentA = t0MPDcentA /((Float_t) aliasEntr[j]);
+                   if(aliasEntr[j]!=0)
+                     fMPDcentA = t0MPDcentA / aliasEntr[j];
                   }
                  else if (j < 2*kScalers+4*kHV+4*kLV+4*kCFD+kTRM+kDRM+3*kAtten)
                   {