]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONRegionalTriggerBoard.cxx
- Corrected copy constructor,
[u/mrichter/AliRoot.git] / MUON / AliMUONRegionalTriggerBoard.cxx
index 865c6ecca8c16b0082e40cbb7b9c107fc44f1ad5..586153be5688ac7b06e5b1aca962612cfeeecb41 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "AliMUONRegionalTriggerBoard.h"
 
+#include "AliLog.h"
+
 #include "TBits.h"
 
 #include <Riostream.h>
@@ -42,7 +44,7 @@ void AliMUONRegionalTriggerBoard::Response()
 {
    Int_t t[16];
 
-   for (Int_t i=0;i<16;i++) t[i] = fLocalResponse[i];
+   for (Int_t i=0;i<16;i++) t[i] = fLocalResponse[i] & fMask[i];
 
    Int_t rank = 8;
 
@@ -162,8 +164,28 @@ UShort_t AliMUONRegionalTriggerBoard::Algo(UShort_t i, UShort_t j, char *thres,
 //___________________________________________
 void AliMUONRegionalTriggerBoard::Scan(Option_t*)
 {
-
+   for (Int_t i=0; i<16; i++) 
+   {
+      TBits b;
+      b.Set(6,&fLocalResponse[i]);
+      
+      cout << "Entry " << i << " is " << b << endl;
+      
+   }
+   
 }
 
+//___________________________________________
+void AliMUONRegionalTriggerBoard::Mask(Int_t index, UShort_t mask)
+{
+  if ( index>=0 && index < 16 ) 
+  {
+    fMask[index]=mask;
+  }
+  else
+  {
+    AliError(Form("Index %d out of bounds (max %d)",index,16));
+  }
+}
 
 ClassImp(AliMUONRegionalTriggerBoard)