This commit was generated by cvs2svn to compensate for changes in r1831,
[u/mrichter/AliRoot.git] / PYTHIA6 / pythia6_common_block_address.F
CommitLineData
952cc209 1 integer function pythia6_common_block_address(common_block_name)
2c-----------------------------------------------------------------------
3c revision history:
4c -----------------
5c *0001 Jun 29 1998 P.Murat: created
6c *0002 Apr 30 1999 P.Murat: force loading in the BLOCK DATA
7c-----------------------------------------------------------------------
8#include "pythia6.inc"
9c#include "stdhep.inc"
10c
11 character*(*) common_block_name
12 external pydata
13c
14c-----------------------------------------------------------------------
15 integer adrressc, pythia6_addressi, pythia6_addressf
16 integer pythia6_addressd
17 integer common_block_address
18c-----------------------------------------------------------------------
19 common_block_address = 0
20c-----------------------------------------------------------------------
21c GEANT common-blocks
22c-----------------------------------------------------------------------
23 if (common_block_name.eq."HEPEVT") then
24 common_block_address = pythia6_addressi(NEVHEP)
25 elseif (common_block_name.eq."PYJETS") then
26 common_block_address = pythia6_addressi(N)
27 elseif (common_block_name.eq."PYDAT1") then
28 common_block_address = pythia6_addressi(MSTU)
29 elseif (common_block_name.eq."PYDAT2") then
30 common_block_address = pythia6_addressi(KCHG)
31 elseif (common_block_name.eq."PYDAT3") then
32 common_block_address = pythia6_addressi(MDCY)
33 elseif (common_block_name.eq."PYDAT4") then
34 common_block_address = pythia6_addressc(CHAF)
35 elseif (common_block_name.eq."PYDATR") then
36 common_block_address = pythia6_addressi(MRPY)
37 elseif (common_block_name.eq."PYSUBS") then
38 common_block_address = pythia6_addressi(MSEL)
39 elseif (common_block_name.eq."PYPARS") then
40 common_block_address = pythia6_addressi(MSTP)
41 elseif (common_block_name.eq."PYINT1") then
42 common_block_address = pythia6_addressi(MINT)
43 elseif (common_block_name.eq."PYINT2") then
44 common_block_address = pythia6_addressi(ISET)
45 elseif (common_block_name.eq."PYINT3") then
46 common_block_address = pythia6_addressd(XSFX)
47 elseif (common_block_name.eq."PYINT4") then
48 common_block_address = pythia6_addressi(MWID)
49 elseif (common_block_name.eq."PYINT5" ) then
50 common_block_address = pythia6_addressi(NGENPD)
51 elseif (common_block_name.eq."PYINT6" ) then
52 common_block_address = pythia6_addressc(PROC)
53 elseif (common_block_name.eq."PYINT7") then
54 common_block_address = pythia6_addressd(SIGT)
55 elseif (common_block_name.eq."PYINT8") then
56 common_block_address = pythia6_addressd(XPVMD)
57 elseif (common_block_name.eq."PYINT9") then
58 common_block_address = pythia6_addressd(VXPVMD)
59 elseif (common_block_name.eq."PYUPPR") then
60 common_block_address = pythia6_addressi(NUP)
61 elseif (common_block_name.eq."PYMSSM") then
62 common_block_address = pythia6_addressi(IMSS)
63 elseif (common_block_name.eq."PYSSMT") then
64 common_block_address = pythia6_addressd(ZMIX)
65 elseif (common_block_name.eq."PYINTS") then
66 common_block_address = pythia6_addressd(XXM(1))
67 elseif (common_block_name.eq."PYBINS") then
68 common_block_address = pythia6_addressi(IHIST(1))
69 endif
70c
71 pythia6_common_block_address = common_block_address
72 end