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 { 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
cashower_
struct @666 cashower_
isemih
int isemih
Definition: CascadeWrapper.h:27
ipsiel2
int ipsiel2
Definition: CascadeWrapper.h:41
kgl
int kgl
Definition: CascadeWrapper.h:13
call_casini
void call_casini()
Definition: CascadeWrapper.h:133
captcut_
struct @674 captcut_
icolora
int icolora
Definition: CascadeWrapper.h:67
keb
int keb
Definition: CascadeWrapper.h:13
iccfm
int iccfm
Definition: CascadeWrapper.h:49
cascol_
struct @671 cascol_
nfrag
int nfrag
Definition: CascadeWrapper.h:27
cagluon_
struct @672 cagluon_
casshwr_
struct @668 casshwr_
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
integr_
struct @675 integr_
nin
int nin
Definition: CascadeWrapper.h:114
acc2
double acc2
Definition: CascadeWrapper.h:92
pt2cut
double pt2cut[1000]
Definition: CascadeWrapper.h:85
caluco_
struct @663 caluco_
itimshr
int itimshr
Definition: CascadeWrapper.h:49
cainpu_
struct @665 cainpu_
ncb
int ncb
Definition: CascadeWrapper.h:93
steer_
void steer_()
call_cascade
void call_cascade()
Definition: CascadeWrapper.h:136
ifps
int ifps
Definition: CascadeWrapper.h:27
call_caend
void call_caend(int mode)
Definition: CascadeWrapper.h:137
kph
int kph
Definition: CascadeWrapper.h:13
capar6_
struct @664 capar6_
irpa
int irpa
Definition: CascadeWrapper.h:67
ihf
int ihf
Definition: CascadeWrapper.h:27
irpc
int irpc
Definition: CascadeWrapper.h:67
ires
int ires[2]
Definition: CascadeWrapper.h:19
iq2
int iq2
Definition: CascadeWrapper.h:55
call_pytcha
void call_pytcha()
Definition: CascadeWrapper.h:151
ihfla
int ihfla
Definition: CascadeWrapper.h:61
caeffic_
struct @678 caeffic_
ppin
double ppin
Definition: CascadeWrapper.h:26
pdfpath
char pdfpath[512]
Definition: CascadeWrapper.h:106
avgi
double avgi
Definition: CascadeWrapper.h:113
iint
int iint
Definition: CascadeWrapper.h:93
lst
int lst[30]
Definition: CascadeWrapper.h:19
caend_
void caend_(int *mode)
irpe
int irpe
Definition: CascadeWrapper.h:67
ipro
int ipro
Definition: CascadeWrapper.h:55
caspdf_
struct @677 caspdf_
ipsiel1
int ipsiel1
Definition: CascadeWrapper.h:41
call_event
void call_event()
Definition: CascadeWrapper.h:138
scalf_
struct @676 scalf_
cahflav_
struct @670 cahflav_
casprre_
struct @673 casprre_
ke
int ke
Definition: CascadeWrapper.h:13
iorder
int iorder
Definition: CascadeWrapper.h:49
ifinal
int ifinal
Definition: CascadeWrapper.h:27
iruna
int iruna
Definition: CascadeWrapper.h:55
ipst
int ipst
Definition: CascadeWrapper.h:34
nout
int nout
Definition: CascadeWrapper.h:114
dcasrn_
double dcasrn_(int *idummy)
Definition: Cascade2Hadronizer.cc:41
kpsi
int kpsi
Definition: CascadeWrapper.h:61
irpd
int irpd
Definition: CascadeWrapper.h:67
event_
void event_()
plepin
double plepin
Definition: CascadeWrapper.h:26
irpf
int irpf
Definition: CascadeWrapper.h:67
irspl
int irspl
Definition: CascadeWrapper.h:79
pyedit_
void pyedit_(int *mode)
call_steer
void call_steer()
Definition: CascadeWrapper.h:134
call_pyedit
void call_pyedit(int mode)
Definition: CascadeWrapper.h:152
irpb
int irpb
Definition: CascadeWrapper.h:67
irespro
int irespro
Definition: CascadeWrapper.h:67
ilepto
int ilepto
Definition: CascadeWrapper.h:27
scalfaf
double scalfaf
Definition: CascadeWrapper.h:100
cascha_
void cascha_()
kchi
int kchi
Definition: CascadeWrapper.h:61
acc1
double acc1
Definition: CascadeWrapper.h:92
cascade_
void cascade_()
sd
double sd
Definition: CascadeWrapper.h:113
kpa
int kpa
Definition: CascadeWrapper.h:13
casini_
void casini_()
capar1_
struct @669 capar1_
inter
int inter
Definition: CascadeWrapper.h:27
ipsipol
int ipsipol
Definition: CascadeWrapper.h:41
jpsi_
struct @667 jpsi_
irunaem
int irunaem
Definition: CascadeWrapper.h:55
nflav
int nflav
Definition: CascadeWrapper.h:13
kp
int kp
Definition: CascadeWrapper.h:13
irpg
int irpg
Definition: CascadeWrapper.h:67
scalfa
double scalfa
Definition: CascadeWrapper.h:100
call_cascha
void call_cascha()
Definition: CascadeWrapper.h:135
iglu
int iglu
Definition: CascadeWrapper.h:73
pytcha_
void pytcha_()