CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 { int ke, kp, keb, kph, kgl, kpa, nflav; } caluco_;
14 }
15 
16 #define caluco caluco_
17 
18 extern "C" {
19 extern struct { int lst[30], ires[2]; } capar6_;
20 }
21 
22 #define capar6 capar6_
23 
24 extern "C" {
25 extern struct {
26  double plepin, ppin;
28 } cainpu_;
29 }
30 
31 #define cainpu cainpu_
32 
33 extern "C" {
34 extern struct { int ipst; } cashower_;
35 }
36 
37 #define cashower cashower_
38 
39 extern "C" {
40 extern struct {
42  //-- int i23s; //-- from version 2.2.03 on
43 } jpsi_;
44 }
45 
46 #define jpsi jpsi_
47 
48 extern "C" {
49 extern struct { int iorder, itimshr, iccfm; } casshwr_;
50 }
51 
52 #define casshwr casshwr_
53 
54 extern "C" {
55 extern struct { int ipro, iruna, iq2, irunaem; } capar1_;
56 }
57 
58 #define capar1 capar1_
59 
60 extern "C" {
61 extern struct { int ihfla, kpsi, kchi; } cahflav_;
62 }
63 
64 #define cahflav cahflav_
65 
66 extern "C" {
67 extern struct { int icolora, irespro, irpa, irpb, irpc, irpd, irpe, irpf, irpg; } cascol_;
68 }
69 
70 #define cascol cascol_
71 
72 extern "C" {
73 extern struct { int iglu; } cagluon_;
74 }
75 
76 #define cagluon cagluon_
77 
78 extern "C" {
79 extern struct { int irspl; } casprre_;
80 }
81 
82 #define casprre casprre_
83 
84 extern "C" {
85 extern struct { double pt2cut[1000]; } captcut_;
86 }
87 
88 #define captcut captcut_
89 
90 extern "C" {
91 extern struct {
92  double acc1, acc2;
93  int iint, ncb;
94 } integr_;
95 }
96 
97 #define integr integr_
98 
99 extern "C" {
100 extern struct { double scalfa, scalfaf; } scalf_;
101 }
102 
103 #define scalf scalf_
104 
105 extern "C" {
106 extern struct { char pdfpath[512]; } caspdf_;
107 }
108 
109 #define caspdf caspdf_
110 
111 extern "C" {
112 extern struct {
113  double avgi, sd;
114  int nin, nout;
115 } caeffic_;
116 }
117 
118 #define caeffic caeffic_
119 
120 //-- CASCADE routines declarations
121 
122 extern "C" {
123 void casini_();
124 void steer_();
125 void cascha_();
126 void cascade_();
127 void caend_(int* mode);
128 void event_();
129 // void rluxgo_(int* mode1,int* mode2,int* mode3,int* mode4);
130 double dcasrn_(int* idummy);
131 }
132 
133 inline void call_casini() { casini_(); }
134 inline void call_steer() { steer_(); }
135 inline void call_cascha() { cascha_(); }
136 inline void call_cascade() { cascade_(); }
137 inline void call_caend(int mode) { caend_(&mode); }
138 inline void call_event() { event_(); }
139 // inline void call_rluxgo(int mode1, int mode2, int mode3, int mode4) { rluxgo_(&mode1, &mode2, &mode3, &mode4); }
140 // inline double call_dcasrn() { return(dcasrn_()); }
141 
142 //-- PYTHIA Common Block Declarations
143 
144 //-- PYTHIA routines declarations
145 
146 extern "C" {
147 void pytcha_();
148 void pyedit_(int* mode);
149 }
150 
151 inline void call_pytcha() { pytcha_(); }
152 inline void call_pyedit(int mode) { pyedit_(&mode); }
153 
154 //inline void call_pyhepc(int mode) { pyhepc(&mode); }
155 //inline void call_pylist(int mode) { pylist(&mode); }
156 //inline void call_pystat(int mode) { pystat(&mode); }
157 //inline void call_pyevnt() { pyevnt(); }
158 
159 #endif // CASCADE_WRAPPER_H
struct @706 cahflav_
double dcasrn_(int *idummy)
int ncb
struct @705 capar1_
void casini_()
int ipsipol
int irunaem
int ihf
void steer_()
struct @701 cainpu_
struct @707 cascol_
int kp
void pytcha_()
double scalfa
int ihfla
int ires[2]
int ipsiel2
int kgl
void call_casini()
int iint
int icolora
double ppin
struct @708 cagluon_
double avgi
int lst[30]
int ipsiel1
int nfrag
void caend_(int *mode)
struct @700 capar6_
int nin
double acc2
double pt2cut[1000]
int iruna
int ifps
int kph
int ifinal
int ipst
int itimshr
struct @712 scalf_
int kpsi
int irpf
void call_cascade()
struct @713 caspdf_
void call_caend(int mode)
int irspl
struct @703 jpsi_
void call_steer()
int irpa
int irespro
int ilepto
int irpc
void call_pyedit(int mode)
void cascha_()
int iq2
void call_pytcha()
struct @711 integr_
char pdfpath[512]
int ipro
int kchi
double acc1
int kpa
void cascade_()
struct @710 captcut_
int irpe
double sd
int inter
void call_event()
int ke
int iorder
int irpg
void call_cascha()
double plepin
int nflav
int nout
struct @702 cashower_
int irpd
void event_()
int iglu
int isemih
struct @714 caeffic_
int keb
void pyedit_(int *mode)
struct @699 caluco_
int iccfm
double scalfaf
struct @704 casshwr_
int irpb
struct @709 casprre_