ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pythia_main.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pythia_main.f
1 *
2  COMMON /ludat2/ kchg(500,3),pmas(500,4),parf(2000),vckm(4,4)
3  COMMON /ludat3/ mdcy(500,3),mdme(2000,2),brat(2000),kfdp(2000,5)
4  COMMON /pysubs/ msel,msub(200),kfin(2,-40:40),ckin(200)
5  COMMON /pypars/ mstp(200),parp(200),msti(200),pari(200)
6 *********** COMMON /LUJETS/ N,K(4000,5),P(4000,5),V(4000,5)
7  EXTERNAL ludata,pydata
8  CHARACTER frame*4,beam*10,target*10
9  REAL win
10  INTEGER lucomp
11  REAL pdt(500,5)
12 *
13  frame = 'CMS'
14  beam = 'P'
15  TARGET = 'P'
16  win = 14000.
17  nevnt = 3
18 *
19  msel = 0
20  msub(102) = 1
21  msub(123) = 1
22  msub(124) = 1
23 *
24  pmas(6,1) = 176.
25  pmas(25,1) = 500.
26  ckin(1) = 470.
27  ckin(2) = 530.
28 *
29 * turn off all Higgs decays except the ZZ
30 *
31  ih = lucomp(25)
32  DO idc=mdcy(ih,2),mdcy(ih,2)+mdcy(ih,3)-1
33  IF (kfdp(idc,1).NE.23.AND.mdme(idc,1).EQ.1) mdme(idc,1)=0
34  ENDDO
35 *
36 * turn off all Z decays except mumu or ee
37 *
38  iz = lucomp(23)
39  DO idc=mdcy(iz,2),mdcy(iz,2)+mdcy(iz,3)-1
40  IF (mdme(idc,1).EQ.1) THEN
41  IF ((iabs(kfdp(idc,1)).NE.13)
42  > .AND.(iabs(kfdp(idc,1)).NE.11)) THEN
43  mdme(idc,1)=0
44  ENDIF
45  ENDIF
46  ENDDO
47 ***********************************************************
48  CALL pyinit(frame,beam,TARGET,win)
49 *
50  DO ievt = 1, nevnt
51 *
52  CALL pyevnt
53  CALL luedit(11)
54  CALL luedit(12)
55  CALL luedit(15)
56 *
57  CALL luhepc(1)
58 *
59  CALL hep2g4
60 *
61  ENDDO
62 ***********************************************************
63  stop
64  END
65 ***********************************************************
66  SUBROUTINE hep2g4
67 *
68 * Output /HEPEVT/ event structure to G4HEPEvtInterface
69 *
70 * M.Asai (asai@kekvax.kek.jp) -- 24/09/96
71 *
72 ***********************************************************
73  parameter(nmxhep=2000)
74  common/hepevt/nevhep,nhep,isthep(nmxhep),idhep(nmxhep),
75  >jmohep(2,nmxhep),jdahep(2,nmxhep),phep(5,nmxhep),vhep(4,nmxhep)
76  DOUBLE PRECISION phep,vhep
77 *
78  WRITE(6,*) nhep
79  DO ihep=1,nhep
80  WRITE(6,10)
81  > isthep(ihep),idhep(ihep),jdahep(1,ihep),jdahep(2,ihep),
82  > phep(1,ihep),phep(2,ihep),phep(3,ihep),phep(5,ihep)
83 10 FORMAT(4i5,4(1x,d15.8))
84  ENDDO
85 *
86  RETURN
87  END
88