]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TEvtGen/EvtGenModels/begevtgenstore.F
added a histogram
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenModels / begevtgenstore.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: begevtgenstore.F
12C
13C Description:
14C
15C Modification history:
16C
17C DJL/RYD August 11, 1998 Module created
18C
19C------------------------------------------------------------------------
20 subroutine begevtgenstore(nument,eventnum,numparticle,istat,
21 + partnum,motherfirst,motherlast,
22 + daugfirst,dauglast,
23 + px,py,pz,e,m,x,y,z,t)
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 implicit none
33#include "EvtGenModels/stdhep.inc"
34
35 integer nument,eventnum,numparticle,istat,partnum
36 integer motherfirst,motherlast,daugfirst,dauglast
37
38 integer stdhepnum
39
40 double precision px,py,pz,e,m,x,y,z,t
41
42 stdhepnum=partnum
43
44 if (istat.eq.1) then
45
46c make the quarks unstable so that geant will not try
47c to put them through the detector simulation!
48
49 if (
50 + stdhepnum.eq.-1.or.
51 + stdhepnum.eq. 1.or.
52 + stdhepnum.eq.-2.or.
53 + stdhepnum.eq. 2.or.
54 + stdhepnum.eq.-3.or.
55 + stdhepnum.eq. 3.or.
56 + stdhepnum.eq.-4.or.
57 + stdhepnum.eq. 4.or.
58 + stdhepnum.eq.-5.or.
59 + stdhepnum.eq. 5.or.
60 + stdhepnum.eq.-6.or.
61 + stdhepnum.eq. 6) then
62 istat=2
63 endif
64
65
66
67
68c if (
69c + stdhepnum.ne.-1.and.
70c + stdhepnum.ne. 1.and.
71c + stdhepnum.ne.-2.and.
72c + stdhepnum.ne. 2.and.
73c + stdhepnum.ne.-3.and.
74c + stdhepnum.ne. 3.and.
75c + stdhepnum.ne.-4.and.
76c + stdhepnum.ne. 4.and.
77c + stdhepnum.ne.-5.and.
78c + stdhepnum.ne. 5.and.
79c + stdhepnum.ne.-6.and.
80c + stdhepnum.ne. 6.and.
81c + stdhepnum.ne.-11.and.
82c + stdhepnum.ne.11.and.
83c + stdhepnum.ne.-13.and.
84c + stdhepnum.ne.13.and.
85c + stdhepnum.ne.12.and.
86c + stdhepnum.ne.-12.and.
87c + stdhepnum.ne.14.and.
88c + stdhepnum.ne.-14.and.
89c + stdhepnum.ne.16.and.
90c + stdhepnum.ne.-16.and.
91c + stdhepnum.ne.2212.and.
92c + stdhepnum.ne.-2212.and.
93c + stdhepnum.ne.2112.and.
94c + stdhepnum.ne.-2112.and.
95c + stdhepnum.ne.211.and.
96c + stdhepnum.ne.-211.and.
97c + stdhepnum.ne.321.and.
98c + stdhepnum.ne.-321.and.
99c + stdhepnum.ne.130.and.
100c + stdhepnum.ne.310.and.
101c + stdhepnum.ne.22) then
102c
103c print *,'particle stdhep:',stdhepnum,' is stable'
104c
105c endif
106
107 endif
108
109 nevhep=eventnum
110 nhep=numparticle
111 isthep(nument)=istat
112 idhep(nument)=stdhepnum
113 jmohep(1,nument)=motherfirst
114 jmohep(2,nument)=motherlast
115 jdahep(1,nument)=daugfirst
116 jdahep(2,nument)=dauglast
117 phep(1,nument)=px
118 phep(2,nument)=py
119 phep(3,nument)=pz
120 phep(4,nument)=e
121 phep(5,nument)=m
122 vhep(1,nument)=x
123 vhep(2,nument)=y
124 vhep(3,nument)=z
125 vhep(4,nument)=t
126
127 return
128
129 end
130
131
132
133
134