]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenModels/begevtgengetx.F
added a histogram
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenModels / begevtgengetx.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: begevtgengetx.F
12C
13C Description:
14C
15C Modification history:
16C
17C DJL/RYD August 11, 1998 Module created
18C
19C------------------------------------------------------------------------
20 subroutine begevtgengetx(entry,eventnum,numparticle,istat,
21 + partnum,mother,daugfirst,dauglast,
22 + px,py,pz,e,m,x,y,z,t)
23*
24* routine to read from the stdhep common block from
25* evtgen (C++). This routine allows the C++ program not to
26* have to mess with common blocks.
27*
28* Anders Ryd, Oct 1 Created.
29*
30*
31 implicit none
32
33C INTEGER NMXHEP
34C PARAMETER (NMXHEP=4000) !!! KRAL - NEW SIZE
35C
36C INTEGER IDHEP,ISTHEP,JDAHEP,JMOHEP,NEVHEP,NHEP
37C real PHEP,VHEP !!! Kral - double precision for STDHEP v3.0
38C COMMON/XHEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP),
39C &JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP)
40C SAVE /XHEPEVT/
41
42#include "EvtGenModels/stdhep.inc"
43
44 integer entry,eventnum,numparticle,istat,partnum
45 integer mother,daugfirst,dauglast
46
47 integer stdhepnum
48
49 double precision px,py,pz,e,m,x,y,z,t
50
51 stdhepnum=partnum
52
53
54
55 eventnum=nevhep
56 numparticle=nhep
57 istat=isthep(entry)
58 stdhepnum=idhep(entry)
59 mother=jmohep(1,entry)
60 daugfirst=jdahep(1,entry)
61 dauglast=jdahep(2,entry)
62 px=phep(1,entry)
63 py=phep(2,entry)
64 pz=phep(3,entry)
65 e=phep(4,entry)
66 m=phep(5,entry)
67 x=vhep(1,entry)
68 y=vhep(2,entry)
69 z=vhep(3,entry)
70 t=vhep(4,entry)
71
72 return
73
74 end
75
76