CMS 3D CMS Logo

CascadeWrapper.h
Go to the documentation of this file.
1 #ifndef CASCADE_WRAPPER_H
2 #define CASCADE_WRAPPER_H
3 
4 //-- the pyhepc routine used by Pythia to fill the HEPEVT common block
5 //-- is using double precision and 4000 entries
6 
7 #include <cctype>
8 #include <cstring>
9 
10 //-- CASCADE Common Block Declarations
11 
12 extern "C" {
13  extern struct {
15  } caluco_;
16  }
17 
18 #define caluco caluco_
19 
20 extern "C" {
21  extern struct {
22  int lst[30],ires[2];
23  } capar6_;
24 }
25 
26 #define capar6 capar6_
27 
28 extern "C" {
29  extern struct {
30  double plepin,ppin;
32  } cainpu_;
33 }
34 
35 #define cainpu cainpu_
36 
37 extern "C" {
38  extern struct {
39  int ipst;
40  } cashower_;
41 }
42 
43 #define cashower cashower_
44 
45 extern "C" {
46  extern struct {
48  //-- int i23s; //-- from version 2.2.03 on
49  } jpsi_;
50 }
51 
52 #define jpsi jpsi_
53 
54 extern "C" {
55  extern struct {
57  } casshwr_;
58 }
59 
60 #define casshwr casshwr_
61 
62 extern "C" {
63  extern struct {
65  } capar1_;
66 }
67 
68 #define capar1 capar1_
69 
70 extern "C" {
71  extern struct {
73  } cahflav_;
74 }
75 
76 #define cahflav cahflav_
77 
78 extern "C" {
79  extern struct {
81  } cascol_;
82 }
83 
84 #define cascol cascol_
85 
86 extern "C" {
87  extern struct {
88  int iglu;
89  } cagluon_;
90 }
91 
92 #define cagluon cagluon_
93 
94 extern "C" {
95  extern struct {
96  int irspl;
97  } casprre_;
98 }
99 
100 #define casprre casprre_
101 
102 extern "C" {
103  extern struct {
104  double pt2cut[1000];
105  } captcut_;
106 }
107 
108 #define captcut captcut_
109 
110 extern "C" {
111  extern struct {
112  double acc1,acc2;
113  int iint,ncb;
114  } integr_;
115 }
116 
117 #define integr integr_
118 
119 extern "C" {
120  extern struct {
121  double scalfa,scalfaf;
122  } scalf_;
123 }
124 
125 #define scalf scalf_
126 
127 extern "C" {
128  extern struct {
129  char pdfpath[512];
130  } caspdf_;
131 }
132 
133 #define caspdf caspdf_
134 
135 extern "C" {
136  extern struct {
137  double avgi,sd;
138  int nin,nout;
139  } caeffic_;
140 }
141 
142 #define caeffic caeffic_
143 
144 //-- CASCADE routines declarations
145 
146 extern "C" {
147  void casini_();
148  void steer_();
149  void cascha_();
150  void cascade_();
151  void caend_(int* mode);
152  void event_();
153  // void rluxgo_(int* mode1,int* mode2,int* mode3,int* mode4);
154  double dcasrn_(int* idummy);
155 
156 }
157 
158 inline void call_casini() { casini_(); }
159 inline void call_steer() { steer_(); }
160 inline void call_cascha() { cascha_(); }
161 inline void call_cascade() { cascade_(); }
162 inline void call_caend(int mode) { caend_(&mode); }
163 inline void call_event() { event_(); }
164 // inline void call_rluxgo(int mode1, int mode2, int mode3, int mode4) { rluxgo_(&mode1, &mode2, &mode3, &mode4); }
165 // inline double call_dcasrn() { return(dcasrn_()); }
166 
167 //-- PYTHIA Common Block Declarations
168 
169 //-- PYTHIA routines declarations
170 
171 extern "C" {
172  void pytcha_();
173  void pyedit_(int* mode);
174 }
175 
176 inline void call_pytcha() { pytcha_(); }
177 inline void call_pyedit(int mode){ pyedit_(&mode); }
178 
179 //inline void call_pyhepc(int mode) { pyhepc(&mode); }
180 //inline void call_pylist(int mode) { pylist(&mode); }
181 //inline void call_pystat(int mode) { pystat(&mode); }
182 //inline void call_pyevnt() { pyevnt(); }
183 
184 #endif // CASCADE_WRAPPER_H
185 
struct @675 capar1_
struct @673 jpsi_
int ncb
void casini_()
struct @670 capar6_
int ipsipol
int irunaem
struct @679 casprre_
int ihf
void steer_()
int kp
struct @683 caspdf_
void pytcha_()
struct @676 cahflav_
struct @674 casshwr_
double scalfa
int ihfla
int ires[2]
int ipsiel2
int kgl
void call_casini()
int iint
int icolora
struct @678 cagluon_
double ppin
double avgi
int lst[30]
int ipsiel1
struct @677 cascol_
int nfrag
void caend_(int *mode)
int nin
double acc2
double pt2cut[1000]
int iruna
int ifps
int kph
int ifinal
int ipst
int itimshr
int kpsi
int irpf
void call_cascade()
void call_caend(int mode)
int irspl
void call_steer()
int irpa
int irespro
int ilepto
int irpc
struct @682 scalf_
void call_pyedit(int mode)
void cascha_()
int iq2
void call_pytcha()
struct @671 cainpu_
char pdfpath[512]
int ipro
int kchi
double acc1
int kpa
void cascade_()
int irpe
double sd
int inter
struct @681 integr_
void call_event()
int ke
int iorder
int irpg
struct @680 captcut_
struct @672 cashower_
double dcasrn_(int *idummy)
void call_cascha()
double plepin
struct @669 caluco_
int nflav
int nout
int irpd
void event_()
int iglu
int isemih
int keb
void pyedit_(int *mode)
int iccfm
double scalfaf
int irpb
struct @684 caeffic_