CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
float ecritl
Definition: AMPTWrapper.h:96
int ipot
Definition: AMPTWrapper.h:148
float pyqembd
Definition: AMPTWrapper.h:183
struct @695 embed_
float dt
Definition: AMPTWrapper.h:136
int nsmbbbar
Definition: AMPTWrapper.h:115
float alpha
Definition: AMPTWrapper.h:105
int idpert
Definition: AMPTWrapper.h:123
struct @690 para8_
float xmu
Definition: AMPTWrapper.h:104
int izpc
Definition: AMPTWrapper.h:87
struct @685 ludat1_
float massta
Definition: AMPTWrapper.h:133
float hipr1[100]
Definition: AMPTWrapper.h:64
float xembd
Definition: AMPTWrapper.h:184
struct @692 input2_
int ihnt2[50]
Definition: AMPTWrapper.h:67
float eatt
Definition: AMPTWrapper.h:39
void amptset_(double &efrm, const char *frame, const char *proj, const char *targ, int &iap, int &izp, int &iat, int &izt, int, int, int)
int isoft
Definition: AMPTWrapper.h:85
int mstu[200]
Definition: AMPTWrapper.h:74
struct @683 hbt_
float xlast[150001][4]
Definition: AMPTWrapper.h:55
float yembd
Definition: AMPTWrapper.h:185
float rscut2
Definition: AMPTWrapper.h:106
int iksdcy
Definition: AMPTWrapper.h:164
int invflv_(int &)
int ilab
Definition: AMPTWrapper.h:143
int n01
Definition: AMPTWrapper.h:45
int icrho
Definition: AMPTWrapper.h:153
int manyb
Definition: AMPTWrapper.h:144
int mstj[200]
Definition: AMPTWrapper.h:76
struct @682 hmain1_
#define _MAXNUMPARTICLE_
Definition: AMPTWrapper.h:9
int icflow
Definition: AMPTWrapper.h:152
float xmp
Definition: AMPTWrapper.h:103
int natt
Definition: AMPTWrapper.h:41
int jatt
Definition: AMPTWrapper.h:40
struct @694 phidcy_
int iembed
Definition: AMPTWrapper.h:181
int nevent
Definition: AMPTWrapper.h:84
int iphidcy
Definition: AMPTWrapper.h:171
int np
Definition: AMPTWrapper.h:43
struct @689 para7_
int n0
Definition: AMPTWrapper.h:44
int ioscar
Definition: AMPTWrapper.h:114
int ipop
Definition: AMPTWrapper.h:191
int insys
Definition: AMPTWrapper.h:147
int kmul
Definition: AMPTWrapper.h:156
int ntrig
Definition: AMPTWrapper.h:173
float cutof2
Definition: AMPTWrapper.h:107
struct @687 coal_
int icou
Definition: AMPTWrapper.h:154
void ampt_(const char *frame, double &bmin0, double &bmax0, int)
uint8_t *__restrict__ izt
int ntmax
Definition: AMPTWrapper.h:145
float masspr
Definition: AMPTWrapper.h:132
int nfreq
Definition: AMPTWrapper.h:151
float hint1[100]
Definition: AMPTWrapper.h:66
int nsav
Definition: AMPTWrapper.h:163
int nt
Definition: AMPTWrapper.h:42
struct @688 para2_
float drcoal
Definition: AMPTWrapper.h:95
float dpcoal
Definition: AMPTWrapper.h:94
float parj[200]
Definition: AMPTWrapper.h:77
struct @686 anim_
float pxqembd
Definition: AMPTWrapper.h:182
float pttrig
Definition: AMPTWrapper.h:172
float paru[200]
Definition: AMPTWrapper.h:75
int iseed
Definition: AMPTWrapper.h:134
int n11
Definition: AMPTWrapper.h:47
int kpoten
Definition: AMPTWrapper.h:155
struct @691 input1_
struct @693 resdcy_
int n10
Definition: AMPTWrapper.h:46
int iavoid
Definition: AMPTWrapper.h:135
int lblast[150001]
Definition: AMPTWrapper.h:54
float plast[150001][4]
Definition: AMPTWrapper.h:56
int npertd
Definition: AMPTWrapper.h:124
int nlast
Definition: AMPTWrapper.h:57
int ihpr2[50]
Definition: AMPTWrapper.h:65
int nsmmeson
Definition: AMPTWrapper.h:116
struct @684 hparnt_
int imomen
Definition: AMPTWrapper.h:150
int isflag
Definition: AMPTWrapper.h:86
int maxmiss
Definition: AMPTWrapper.h:174
struct @696 popcorn_
int idxsec
Definition: AMPTWrapper.h:125
int icoll
Definition: AMPTWrapper.h:146