2 C.----------------------------------------------------------------------
4 C. PHOTOS: PHOton radiation in decays function for SPIn determina-
7 C. Purpose: Calculate the spin of particle with code IDHEP. The
8 C. code of the particle is defined by the Particle Data
9 C. Group in Phys. Lett. B204 (1988) 1.
11 C. Input Parameter: IDHEP
13 C. Output Parameter: Funtion value = spin of particle with code
16 C. Author(s): E. Barberio and B. van Eijk Created at: 29/11/89
17 C. Last update: 02/01/90
19 C.----------------------------------------------------------------------
24 C-- Array 'SPIN' contains the spin of the first 100 particles accor-
25 C-- ding to the PDG particle code...
27 DATA SPIN/ 8*.5D0, 1.D0, 0.D0, 8*.5D0, 2*0.D0, 4*1.D0, 76*0.D0/
30 C-- Spin of quark, lepton, boson etc....
31 IF (IDABS.LE.100) THEN
35 C-- ...other particles, however...
36 PHOSPI=(MOD(IDABS,10)-1.D0)/2.D0
38 C-- ...K_short and K_long are special !!
39 PHOSPI=MAX(PHOSPI,0.D0)