X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=MUON%2FAliMUONGlobalTrigger.cxx;h=ec84fd69ca0025717a6aab325b8309946e98921d;hb=909e332a6bb76ed38615640a89638c27fb07f022;hp=dab6de5c1f487d25902883722da84cf0406f56bf;hpb=a90f8830fb330bfaa442f840fd5a4e54b1c63880;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONGlobalTrigger.cxx b/MUON/AliMUONGlobalTrigger.cxx index dab6de5c1f4..ec84fd69ca0 100644 --- a/MUON/AliMUONGlobalTrigger.cxx +++ b/MUON/AliMUONGlobalTrigger.cxx @@ -112,15 +112,14 @@ void AliMUONGlobalTrigger::SetFromGlobalResponse(UShort_t globalResponse) /// [US:2, LS:2, Single:2] with [Hpt, Lpt] /// remove Apt - // don't have the information anymore of the sign - fSingleLpt = globalResponse & 0x1; - fSingleHpt = (globalResponse >> 1) & 0x1; + fSingleLpt = (globalResponse >> 1) & 0x1; + fSingleHpt = (globalResponse >> 2) & 0x1; - fPairUnlikeLpt = (globalResponse >> 4) & 0x1; - fPairUnlikeHpt = (globalResponse >> 5) & 0x1; + fPairLikeLpt = (globalResponse >> 3) & 0x1; + fPairLikeHpt = (globalResponse >> 4) & 0x1; - fPairLikeLpt = (globalResponse >> 2) & 0x1; - fPairLikeHpt = (globalResponse >> 3) & 0x1; + fPairUnlikeLpt = (globalResponse >> 5) & 0x1; + fPairUnlikeHpt = (globalResponse >> 6) & 0x1; } @@ -131,16 +130,16 @@ UChar_t AliMUONGlobalTrigger::GetGlobalResponse() const /// from class member values /// [US:2, LS:2, Single:2] with [Hpt, Lpt] - Int_t response = 0; + UChar_t response = 0; - if (SingleLpt()) response|= 0x1; - if (SingleHpt()) response|= 0x2; + if (SingleLpt()) response|= 0x2; + if (SingleHpt()) response|= 0x4; - if (PairLikeLpt()) response|= 0x4; - if (PairLikeHpt()) response|= 0x8; + if (PairLikeLpt()) response|= 0x8; + if (PairLikeHpt()) response|= 0x10; - if (PairUnlikeLpt()) response|= 0x10; - if (PairUnlikeHpt()) response|= 0x20; + if (PairUnlikeLpt()) response|= 0x20; + if (PairUnlikeHpt()) response|= 0x40; return response; }