FUNCTION PHOSPI(IDHEP) C.---------------------------------------------------------------------- C. C. PHOTOS: PHOton radiation in decays function for SPIn determina- C. tion C. C. Purpose: Calculate the spin of particle with code IDHEP. The C. code of the particle is defined by the Particle Data C. Group in Phys. Lett. B204 (1988) 1. C. C. Input Parameter: IDHEP C. C. Output Parameter: Funtion value = spin of particle with code C. IDHEP C. C. Author(s): E. Barberio and B. van Eijk Created at: 29/11/89 C. Last update: 02/01/90 C. C.---------------------------------------------------------------------- IMPLICIT NONE REAL*8 PHOSPI INTEGER IDHEP,IDABS C-- C-- Array 'SPIN' contains the spin of the first 100 particles accor- C-- ding to the PDG particle code... REAL*8 SPIN(100) DATA SPIN/ 8*.5D0, 1.D0, 0.D0, 8*.5D0, 2*0.D0, 4*1.D0, 76*0.D0/ IDABS=ABS(IDHEP) C-- C-- Spin of quark, lepton, boson etc.... IF (IDABS.LE.100) THEN PHOSPI=SPIN(IDABS) ELSE C-- C-- ...other particles, however... PHOSPI=(MOD(IDABS,10)-1.D0)/2.D0 C-- C-- ...K_short and K_long are special !! PHOSPI=MAX(PHOSPI,0.D0) ENDIF RETURN END