]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TAmpt/AMPT/amptset.f
ensure fidutial cut of MC primaries is same used in reader for selected tracks, clean...
[u/mrichter/AliRoot.git] / TAmpt / AMPT / amptset.f
CommitLineData
0119ef9a 1 SUBROUTINE AMPTSET(EFRM0,FRAME0,PROJ0,TARG0,IAP0,IZP0,IAT0,IZT0)
2c
3cgsfs added following line to match C++ call
4 double precision EFRM0
5 double precision xmp, xmu, alpha, rscut2, cutof2
6 double precision smearp,smearh,dpcoal,drcoal,ecritl
7 CHARACTER*(*) FRAME0,PROJ0,TARG0
8 CHARACTER FRAME*8,PROJ*8,TARG*8
9 character*25 amptvn
10 COMMON/HMAIN1/EATT,JATT,NATT,NT,NP,N0,N01,N10,N11
11 COMMON /HPARNT/HIPR1(100), IHPR2(50), HINT1(100), IHNT2(50)
12 COMMON/LUDAT1A/MSTU(200),PARU(200),MSTJ(200),PARJ(200)
13 COMMON /ARPRNT/ ARPAR1(100), IAPAR2(50), ARINT1(100), IAINT2(50)
14 COMMON /AROUT/ IOUT
15 COMMON /AREVT/ IAEVT, IARUN, MISS
16 COMMON /smearz/smearp,smearh
17 COMMON/RNDF77/NSEED
18 common/anim/nevent,isoft,isflag,izpc
19c parton coalescence radii in case of string melting:
20 common /coal/dpcoal,drcoal,ecritl
21 common/snn/efrm,npart1,npart2
22c initialization value for parton cascade:
23 common /para2/ xmp, xmu, alpha, rscut2, cutof2
24 common /para7/ ioscar,nsmbbbar,nsmmeson
25 common /para8/ idpert,npertd,idxsec
26 common /rndm3/ iseedp
27c initialization value for hadron cascade:
28 COMMON /RUN/ NUM
29 common/input1/ MASSPR,MASSTA,ISEED,IAVOID,DT
30 COMMON /INPUT2/ ILAB, MANYB, NTMAX, ICOLL, INSYS, IPOT, MODE,
31 & IMOMEN, NFREQ, ICFLOW, ICRHO, ICOU, KPOTEN, KMUL
32 common/oscar1/iap,izp,iat,izt
33 common/oscar2/FRAME,amptvn
34 common/resdcy/NSAV,iksdcy
35clin-6/2009:
36c common/phidcy/iphidcy
37 common/phidcy/iphidcy,pttrig,ntrig,maxmiss
38 common/embed/iembed,pxqembd,pyqembd,xembd,yembd
39 common/popcorn/ipop
40
41 EXTERNAL HIDATA, PYDATA, LUDATA, ARDATA, PPBDAT, zpcbdt
42 SAVE
43c****************
44 EFRM=EFRM0
45 FRAME=FRAME0
46 PROJ=PROJ0
47 TARG=TARG0
48 IAP=IAP0
49 IZP=IZP0
50 IAT=IAT0
51 IZT=IZT0
52
53 if(ipop.eq.1) IHPR2(11)=3
54
55clin-6/2009 ctest off turn on jet triggering:
56c IHPR2(3)=1
57c Trigger Pt of high-pt jets in HIJING:
58c HIPR1(10)=7.
59c
60
61 if(isoft.eq.1) then
62 amptvn = '1.25 (Default)'
63 elseif(isoft.eq.4) then
64 amptvn = '2.25 (StringMelting)'
65 else
66 amptvn = 'Test-Only'
67 endif
68
69 WRITE(*,50) amptvn
70 50 FORMAT(' '/
71 &11X,'##################################################'/1X,
72 &10X,'# AMPT (A Multi-Phase Transport) model #'/1X,
73 &10X,'# Version ',a20, ' #'/1X,
74 &10X,'# 06/25/2009 #'/1X,
75 &10X,'##################################################'/1X,
76 &10X,' ')
77
78c an odd number is needed for the random number generator:
79 if(mod(NSEED,2).eq.0) NSEED=NSEED+1
80c 9/26/03 random number generator for f77 compiler:
81 CALL SRAND(NSEED)
82c
83c.....turn on warning messages in nohup.out when an event is repeated:
84 IHPR2(10) = 1
85c string formation time:
86 ARPAR1(1) = 0.7
87c smearp is the smearing halfwidth on parton z0,
88c set to 0 for now to avoid overflow in eta.
89c smearh is the smearing halfwidth on string production point z0.
90 smearp=0d0
91 IAmax=max(iap,iat)
92 smearh=1.2d0*IAmax**0.3333d0/(dble(EFRM)/2/0.938d0)
93cgsfs Restored this call which was missing
94 CALL HIJSET(EFRM, FRAME, PROJ, TARG, IAP, IZP, IAT, IZT)
95 CALL ARTSET
96 CALL INIZPC
97
98 RETURN
99 END