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