Replace cast to Int_t by TMath::Nint function (Bogdan)
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Nov 2008 09:59:00 +0000 (09:59 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Nov 2008 09:59:00 +0000 (09:59 +0000)
STEER/AliReconstruction.cxx

index 22d6ba8..3c1c622 100644 (file)
@@ -3093,7 +3093,7 @@ Bool_t AliReconstruction::GetEventInfo()
   for( Int_t iclass=0; iclass < nclasses; iclass++ ) {
     AliTriggerClass* trclass = (AliTriggerClass*)classesArray.At(iclass);
     if (trclass) {
-      Int_t trindex = (Int_t)TMath::Log2(trclass->GetMask());
+      Int_t trindex = TMath::Nint(TMath::Log2(trclass->GetMask()));
       fesd->SetTriggerClass(trclass->GetName(),trindex);
       if (trmask & (1 << trindex)) {
        trclasses += " ";