]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In trigger:
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Dec 2009 16:13:27 +0000 (16:13 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Dec 2009 16:13:27 +0000 (16:13 +0000)
When getting the value of switches in the local board use the proper AliMpLocalBoard enum value rather than the hard-wired number.
(Diego)

MUON/AliMUONDigitMaker.cxx
MUON/AliMUONTriggerDisplay.cxx
MUON/AliMUONTriggerElectronics.cxx

index e79cf3b1ca86a2aadca2ccb81e25c4492b6a3742..06e62f8bd32b9b55061d4f6b9ab12a5f8eed882a 100644 (file)
@@ -422,7 +422,7 @@ Int_t AliMUONDigitMaker::TriggerDigits(Int_t nBoard,
           {            
             // not quite sure about this
             Int_t offset = 0;
-            if (iCath && localBoard->GetSwitch(6)) offset = -8;
+            if (iCath && localBoard->GetSwitch(AliMpLocalBoard::kZeroAllYLSB)) offset = -8;
             
             AliMpPad pad = seg->PadByLocation(nBoard,ibitxy+offset,kTRUE);
                         
index 610d768a3524e40f2881a4ee1017184a1533bd4d..bc8551ac24b62595f1902cdfaa70a8e489a4b295 100644 (file)
@@ -254,7 +254,7 @@ Bool_t AliMUONTriggerDisplay::InitOrDisplayTriggerInfo(TH1* inputHisto, TH2* dis
        // get pad from electronics
 
        Int_t offset = 0;
-       if (cath && localBoard->GetSwitch(6)) offset = -8;
+       if (cath && localBoard->GetSwitch(AliMpLocalBoard::kZeroAllYLSB)) offset = -8;
 
        AliMpPad pad = seg[cath]->PadByLocation(iBoard,iStrip+offset,kFALSE);
 
index ac665de0afe6e495af238b41c55821b8999a3b07..e55f9745eb4d006767f1b271a31b7a9980c247f9 100644 (file)
@@ -217,7 +217,7 @@ void AliMUONTriggerElectronics::Feed(const AliMUONVDigitStore& digitStore)
         
         if (b) 
         {
-          if (cathode && b->GetSwitch(6)) ibitxy += 8;
+          if (cathode && b->GetSwitch(AliMpLocalBoard::kZeroAllYLSB)) ibitxy += 8;
           
           b->SetbitM(ibitxy,cathode,ichamber-10);
         }