* * $Id$ * * $Log$ * Revision 1.1 2000/06/19 20:00:31 eugenio * Initial revision * * Revision 1.1.1.1 1994/11/22 16:57:03 zfiles * first version of korb in CVS * * #include "sys/CLEO_machine.h" #include "pilot.h" *CMZ : 2.00/00 21/01/93 15.42.33 by Alan Weinstein *-- Author : SUBROUTINE DEXPK(MODE,ISGN,POL,PNU,PAA,PIM1,PIM2,PIPL,JAA) C ---------------------------------------------------------------------- * THIS SIMULATES TAU DECAY IN TAU REST FRAME * INTO NU A1, NEXT A1 DECAYS INTO RHO PI AND FINALLY RHO INTO PI PI. * OUTPUT FOUR MOMENTA: PNU TAUNEUTRINO, * PAA A1 * PIM1 PION MINUS (OR PI0) 1 (FOR TAU MINUS) * PIM2 PION MINUS (OR PI0) 2 * PIPL PION PLUS (OR PI-) * (PIPL,PIM1) FORM A RHO C ---------------------------------------------------------------------- COMMON / INOUT / INUT,IOUT REAL POL(4),HV(4),PAA(4),PNU(4),PIM1(4),PIM2(4),PIPL(4) DATA IWARM/0/ C IF(MODE.EQ.-1) THEN C =================== IWARM=1 CALL DADMPK( -1,ISGN,HV,PNU,PAA,PIM1,PIM2,PIPL,JAA) CC CALL HBOOK1(816,'WEIGHT DISTRIBUTION DEXAA $',100,-2.,2.) C ELSEIF(MODE.EQ. 0) THEN * ======================= 300 CONTINUE IF(IWARM.EQ.0) GOTO 902 CALL DADMPK( 0,ISGN,HV,PNU,PAA,PIM1,PIM2,PIPL,JAA) WT=(1+POL(1)*HV(1)+POL(2)*HV(2)+POL(3)*HV(3))/2. CC CALL HFILL(816,WT) CALL RANMAR(RN,1) IF(RN.GT.WT) GOTO 300 C ELSEIF(MODE.EQ. 1) THEN * ======================= CALL DADMPK( 1,ISGN,HV,PNU,PAA,PIM1,PIM2,PIPL,JAA) CC CALL HPRINT(816) ENDIF C ===== RETURN 902 WRITE(IOUT, 9020) 9020 FORMAT(' ----- DEXPK: LACK OF INITIALISATION') STOP END