#include "AliMUONRegionalTriggerBoard.h"
+#include "AliLog.h"
+
#include "TBits.h"
#include <Riostream.h>
{
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;
//___________________________________________
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)