printf("===============================================================\n");
printf(" 5432109876543210");
- char *x[4] = {"XMC11","XMC12","XMC21","XMC22"};
- char *s[4] = {" ",
+ const char *x[4] = {"XMC11","XMC12","XMC21","XMC22"};
+ const char *s[4] = {" ",
" ",
" ",
" "};
sgleHit1[2*i+1] = (!ch1e[i+1]|!ch1e[i+2]|(ch1e[i]^ch1e[i+3])) &
(!ch2e[i+2] | !ch2e[i+3] | (ch2e[i+1]^ch2e[i+4]));
dbleHit1[2*i+1] = ch1e[i+1]&ch1e[i+2]&!(ch1e[i]^ch1e[i+3]) &
- (ch2e[i+2]&(!ch2e[i+1]|!ch2e[i]) |
+ ((ch2e[i+2]&(!ch2e[i+1]|!ch2e[i])) |
(ch2e[i+3]&(ch2e[i+2]|!ch2e[i+4]|!ch2e[i+5])));
}
sgleHit2[2*i+1] = (!ch3e[i+1]|!ch3e[i+2]|(ch3e[i]^ch3e[i+3])) &
(!ch4e[i+2] | !ch4e[i+3] | (ch4e[i+1]^ch4e[i+4]));
dbleHit2[2*i+1] = ch3e[i+1]&ch3e[i+2]&!(ch3e[i]^ch3e[i+3]) &
- (ch4e[i+2]&(!ch4e[i+1]|!ch4e[i]) |
+ ((ch4e[i+2]&(!ch4e[i+1]|!ch4e[i])) |
(ch4e[i+3]&((ch4e[i+2]|!ch4e[i+4])|!ch4e[i+5])));
}
Int_t frontImage[16];
for (i=1; i<15; i++) {
- frontImage[i] = (dble1[i] | sgle1[i]) &
- (dble2[i+1] | dble2[i] | dble2[i-1]) |
+ frontImage[i] = ((dble1[i] | sgle1[i]) &
+ (dble2[i+1] | dble2[i] | dble2[i-1])) |
(dble1[i] & (sgle2[i+1] | sgle2[i] | sgle2[i-1]));
}
- frontImage[0] = (dble1[0] | sgle1[0]) &
- (dble2[1] | dble2[0]) | (dble1[0] & (sgle2[1] | sgle2[0]));
+ frontImage[0] = ((dble1[0] | sgle1[0]) &
+ (dble2[1] | dble2[0])) | (dble1[0] & (sgle2[1] | sgle2[0]));
- frontImage[15] = (dble1[15] | sgle1[15]) &
- (dble2[15] | dble2[14]) | (dble1[15] & (sgle2[15] | sgle2[14]));
+ frontImage[15] = ((dble1[15] | sgle1[15]) &
+ (dble2[15] | dble2[14])) | (dble1[15] & (sgle2[15] | sgle2[14]));
//debug
Int_t deviation=0;
Int_t iStripY=0;
Int_t iStripX=0;
- Bool_t xOutput=kFALSE;
- Bool_t yOutput=kFALSE;
-
- for (Int_t i=0; i<4; i++) deviation += static_cast<int>( fMinDev[i] << i );
- for (Int_t i=0; i<4; i++) iStripY += static_cast<int>( fCoordY[i] << i );
-
- if (fMinDev[4]==1 && !deviation) xOutput=kFALSE; // no trigger in X
- else xOutput=kTRUE; // trigger in X
- if (fCoordY[4]==1 && iStripY==15) yOutput=kFALSE; // no trigger in Y
- else yOutput=kTRUE; // trigger in Y
+ Bool_t xOutput = IsTrigX();
+ Bool_t yOutput = IsTrigY();
if (xOutput) {
for (Int_t i=0; i<5; i++) iStripX += static_cast<int>( fMinDevStrip[i] << i );
+ for (Int_t i=0; i<4; i++) deviation += static_cast<int>( fMinDev[i] << i );
fDev = deviation;
fStripX11 = iStripX;
}
if (yOutput) {
+ for (Int_t i=0; i<4; i++) iStripY += static_cast<int>( fCoordY[i] << i );
fStripY11 = iStripY;
fTrigY = fCoordY[4];
}
Int_t lL = atoi(&l[4]), cC = atoi(&l[2]), sS = (copy=='R') ? +1 : -1;
- char *b[4] = {"12", "34", "56", "78"};
+ const char *b[4] = {"12", "34", "56", "78"};
Int_t ib = 0;
LocalTrigger();
}
+//___________________________________________
+Bool_t AliMUONLocalTriggerBoard::IsTrigY() const
+{
+ /// Return the response of non-bending plane
+ Int_t iStripY = 0;
+ Bool_t output = kFALSE;
+
+ for (Int_t i=0; i<4; i++) iStripY += static_cast<int>( fCoordY[i] << i );
+
+ if (fCoordY[4]==1 && iStripY==15) output=kFALSE; // no trigger in Y
+ else output=kTRUE; // trigger in Y
+
+ return output;
+}
+
+//___________________________________________
+Bool_t AliMUONLocalTriggerBoard::IsTrigX() const
+{
+ /// Return the response of bending plane
+
+ Int_t deviation = 0;
+ Bool_t output = kFALSE;
+
+ for (Int_t i=0; i<4; i++) deviation += static_cast<int>( fMinDev[i] << i );
+
+ if (fMinDev[4]==1 && !deviation) output=kFALSE; // no trigger in X
+ else output=kTRUE; // trigger in X
+
+ return output;
+}