142 |
call DOTRACK(NPLA,ZIN,XOUT,YOUT,AL_P,IFAIL) |
call DOTRACK(NPLA,ZIN,XOUT,YOUT,AL_P,IFAIL) |
143 |
if(IFAIL.ne.0)then |
if(IFAIL.ne.0)then |
144 |
GOOD2 = 0 |
GOOD2 = 0 |
145 |
print *,' CALORIMETER - WARNING F77: tracking failed ' |
c print *,' CALORIMETER - WARNING F77: tracking failed ' |
146 |
goto 969 |
goto 969 |
147 |
endif |
endif |
148 |
TX = TAN(ASIN(AL_P(3))) * COS(AL_P(4)) |
TX = TAN(ASIN(AL_P(3))) * COS(AL_P(4)) |
159 |
C CHECK IF XOUT OR YOUT ARE NaN |
C CHECK IF XOUT OR YOUT ARE NaN |
160 |
C |
C |
161 |
IF (XOUT(I).NE.XOUT(I).OR.YOUT(I).NE.YOUT(I)) THEN |
IF (XOUT(I).NE.XOUT(I).OR.YOUT(I).NE.YOUT(I)) THEN |
162 |
print *, |
c print *, |
163 |
& ' CALORIMETER - WARNING F77: tracking error (NaN values)' |
c & ' CALORIMETER - WARNING F77: tracking error (NaN values)' |
164 |
GOOD2 = 0 |
GOOD2 = 0 |
165 |
GOTO 969 |
GOTO 969 |
166 |
ENDIF |
ENDIF |
306 |
C |
C |
307 |
IF (CHTRACK.EQ.44) THEN |
IF (CHTRACK.EQ.44) THEN |
308 |
GOOD2 = 0 |
GOOD2 = 0 |
309 |
PRINT *,' CALORIMETER - WARNING F77: track outside calorimeter' |
c PRINT *,' CALORIMETER - WARNING F77: track outside calorimeter' |
310 |
GOTO 50 |
GOTO 50 |
311 |
ELSE |
ELSE |
312 |
IF ( IWPL(1).LE.IWPL(2) ) THEN |
IF ( IWPL(1).LE.IWPL(2) ) THEN |