9 |
#define NTRKMAX 10 |
#define NTRKMAX 10 |
10 |
#define NSINGMAX 100 |
#define NSINGMAX 100 |
11 |
|
|
12 |
#define NCLMAX_VIEW 200 |
#define NCLMAX_VIEW 50 |
13 |
#define NCLSTR 19 |
#define NCLSTR 20 |
14 |
#define NCLMAX (NCLMAX_VIEW*12) |
#define NCLMAX (NCLMAX_VIEW*12) |
15 |
#define NCLBUFF (NCLMAX*NCLSTR) |
#define NCLBUFF (NCLMAX*NCLSTR) |
16 |
|
|
17 |
|
#define NPLANE 6 |
18 |
|
|
19 |
#include <CalibTrk1Event.h> |
#include <CalibTrk1Event.h> |
20 |
#include <CalibTrk2Event.h> |
#include <CalibTrk2Event.h> |
21 |
|
|
81 |
*/ |
*/ |
82 |
struct cTrkLevel1 { |
struct cTrkLevel1 { |
83 |
// int good1; |
// int good1; |
84 |
int good[12]; |
int good[12]; |
85 |
int nclstr1; |
int nclstr1; |
86 |
int view[NCLMAX]; |
int view[NCLMAX]; |
87 |
int ladder[NCLMAX]; |
int ladder[NCLMAX]; |
88 |
int maxs[NCLMAX]; |
int maxs[NCLMAX]; |
89 |
int mult[NCLMAX]; |
int mult[NCLMAX]; |
90 |
float dedx[NCLMAX]; |
float dedx[NCLMAX]; |
91 |
int indstart[NCLMAX]; |
int indstart[NCLMAX]; |
92 |
int indmax[NCLMAX]; |
int indmax[NCLMAX]; |
93 |
int totCLlength; |
int totCLlength; |
94 |
float clsignal[NCLBUFF]; |
float clsignal[NCLBUFF]; |
95 |
float clsigma[NCLBUFF]; |
float clsigma[NCLBUFF]; |
96 |
int cladc[NCLBUFF]; |
int cladc[NCLBUFF]; |
97 |
int clbad[NCLBUFF]; |
int clbad[NCLBUFF]; |
98 |
float cnev[24][12]; |
float cnev[24][12]; |
99 |
int cnnev[24][12]; |
int cnnev[24][12]; |
100 |
int fshower[12]; |
float cnrmsev[24][12]; |
101 |
int whichtrack[NCLMAX]; |
int fshower[12]; |
102 |
|
int whichtrack[NCLMAX]; |
103 |
}; |
}; |
104 |
// ================================================================== |
// ================================================================== |
105 |
/** |
/** |
114 |
int planex[NSINGMAX]; |
int planex[NSINGMAX]; |
115 |
float xs[NSINGMAX][2]; |
float xs[NSINGMAX][2]; |
116 |
float signlxs[NSINGMAX]; |
float signlxs[NSINGMAX]; |
117 |
int clsx[NSINGMAX]; |
int clsx[NSINGMAX]; |
118 |
// ---------------------------- |
// ---------------------------- |
119 |
int nclsy; |
int nclsy; |
120 |
int planey[NSINGMAX]; |
int planey[NSINGMAX]; |
121 |
float ys[NSINGMAX][2]; |
float ys[NSINGMAX][2]; |
122 |
float signlys[NSINGMAX]; |
float signlys[NSINGMAX]; |
123 |
int clsy[NSINGMAX]; |
int clsy[NSINGMAX]; |
124 |
// ---------------------------- |
// ---------------------------- |
125 |
int ntrk; |
int ntrk; |
126 |
int image[NTRKMAX]; |
int image[NTRKMAX]; |
132 |
float al_nt[NTRKMAX][5]; |
float al_nt[NTRKMAX][5]; |
133 |
float coval[NTRKMAX][5][5]; |
float coval[NTRKMAX][5][5]; |
134 |
float chi2_nt[NTRKMAX]; |
float chi2_nt[NTRKMAX]; |
135 |
int nstep_nt[NTRKMAX]; |
int nstep_nt[NTRKMAX]; |
136 |
int xgood_nt[NTRKMAX][6]; |
int xgood_nt[NTRKMAX][6]; |
137 |
int ygood_nt[NTRKMAX][6]; |
int ygood_nt[NTRKMAX][6]; |
138 |
float xv_nt[NTRKMAX][6]; |
float xv_nt[NTRKMAX][6]; |
139 |
float yv_nt[NTRKMAX][6]; |
float yv_nt[NTRKMAX][6]; |
142 |
float ayv_nt[NTRKMAX][6]; |
float ayv_nt[NTRKMAX][6]; |
143 |
float dedx_x[NTRKMAX][6]; |
float dedx_x[NTRKMAX][6]; |
144 |
float dedx_y[NTRKMAX][6]; |
float dedx_y[NTRKMAX][6]; |
145 |
int cltrx[NTRKMAX][6]; |
int cltrx[NTRKMAX][6]; |
146 |
int cltry[NTRKMAX][6]; |
int cltry[NTRKMAX][6]; |
147 |
// float bdl[NTRKMAX]; |
// float bdl[NTRKMAX]; |
148 |
|
|
149 |
void InitcTrkLevel2(){ |
void InitcTrkLevel2(){ |
204 |
* \brief Struct to pass calibration/parameter file paths to F77 routines |
* \brief Struct to pass calibration/parameter file paths to F77 routines |
205 |
*/ |
*/ |
206 |
struct cPath { |
struct cPath { |
207 |
char path[80]; |
char path[256]; |
208 |
int pathlen; |
int pathlen; |
209 |
int error; |
int error; |
210 |
/** |
/** |
224 |
* \brief Struct to pass magnetic-field file paths to F77 routines |
* \brief Struct to pass magnetic-field file paths to F77 routines |
225 |
*/ |
*/ |
226 |
struct cBPath { |
struct cBPath { |
227 |
char b_path[80]; |
char b_path[256]; |
228 |
int b_pathlen; |
int b_pathlen; |
229 |
int b_error; |
int b_error; |
230 |
int b_loaded; |
int b_loaded; |
261 |
void SetDebug() {debug=1; verbose=1; warning=1;}; |
void SetDebug() {debug=1; verbose=1; warning=1;}; |
262 |
}; |
}; |
263 |
|
|
264 |
|
|
265 |
|
// ================================================================== |
266 |
|
/** |
267 |
|
* \brief Struct to pass mini2 track parameters to F77 routines |
268 |
|
*/ |
269 |
|
struct cMini2track { |
270 |
|
double al[5]; |
271 |
|
double xm[NPLANE],ym[NPLANE],zm[NPLANE]; |
272 |
|
double xm_a[NPLANE],ym_a[NPLANE]; |
273 |
|
double xm_b[NPLANE],ym_b[NPLANE]; |
274 |
|
double resx[NPLANE],resy[NPLANE]; |
275 |
|
double xgood[NPLANE],ygood[NPLANE]; |
276 |
|
double dedxtrk_x[NPLANE]; |
277 |
|
double dedxtrk_y[NPLANE]; |
278 |
|
double zini; |
279 |
|
double pfixed; |
280 |
|
double chi2; |
281 |
|
double xv[NPLANE],yv[NPLANE],zv[NPLANE]; |
282 |
|
double axv[NPLANE],ayv[NPLANE]; |
283 |
|
double cov[5][5]; |
284 |
|
int nstep; |
285 |
|
int idcand; |
286 |
|
}; |
287 |
|
// |
288 |
|
|
289 |
|
|
290 |
extern "C" { |
extern "C" { |
291 |
|
|
292 |
extern struct cTrkCalib pedsigbad_; |
extern struct cTrkCalib pedsigbad_; |
293 |
extern struct cTrkLevel0 level0event_; |
extern struct cTrkLevel0 level0event_; |
294 |
extern struct cTrkLevel1 level1event_; |
extern struct cTrkLevel1 level1event_; |
296 |
extern struct cPath path_; |
extern struct cPath path_; |
297 |
extern struct cBPath bpath_; |
extern struct cBPath bpath_; |
298 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
299 |
|
extern struct cMini2track track_; |
300 |
|
|
301 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
302 |
int readmipparam_(); |
int readmipparam_(); |
303 |
int readchargeparam_(); |
int readchargeparam_(); |