]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenModels/begevtgenstorex.F
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenModels / begevtgenstorex.F
CommitLineData
da0e9ce3 1C--------------------------------------------------------------------------
2C
3C Environment:
4C This software is part of the EvtGen package developed jointly
5C for the BaBar and CLEO collaborations. If you use all or part
6C of it, please give an appropriate acknowledgement.
7C
8C Copyright Information: See EvtGen/COPYRIGHT
9C Copyright (C) 1998 Caltech, UCSB
10C
11C Module: begevtgenstorex.F
12C
13C Description:
14C
15C Modification history:
16C
17C DJL/RYD August 11, 1998 Module created
18C
19C------------------------------------------------------------------------
20 subroutine begevtgenstorex(entry,eventnum,numparticle,istat,
21 + partnum,mother,daugfirst,dauglast,
22 + px,py,pz,e,m,x,y,z,t)
23 implicit none
24*
25* routine to fill the stdhep common blocks from
26* evtgen (C++). This routine allows the C++ program not to
27* have to mess with common blocks.
28*
29* Anders Ryd, Dec 96 Created.
30*
31*
32#include "EvtGenModels/stdhep.inc"
33
34 logical qedrad
35 integer ph_nmxhep ! this is parameter nmxhep in photos/photos_make
36* ! Renamed here to avoid name conflict in stdhep.inc
37 parameter (ph_nmxhep=10000)
38 common / phoqed / qedrad(ph_nmxhep)
39
40 integer entry,eventnum,numparticle,istat,partnum
41 integer mother,daugfirst,dauglast
42 integer stdhepnum, i
43 double precision px,py,pz,e,m,x,y,z,t
44
45 stdhepnum=partnum
46
47 nevhep=eventnum
48 nhep=numparticle
49 isthep(entry)=istat
50 idhep(entry)=stdhepnum
51 jmohep(1,entry)=mother
52 jmohep(2,entry)=0
53 jdahep(1,entry)=daugfirst
54 jdahep(2,entry)=dauglast
55 phep(1,entry)=px
56 phep(2,entry)=py
57 phep(3,entry)=pz
58 phep(4,entry)=e
59 phep(5,entry)=m
60 vhep(1,entry)=x
61 vhep(2,entry)=y
62 vhep(3,entry)=z
63 vhep(4,entry)=t
64
65 qedrad(entry)=.true.
66 if (daugfirst.gt.0 .and. dauglast.gt.0) THEN
67 do i=daugfirst, dauglast
68 qedrad(i) = .true.
69 end do
70 end if
71
72 return
73
74 end
75
76