]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct the output of the Scan function
authorvulpescu <vulpescu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Apr 2008 10:55:09 +0000 (10:55 +0000)
committervulpescu <vulpescu@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Apr 2008 10:55:09 +0000 (10:55 +0000)
MUON/AliMUONGlobalTriggerBoard.cxx

index f91976789ae3952d8392d41a3c02a67292605e97..f6baec6d41682714cf064c46b2f57b5e1b47a2e5 100644 (file)
@@ -201,7 +201,7 @@ UShort_t AliMUONGlobalTriggerBoard::Algo(UShort_t i, UShort_t j, char *thres)
 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
@@ -209,43 +209,18 @@ void AliMUONGlobalTriggerBoard::Scan(Option_t*) const
 // 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]);