void AliMUONGlobalTriggerBoard::Scan(Option_t*) const
{
/// print global trigger output
- TBits w(8); w.Set(8,&fResponse);
+ TBits w(6); w.Set(6,&fResponse);
// TRG[1:0]
// 00 noth
// 10 positive track
// 11 undef
- Int_t iSP[2] = {0,0}, iSM[2] = {0,0}, iSU[2] = {0,0};
+ Int_t iS[2] = {0,0};
- TBits a(2), n(2), p(2), u(2);
-
- UShort_t val;
-
- val = 1; n.Set(2,&val);
- val = 2; p.Set(2,&val);
- val = 3; u.Set(2,&val);
-
- a[0] = w[2];
- a[1] = w[3];
-
- if (a==p) iSP[0] = 1;
- else if (a==n) iSM[0] = 1;
- else if (a==u) iSU[0] = 1;
+ iS[0] = (Int_t)w.TestBitNumber(0);
+ iS[1] = (Int_t)w.TestBitNumber(1);
- a[0] = w[6];
- a[1] = w[7];
-
- if (a==p) iSP[1] = 1;
- else if (a==n) iSM[1] = 1;
- else if (a==u) iSU[1] = 1;
-
- Int_t iPU[2] = {w[0],w[4]};
- Int_t iPL[2] = {w[1],w[5]};
+ Int_t iPU[2] = {w[4],w[5]};
+ Int_t iPL[2] = {w[2],w[3]};
printf("============================================\n");
printf(" Global Trigger output Low pt High pt\n");
- printf(" number of Single Plus :\t");
- for (Int_t i=0; i<2; i++) printf("%i\t",iSP[i]);
- printf("\n");
- printf(" number of Single Minus :\t");
- for (Int_t i=0; i<2; i++) printf("%i\t",iSM[i]);
- printf("\n");
- printf(" number of Single Undefined :\t");
- for (Int_t i=0; i<2; i++) printf("%i\t",iSU[i]);
+ printf(" number of Single :\t");
+ for (Int_t i=0; i<2; i++) printf("%i\t",iS[i]);
printf("\n");
printf(" number of UnlikeSign pair :\t");
for (Int_t i=0; i<2; i++) printf("%i\t",iPU[i]);