* * $Id$ * * $Log$ * Revision 1.1 2000/06/19 20:00:31 eugenio * Initial revision * * Revision 1.1.1.1 1994/11/22 16:57:02 zfiles * first version of korb in CVS * * #include "sys/CLEO_machine.h" #include "pilot.h" *CMZ : 2.00/00 21/01/93 15.42.30 by Alan Weinstein *-- Author : SUBROUTINE DEXMU(MODE,ISGN,POL,PNU,PWB,Q1,Q2,PH) C ---------------------------------------------------------------------- C THIS SIMULATES TAU DECAY IN ITS REST FRAME C INTO MUON AND TWO NEUTRINOS C OUTPUT FOUR MOMENTA: PNU TAUNEUTRINO, C PWB W-BOSON C Q1 MUON C Q2 MUON-NEUTRINO C ---------------------------------------------------------------------- COMMON / INOUT / INUT,IOUT REAL POL(4),HV(4),PWB(4),PNU(4),Q1(4),Q2(4),PH(4) DATA IWARM/0/ C IF(MODE.EQ.-1) THEN C =================== IWARM=1 CALL DADMMU( -1,ISGN,HV,PNU,PWB,Q1,Q2,PH) CC CALL HBOOK1(814,'WEIGHT DISTRIBUTION DEXMU $',100,0,2) C ELSEIF(MODE.EQ. 0) THEN C ======================= 300 CONTINUE IF(IWARM.EQ.0) GOTO 902 CALL DADMMU( 0,ISGN,HV,PNU,PWB,Q1,Q2,PH) WT=(1+POL(1)*HV(1)+POL(2)*HV(2)+POL(3)*HV(3))/2. CC CALL HFILL(814,WT) CALL RANMAR(RN,1) IF(RN.GT.WT) GOTO 300 C ELSEIF(MODE.EQ. 1) THEN C ======================= CALL DADMMU( 1,ISGN,HV,PNU,PWB,Q1,Q2,PH) CC CALL HPRINT(814) ENDIF C ===== RETURN 902 WRITE(IOUT, 9020) 9020 FORMAT(' ----- DEXMU: LACK OF INITIALISATION') STOP END