CMS 3D CMS Logo

AMPTWrapper.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_AMPTInterface_AMPTWrapper
2 #define GeneratorInterface_AMPTInterface_AMPTWrapper
3 
4 /*
5  * Wrapper for FORTRAN version of AMPT
6  */
7 
8 //gsfs changed to 150001
9 #define _MAXNUMPARTICLE_ 150001
10 
11 extern "C" {
12 void amptset_(double& efrm,
13  const char* frame,
14  const char* proj,
15  const char* targ,
16  int& iap,
17  int& izp,
18  int& iat,
19  int& izt,
20  int,
21  int,
22  int);
23 }
24 #define AMPTSET amptset_
25 
26 extern "C" {
27 void ampt_(const char* frame, double& bmin0, double& bmax0, int);
28 }
29 #define AMPT ampt_
30 
31 extern "C" {
32 int invflv_(int&);
33 }
34 #define INVFLV invflv_
35 
36 //gsfs changed entries to agree with calling sequence in AMPT
37 extern "C" {
38 extern struct {
39  float eatt;
40  int jatt;
41  int natt;
42  int nt;
43  int np;
44  int n0;
45  int n01;
46  int n10;
47  int n11;
48 } hmain1_;
49 }
50 #define hmain1 hmain1_
51 
52 extern "C" {
53 extern struct {
57  int nlast;
58 } hbt_;
59 }
60 #define hbt hbt_
61 
62 extern "C" {
63 extern struct {
64  float hipr1[100];
65  int ihpr2[50];
66  float hint1[100];
67  int ihnt2[50];
68 } hparnt_;
69 }
70 #define hparnt hparnt_
71 
72 extern "C" {
73 extern struct {
74  int mstu[200];
75  float paru[200];
76  int mstj[200];
77  float parj[200];
78 } ludat1_;
79 }
80 #define ludat1 ludat1_
81 
82 extern "C" {
83 extern struct {
84  int nevent;
85  int isoft;
86  int isflag;
87  int izpc;
88 } anim_;
89 }
90 #define anim anim_
91 
92 extern "C" {
93 extern struct {
94  float dpcoal;
95  float drcoal;
96  float ecritl;
97 } coal_;
98 }
99 #define coal coal_
100 
101 extern "C" {
102 extern struct {
103  float xmp;
104  float xmu;
105  float alpha;
106  float rscut2;
107  float cutof2;
108 } para2_;
109 }
110 #define para2 para2_
111 
112 extern "C" {
113 extern struct {
114  int ioscar;
115  int nsmbbbar;
116  int nsmmeson;
117 } para7_;
118 }
119 #define para7 para7_
120 
121 extern "C" {
122 extern struct {
123  int idpert;
124  int npertd;
125  int idxsec;
126 } para8_;
127 }
128 #define para8 para8_
129 
130 extern "C" {
131 extern struct {
132  float masspr;
133  float massta;
134  int iseed;
135  int iavoid;
136  float dt;
137 } input1_;
138 }
139 #define input1 input1_
140 
141 extern "C" {
142 extern struct {
143  int ilab;
144  int manyb;
145  int ntmax;
146  int icoll;
147  int insys;
148  int ipot;
149  int mode;
150  int imomen;
151  int nfreq;
152  int icflow;
153  int icrho;
154  int icou;
155  int kpoten;
156  int kmul;
157 } input2_;
158 }
159 #define input2 input2_
160 
161 extern "C" {
162 extern struct {
163  int nsav;
164  int iksdcy;
165 } resdcy_;
166 }
167 #define resdcy resdcy_
168 
169 extern "C" {
170 extern struct {
171  int iphidcy;
172  float pttrig;
173  int ntrig;
174  int maxmiss;
175 } phidcy_;
176 }
177 #define phidcy phidcy_
178 
179 extern "C" {
180 extern struct {
181  int iembed;
182  float pxqembd;
183  float pyqembd;
184  float xembd;
185  float yembd;
186 } embed_;
187 }
188 #define embed embed_
189 
190 extern "C" {
191 extern struct { int ipop; } popcorn_;
192 }
193 #define popcorn popcorn_
194 
195 #endif
nevent
int nevent
Definition: AMPTWrapper.h:84
pttrig
float pttrig
Definition: AMPTWrapper.h:172
isoft
int isoft
Definition: AMPTWrapper.h:85
xlast
float xlast[150001][4]
Definition: AMPTWrapper.h:55
amptDefault_cfi.iap
iap
Definition: amptDefault_cfi.py:15
ihnt2
int ihnt2[50]
Definition: AMPTWrapper.h:67
iphidcy
int iphidcy
Definition: AMPTWrapper.h:171
nsmmeson
int nsmmeson
Definition: AMPTWrapper.h:116
nt
int nt
Definition: AMPTWrapper.h:42
icflow
int icflow
Definition: AMPTWrapper.h:152
idpert
int idpert
Definition: AMPTWrapper.h:123
input2_
struct @658 input2_
np
int np
Definition: AMPTWrapper.h:43
isflag
int isflag
Definition: AMPTWrapper.h:86
n0
int n0
Definition: AMPTWrapper.h:44
hbt_
struct @649 hbt_
maxmiss
int maxmiss
Definition: AMPTWrapper.h:174
anim_
struct @652 anim_
izpc
int izpc
Definition: AMPTWrapper.h:87
ntmax
int ntmax
Definition: AMPTWrapper.h:145
amptDefault_cfi.izt
izt
Definition: amptDefault_cfi.py:18
resdcy_
struct @659 resdcy_
alpha
float alpha
Definition: AMPTWrapper.h:105
hmain1_
struct @648 hmain1_
mode
int mode
Definition: AMPTWrapper.h:149
ecritl
float ecritl
Definition: AMPTWrapper.h:96
nfreq
int nfreq
Definition: AMPTWrapper.h:151
rscut2
float rscut2
Definition: AMPTWrapper.h:106
yembd
float yembd
Definition: AMPTWrapper.h:185
ipot
int ipot
Definition: AMPTWrapper.h:148
dt
float dt
Definition: AMPTWrapper.h:136
parj
float parj[200]
Definition: AMPTWrapper.h:77
hint1
float hint1[100]
Definition: AMPTWrapper.h:66
cutof2
float cutof2
Definition: AMPTWrapper.h:107
nsmbbbar
int nsmbbbar
Definition: AMPTWrapper.h:115
massta
float massta
Definition: AMPTWrapper.h:133
mstu
int mstu[200]
Definition: AMPTWrapper.h:74
iavoid
int iavoid
Definition: AMPTWrapper.h:135
_MAXNUMPARTICLE_
#define _MAXNUMPARTICLE_
Definition: AMPTWrapper.h:9
ampt_
void ampt_(const char *frame, double &bmin0, double &bmax0, int)
jatt
int jatt
Definition: AMPTWrapper.h:40
icrho
int icrho
Definition: AMPTWrapper.h:153
n10
int n10
Definition: AMPTWrapper.h:46
popcorn_
struct @662 popcorn_
coal_
struct @653 coal_
natt
int natt
Definition: AMPTWrapper.h:41
invflv_
int invflv_(int &)
amptset_
void amptset_(double &efrm, const char *frame, const char *proj, const char *targ, int &iap, int &izp, int &iat, int &izt, int, int, int)
amptDefault_cfi.proj
proj
Definition: amptDefault_cfi.py:13
kpoten
int kpoten
Definition: AMPTWrapper.h:155
iseed
int iseed
Definition: AMPTWrapper.h:134
ihpr2
int ihpr2[50]
Definition: AMPTWrapper.h:65
xmp
float xmp
Definition: AMPTWrapper.h:103
npertd
int npertd
Definition: AMPTWrapper.h:124
ipop
int ipop
Definition: AMPTWrapper.h:191
n11
int n11
Definition: AMPTWrapper.h:47
embed_
struct @661 embed_
amptDefault_cfi.iat
iat
Definition: amptDefault_cfi.py:17
nsav
int nsav
Definition: AMPTWrapper.h:163
para2_
struct @654 para2_
masspr
float masspr
Definition: AMPTWrapper.h:132
drcoal
float drcoal
Definition: AMPTWrapper.h:95
dpcoal
float dpcoal
Definition: AMPTWrapper.h:94
pyqembd
float pyqembd
Definition: AMPTWrapper.h:183
iksdcy
int iksdcy
Definition: AMPTWrapper.h:164
nlast
int nlast
Definition: AMPTWrapper.h:57
para7_
struct @655 para7_
pxqembd
float pxqembd
Definition: AMPTWrapper.h:182
para8_
struct @656 para8_
hipr1
float hipr1[100]
Definition: AMPTWrapper.h:64
ludat1_
struct @651 ludat1_
amptDefault_cfi.frame
frame
Definition: amptDefault_cfi.py:12
ioscar
int ioscar
Definition: AMPTWrapper.h:114
lblast
int lblast[150001]
Definition: AMPTWrapper.h:54
icou
int icou
Definition: AMPTWrapper.h:154
idxsec
int idxsec
Definition: AMPTWrapper.h:125
icoll
int icoll
Definition: AMPTWrapper.h:146
ntrig
int ntrig
Definition: AMPTWrapper.h:173
eatt
float eatt
Definition: AMPTWrapper.h:39
iembed
int iembed
Definition: AMPTWrapper.h:181
input1_
struct @657 input1_
xembd
float xembd
Definition: AMPTWrapper.h:184
amptDefault_cfi.izp
izp
Definition: amptDefault_cfi.py:16
n01
int n01
Definition: AMPTWrapper.h:45
phidcy_
struct @660 phidcy_
plast
float plast[150001][4]
Definition: AMPTWrapper.h:56
amptDefault_cfi.targ
targ
Definition: amptDefault_cfi.py:14
ilab
int ilab
Definition: AMPTWrapper.h:143
manyb
int manyb
Definition: AMPTWrapper.h:144
paru
float paru[200]
Definition: AMPTWrapper.h:75
imomen
int imomen
Definition: AMPTWrapper.h:150
kmul
int kmul
Definition: AMPTWrapper.h:156
xmu
float xmu
Definition: AMPTWrapper.h:104
insys
int insys
Definition: AMPTWrapper.h:147
hparnt_
struct @650 hparnt_
mstj
int mstj[200]
Definition: AMPTWrapper.h:76