#include <Riostream.h>
+using std::endl;
+using std::cout;
/// \cond CLASSIMP
ClassImp(AliMUONRegionalTriggerBoard)
/// \endcond
// [+, -] * [Hpt, Lpt]
// transformed to [+, -, US, LS] * [Hpt, Lpt]
+ if ( IsNull() ) return; // Do nothing if all local responses are null
+
Int_t t[16];
for (Int_t i = 0; i < 16; ++i)
rank /= 2;
}
+
fResponse = t[0]; // 8-bit [H4:L4]
}
//___________________________________________
-UShort_t AliMUONRegionalTriggerBoard::Algo(UShort_t i, UShort_t j, char *thres, Int_t level)
+UShort_t AliMUONRegionalTriggerBoard::Algo(UShort_t i, UShort_t j, const char *thres, Int_t level)
{
/// implementation of the regional algorithm
/// similar to the global algorithm except for the
fMask = mask;
}
+//___________________________________________
+Bool_t AliMUONRegionalTriggerBoard::IsNull()
+{
+ /// Check if all local response are null
+ for (Int_t i=0; i<16; i++) {
+ if ( fLocalResponse[i] ) return kFALSE;
+ }
+ return kTRUE;
+}
+//___________________________________________
+void AliMUONRegionalTriggerBoard::Reset()
+{
+ /// Reset board
+
+ for (Int_t i=0; i<16; ++i) fLocalResponse[i] = 0;
+
+ fResponse = 0;
+
+}