From: gconesab Date: Mon, 17 Feb 2014 11:16:26 +0000 (+0100) Subject: fix compilation warning on bit check on a sum X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=eef22263a829167e46436424738de333ad55e0d2;p=u%2Fmrichter%2FAliRoot.git fix compilation warning on bit check on a sum --- diff --git a/PWG/CaloTrackCorrBase/AliCaloTrackReader.cxx b/PWG/CaloTrackCorrBase/AliCaloTrackReader.cxx index 7f3f35b9eec..ef99e283991 100755 --- a/PWG/CaloTrackCorrBase/AliCaloTrackReader.cxx +++ b/PWG/CaloTrackCorrBase/AliCaloTrackReader.cxx @@ -2210,10 +2210,10 @@ TArrayI AliCaloTrackReader::GetTriggerPatches(Int_t tmin, Int_t tmax ) Int_t sum = 0; caloTrigger->GetL1TimeSum(sum); - Bool_t isEGA1 = ((bit >> fBitEGA ) & 0x1) && IsEventEMCALL1Gamma1() ; - Bool_t isEGA2 = ((bit >> fBitEGA+1) & 0x1) && IsEventEMCALL1Gamma2() ; - Bool_t isEJE1 = ((bit >> fBitEJE ) & 0x1) && IsEventEMCALL1Jet1 () ; - Bool_t isEJE2 = ((bit >> fBitEJE+1) & 0x1) && IsEventEMCALL1Jet2 () ; + Bool_t isEGA1 = ((bit >> fBitEGA ) & 0x1) && IsEventEMCALL1Gamma1() ; + Bool_t isEGA2 = ((bit >> (fBitEGA+1)) & 0x1) && IsEventEMCALL1Gamma2() ; + Bool_t isEJE1 = ((bit >> fBitEJE ) & 0x1) && IsEventEMCALL1Jet1 () ; + Bool_t isEJE2 = ((bit >> (fBitEJE+1)) & 0x1) && IsEventEMCALL1Jet2 () ; if(!isEGA1 && !isEJE1 && !isEGA2 && !isEJE2) continue;