]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/PHOTOS/phospi.F
minor coding rule corrections, removed deprecated class
[u/mrichter/AliRoot.git] / TEvtGen / PHOTOS / phospi.F
CommitLineData
da0e9ce3 1 FUNCTION PHOSPI(IDHEP)
2C.----------------------------------------------------------------------
3C.
4C. PHOTOS: PHOton radiation in decays function for SPIn determina-
5C. tion
6C.
7C. Purpose: Calculate the spin of particle with code IDHEP. The
8C. code of the particle is defined by the Particle Data
9C. Group in Phys. Lett. B204 (1988) 1.
10C.
11C. Input Parameter: IDHEP
12C.
13C. Output Parameter: Funtion value = spin of particle with code
14C. IDHEP
15C.
16C. Author(s): E. Barberio and B. van Eijk Created at: 29/11/89
17C. Last update: 02/01/90
18C.
19C.----------------------------------------------------------------------
20 IMPLICIT NONE
21 REAL*8 PHOSPI
22 INTEGER IDHEP,IDABS
23C--
24C-- Array 'SPIN' contains the spin of the first 100 particles accor-
25C-- ding to the PDG particle code...
26 REAL*8 SPIN(100)
27 DATA SPIN/ 8*.5D0, 1.D0, 0.D0, 8*.5D0, 2*0.D0, 4*1.D0, 76*0.D0/
28 IDABS=ABS(IDHEP)
29C--
30C-- Spin of quark, lepton, boson etc....
31 IF (IDABS.LE.100) THEN
32 PHOSPI=SPIN(IDABS)
33 ELSE
34C--
35C-- ...other particles, however...
36 PHOSPI=(MOD(IDABS,10)-1.D0)/2.D0
37C--
38C-- ...K_short and K_long are special !!
39 PHOSPI=MAX(PHOSPI,0.D0)
40 ENDIF
41 RETURN
42 END