Calculation of fResponse moved from Response to LocalTrigger (Philippe C.)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 8 Jun 2007 07:45:18 +0000 (07:45 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 8 Jun 2007 07:45:18 +0000 (07:45 +0000)
MUON/AliMUONLocalTriggerBoard.cxx

index 4725997..64c9ff1 100644 (file)
@@ -1109,7 +1109,12 @@ void AliMUONLocalTriggerBoard::LocalTrigger()
        
 //    GET LUT OUTPUT FOR icirc/istripX1/deviation/istripY
        fLUT->GetLutOutput(fNumber, fStripX11, deviation, fStripY11, fLutLpt, fLutHpt);
-   }  
+       }
+   fResponse = fLutLpt[0]                      + 
+       static_cast<int>(fLutLpt[1]<<1) + 
+       static_cast<int>(fLutHpt[0]<<2) + 
+       static_cast<int>(fLutHpt[1]<<3);  
+
 }
 
 //___________________________________________
@@ -1325,12 +1330,6 @@ void AliMUONLocalTriggerBoard::Response()
 
    TrigY(yY1, yY2, yY3, yY4, yY3U, yY3D, yY4U, yY4D);
    
-// ASIGN fLutLpt, fLutHpt
+// ASIGN fLutLpt, fLutHpt and calculate fResponse
    LocalTrigger();
-
-   fResponse = fLutLpt[0]                      + 
-       static_cast<int>(fLutLpt[1]<<1) + 
-       static_cast<int>(fLutHpt[0]<<2) + 
-       static_cast<int>(fLutHpt[1]<<3);
 }
-