7 |
#define trkstruct_h |
#define trkstruct_h |
8 |
|
|
9 |
#define NPLANE 6 |
#define NPLANE 6 |
10 |
|
#define NVIEW 12 |
11 |
|
#define NVK 24 |
12 |
|
#define NLADDER 3 |
13 |
|
|
14 |
#define NCLMAX_VIEW 200 //max n.clusters per view |
#define NCLMAX_VIEW 200 //max n.clusters per view |
15 |
#define NCLSTR 20 //max n.strip per cluster |
#define NCLSTR 20 //max n.strip per cluster |
24 |
#define NTRKMAX 10 |
#define NTRKMAX 10 |
25 |
#define NSINGMAX NCLMAX //100 |
#define NSINGMAX NCLMAX //100 |
26 |
|
|
27 |
|
#define NANGMAX 21 |
28 |
|
#define NETAVALMAX 500 |
29 |
|
|
30 |
|
#define NTRACKSMAX (NCLOYZ_MAX*NCLOXZ_MAX) |
31 |
|
|
32 |
#include <CalibTrk1Event.h> |
#include <CalibTrk1Event.h> |
33 |
#include <CalibTrk2Event.h> |
#include <CalibTrk2Event.h> |
34 |
|
using namespace pamela; |
35 |
|
//#include <TrkCalib.h> |
36 |
|
|
37 |
#include <TString.h> |
#include <TString.h> |
38 |
#include <TFile.h> |
#include <TFile.h> |
39 |
#include <TTree.h> |
#include <TTree.h> |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
#include <fstream> |
#include <fstream> |
44 |
#include <iostream> |
#include <iostream> |
45 |
/** |
/** |
53 |
float sigma_t[128][24][12]; |
float sigma_t[128][24][12]; |
54 |
int bad[128][24][12]; |
int bad[128][24][12]; |
55 |
|
|
56 |
void FillACalibFrom(TFile* , Int_t , Int_t ); |
void Reset(){ |
57 |
void FillFCalibFrom(TFile* , Int_t , Int_t ); |
for(int is=0; is<128; is++){ |
58 |
void FillTCalibFrom(TFile* , Int_t , Int_t ); |
for(int ivk=0; ivk<24; ivk++){ |
59 |
void FillTCalibFrom(TString); |
for(int iv=0; iv<12; iv++){ |
60 |
|
pedestal[is][ivk][iv]=0.; |
61 |
|
pedestal_t[is][ivk][iv]=0.; |
62 |
|
sigma[is][ivk][iv]=0.; |
63 |
|
sigma_t[is][ivk][iv]=0.; |
64 |
|
bad[is][ivk][iv]=1; |
65 |
|
} |
66 |
|
} |
67 |
|
} |
68 |
|
} |
69 |
|
|
70 |
|
/* void FillACalibFrom(TFile* , Int_t , Int_t ); */ |
71 |
|
/* void FillFCalibFrom(TFile* , Int_t , Int_t ); */ |
72 |
|
/* void FillTCalibFrom(TFile* , Int_t , Int_t ); */ |
73 |
|
/* void FillTCalibFrom(TString); */ |
74 |
|
|
75 |
}; |
}; |
76 |
// ================================================================== |
// ================================================================== |
131 |
float cnrmsev[24][12]; |
float cnrmsev[24][12]; |
132 |
int fshower[12]; |
int fshower[12]; |
133 |
int whichtrack[NCLMAX]; |
int whichtrack[NCLMAX]; |
134 |
|
|
135 |
}; |
}; |
136 |
// ================================================================== |
// ================================================================== |
137 |
/** |
/** |
140 |
struct cTrkLevel2 { |
struct cTrkLevel2 { |
141 |
// int good2; |
// int good2; |
142 |
// int crc[12]; |
// int crc[12]; |
143 |
int good[12]; |
int good[12]; |
144 |
|
int vkflag[24][12]; |
145 |
// ---------------------------- |
// ---------------------------- |
146 |
int nclsx; |
int nclsx; |
147 |
int planex[NSINGMAX]; |
int planex[NSINGMAX]; |
162 |
float zm_nt[NTRKMAX][6]; |
float zm_nt[NTRKMAX][6]; |
163 |
float resx_nt[NTRKMAX][6]; |
float resx_nt[NTRKMAX][6]; |
164 |
float resy_nt[NTRKMAX][6]; |
float resy_nt[NTRKMAX][6]; |
165 |
|
float tailx[NTRKMAX][6]; |
166 |
|
float taily[NTRKMAX][6]; |
167 |
float al_nt[NTRKMAX][5]; |
float al_nt[NTRKMAX][5]; |
168 |
float coval[NTRKMAX][5][5]; |
float coval[NTRKMAX][5][5]; |
169 |
float chi2_nt[NTRKMAX]; |
float chi2_nt[NTRKMAX]; |
170 |
int nstep_nt[NTRKMAX]; |
int nstep_nt[NTRKMAX]; |
171 |
int xgood_nt[NTRKMAX][6]; |
int xgood_nt[NTRKMAX][6]; |
172 |
int ygood_nt[NTRKMAX][6]; |
int ygood_nt[NTRKMAX][6]; |
173 |
|
int ls[NTRKMAX][6]; |
174 |
|
int xbad[NTRKMAX][6]; |
175 |
|
int ybad[NTRKMAX][6]; |
176 |
float xv_nt[NTRKMAX][6]; |
float xv_nt[NTRKMAX][6]; |
177 |
float yv_nt[NTRKMAX][6]; |
float yv_nt[NTRKMAX][6]; |
178 |
float zv_nt[NTRKMAX][6]; |
float zv_nt[NTRKMAX][6]; |
182 |
float dedx_y[NTRKMAX][6]; |
float dedx_y[NTRKMAX][6]; |
183 |
int cltrx[NTRKMAX][6]; |
int cltrx[NTRKMAX][6]; |
184 |
int cltry[NTRKMAX][6]; |
int cltry[NTRKMAX][6]; |
185 |
|
int multmaxx[NTRKMAX][6]; |
186 |
|
int multmaxy[NTRKMAX][6]; |
187 |
|
float seedx[NTRKMAX][6]; |
188 |
|
float seedy[NTRKMAX][6]; |
189 |
|
float xpu[NTRKMAX][6]; |
190 |
|
float ypu[NTRKMAX][6]; |
191 |
// float bdl[NTRKMAX]; |
// float bdl[NTRKMAX]; |
192 |
|
|
193 |
void InitcTrkLevel2(){ |
void InitcTrkLevel2(){ |
194 |
|
|
195 |
// good2 = 0; |
// good2 = 0; |
196 |
for(Int_t i=0; i<12 ; i++) |
for(Int_t i=0; i<12 ; i++){ |
197 |
// crc[i] = 0; |
good[i] = 0; |
198 |
good[i] = 0; |
for(Int_t ii=0; ii<24 ; ii++)vkflag[ii][i]=0; |
199 |
// ---------------------------- |
} |
200 |
nclsx = 0; |
// ---------------------------- |
201 |
nclsy = 0; |
nclsx = 0; |
202 |
for(Int_t i=0; i<NSINGMAX ; i++){ |
nclsy = 0; |
203 |
planex[i] = 0; |
for(Int_t i=0; i<NSINGMAX ; i++){ |
204 |
xs[i][0] = 0; |
planex[i] = 0; |
205 |
xs[i][1] = 0; |
xs[i][0] = 0; |
206 |
signlxs[i] = 0; |
xs[i][1] = 0; |
207 |
planey[i] = 0; |
signlxs[i] = 0; |
208 |
ys[i][0] = 0; |
planey[i] = 0; |
209 |
ys[i][1] = 0; |
ys[i][0] = 0; |
210 |
signlys[i] = 0; |
ys[i][1] = 0; |
211 |
} |
signlys[i] = 0; |
212 |
// ---------------------------- |
} |
213 |
ntrk =0 ; |
// ---------------------------- |
214 |
|
ntrk =0 ; |
215 |
for(Int_t i=0; i<NTRKMAX ; i++){ |
|
216 |
image[i] = 0; |
for(Int_t i=0; i<NTRKMAX ; i++){ |
217 |
chi2_nt[i] = 0; |
image[i] = 0; |
218 |
|
chi2_nt[i] = 0; |
219 |
// bdl[i] = 0; |
// bdl[i] = 0; |
220 |
|
|
221 |
for(Int_t ii=0; ii<5 ; ii++){ |
for(Int_t ii=0; ii<5 ; ii++){ |
222 |
al_nt[i][ii] = 0; |
al_nt[i][ii] = 0; |
223 |
for(Int_t iii=0; iii<5 ; iii++) |
for(Int_t iii=0; iii<5 ; iii++) |
224 |
coval[i][ii][iii] = 0; |
coval[i][ii][iii] = 0; |
225 |
} |
} |
226 |
|
|
227 |
for(Int_t ii=0; ii<6 ; ii++){ |
for(Int_t ii=0; ii<6 ; ii++){ |
228 |
xm_nt[i][ii] = 0; |
xm_nt[i][ii] = 0; |
229 |
ym_nt[i][ii] = 0; |
ym_nt[i][ii] = 0; |
230 |
zm_nt[i][ii] = 0; |
zm_nt[i][ii] = 0; |
231 |
resx_nt[i][ii] = 0; |
resx_nt[i][ii] = 0; |
232 |
resy_nt[i][ii] = 0; |
resy_nt[i][ii] = 0; |
233 |
xgood_nt[i][ii] = 0; |
xgood_nt[i][ii] = 0; |
234 |
ygood_nt[i][ii] = 0; |
ygood_nt[i][ii] = 0; |
235 |
xv_nt[i][ii] = 0; |
xv_nt[i][ii] = 0; |
236 |
yv_nt[i][ii] = 0; |
yv_nt[i][ii] = 0; |
237 |
zv_nt[i][ii] = 0; |
zv_nt[i][ii] = 0; |
238 |
axv_nt[i][ii] = 0; |
axv_nt[i][ii] = 0; |
239 |
ayv_nt[i][ii] = 0; |
ayv_nt[i][ii] = 0; |
240 |
dedx_x[i][ii] = 0; |
dedx_x[i][ii] = 0; |
241 |
dedx_y[i][ii] = 0; |
dedx_y[i][ii] = 0; |
242 |
} |
multmaxx[i][ii] = 0; |
243 |
|
multmaxy[i][ii] = 0; |
244 |
|
seedx[i][ii] = 0; |
245 |
|
seedy[i][ii] = 0; |
246 |
|
xpu[i][ii] = 0; |
247 |
|
ypu[i][ii] = 0; |
248 |
|
} |
249 |
|
} |
250 |
} |
} |
251 |
} |
|
|
|
|
252 |
}; |
}; |
253 |
// ================================================================== |
// ================================================================== |
254 |
/** |
/** |
266 |
const char *pc = s.Data(); |
const char *pc = s.Data(); |
267 |
for(Int_t i=0; i<=pathlen; i++) path[i] = *pc++; |
for(Int_t i=0; i<=pathlen; i++) path[i] = *pc++; |
268 |
}; |
}; |
269 |
|
|
|
|
|
270 |
}; |
}; |
271 |
|
|
272 |
// ================================================================== |
// ================================================================== |
273 |
/** |
/* /\** */ |
274 |
* \brief Struct to pass magnetic-field file paths to F77 routines |
/* * \brief Struct to pass magnetic-field file paths to F77 routines */ |
275 |
*/ |
/* *\/ */ |
276 |
struct cBPath { |
/* struct cBPath { */ |
277 |
char b_path[256]; |
/* char b_path[256]; */ |
278 |
int b_pathlen; |
/* int b_pathlen; */ |
279 |
int b_error; |
/* int b_error; */ |
280 |
int b_loaded; |
/* int b_loaded; */ |
281 |
/** |
/* /\** */ |
282 |
* Fill the struct variables from a TString object and set |
/* * Fill the struct variables from a TString object and set */ |
283 |
* the load flag to FALSE. |
/* * the load flag to FALSE. */ |
284 |
*/ |
/* *\/ */ |
285 |
void FillWith(TString s){ |
/* void FillWith(TString s){ */ |
286 |
b_loaded = 0; |
/* b_loaded = 0; */ |
287 |
b_pathlen = s.Length(); |
/* b_pathlen = s.Length(); */ |
288 |
const char *pc = s.Data(); |
/* const char *pc = s.Data(); */ |
289 |
for(Int_t i=0; i<=b_pathlen; i++) b_path[i] = *pc++; |
/* for(Int_t i=0; i<=b_pathlen; i++) b_path[i] = *pc++; */ |
290 |
}; |
/* }; */ |
291 |
/** |
/* /\** */ |
292 |
* Fill the struct variables from a TString object |
/* * Fill the struct variables from a TString object */ |
293 |
*/ |
/* *\/ */ |
294 |
int BIsLoaded(){ return b_loaded; }; |
/* int BIsLoaded(){ return b_loaded; }; */ |
295 |
|
|
296 |
}; |
/* }; */ |
297 |
|
|
298 |
// ================================================================== |
// ================================================================== |
299 |
/** |
/** |
322 |
double xm_a[NPLANE],ym_a[NPLANE]; |
double xm_a[NPLANE],ym_a[NPLANE]; |
323 |
double xm_b[NPLANE],ym_b[NPLANE]; |
double xm_b[NPLANE],ym_b[NPLANE]; |
324 |
double resx[NPLANE],resy[NPLANE]; |
double resx[NPLANE],resy[NPLANE]; |
325 |
|
double tailx[NPLANE],taily[NPLANE]; |
326 |
double xgood[NPLANE],ygood[NPLANE]; |
double xgood[NPLANE],ygood[NPLANE]; |
327 |
double dedxtrk_x[NPLANE]; |
double dedxtrk_x[NPLANE]; |
328 |
double dedxtrk_y[NPLANE]; |
double dedxtrk_y[NPLANE]; |
332 |
double xv[NPLANE],yv[NPLANE],zv[NPLANE]; |
double xv[NPLANE],yv[NPLANE],zv[NPLANE]; |
333 |
double axv[NPLANE],ayv[NPLANE]; |
double axv[NPLANE],ayv[NPLANE]; |
334 |
double cov[5][5]; |
double cov[5][5]; |
335 |
|
double fact; |
336 |
int nstep; |
int nstep; |
337 |
int idcand; |
int idcand; |
338 |
|
int trackmode; |
339 |
|
int istepmin; |
340 |
|
|
341 |
|
/* cMini2track(){ */ |
342 |
|
/* // -------------------------- */ |
343 |
|
/* // fitting routine parameters */ |
344 |
|
/* // -------------------------- */ |
345 |
|
/* zini = 23.5; */ |
346 |
|
/* trackmode = 0; */ |
347 |
|
/* istepmin = 3; */ |
348 |
|
/* // -------------------------- */ |
349 |
|
/* pfixed = 0.; */ |
350 |
|
/* chi2 = 0; */ |
351 |
|
/* nstep = 0; */ |
352 |
|
/* for(int it1=0;it1<5;it1++){ */ |
353 |
|
/* al[it1] = 0; */ |
354 |
|
/* for(int it2=0;it2<5;it2++)cov[it1][it2] = 0; */ |
355 |
|
/* }; */ |
356 |
|
/* for(int ip=0;ip<6;ip++){ */ |
357 |
|
/* xgood[ip] = 0; */ |
358 |
|
/* ygood[ip] = 0; */ |
359 |
|
/* xm[ip] = 0; */ |
360 |
|
/* ym[ip] = 0; */ |
361 |
|
/* xm_a[ip] = 0; */ |
362 |
|
/* ym_a[ip] = 0; */ |
363 |
|
/* xm_b[ip] = 0; */ |
364 |
|
/* ym_b[ip] = 0; */ |
365 |
|
/* zm[ip] = 0; */ |
366 |
|
/* resx[ip] = 0; */ |
367 |
|
/* resy[ip] = 0; */ |
368 |
|
/* xv[ip] = 0; */ |
369 |
|
/* yv[ip] = 0; */ |
370 |
|
/* zv[ip] = 0; */ |
371 |
|
/* axv[ip] = 0; */ |
372 |
|
/* ayv[ip] = 0; */ |
373 |
|
/* dedxtrk_x[ip] = 0; */ |
374 |
|
/* dedxtrk_y[ip] = 0; */ |
375 |
|
/* }; */ |
376 |
|
|
377 |
|
/* } */ |
378 |
|
|
379 |
|
|
380 |
|
}; |
381 |
|
|
382 |
|
// ================================================================== |
383 |
|
/** |
384 |
|
* \brief Struct to pass DELTAB parameters to F77 routines |
385 |
|
*/ |
386 |
|
struct cDeltaB { |
387 |
|
double delta0; |
388 |
|
double delta1; |
389 |
|
double dlt; |
390 |
}; |
}; |
391 |
|
|
392 |
// |
// |
393 |
/** |
/** |
394 |
* \Struct for the hough transform variables |
* \Struct for the hough transform variables |
396 |
|
|
397 |
struct cTrkHough { |
struct cTrkHough { |
398 |
|
|
399 |
int ndblt; |
int ndblt_nt; |
400 |
float alfayz1[NDBLT_MAX_NT]; |
float alfayz1_nt[NDBLT_MAX_NT]; |
401 |
float alfayz2[NDBLT_MAX_NT]; |
float alfayz2_nt[NDBLT_MAX_NT]; |
402 |
int db_cloud[NDBLT_MAX_NT]; |
int db_cloud_nt[NDBLT_MAX_NT]; |
403 |
int ntrpt; |
int ntrpt_nt; |
404 |
float alfaxz1[NTRPT_MAX_NT]; |
float alfaxz1_nt[NTRPT_MAX_NT]; |
405 |
float alfaxz2[NTRPT_MAX_NT]; |
float alfaxz2_nt[NTRPT_MAX_NT]; |
406 |
float alfaxz3[NTRPT_MAX_NT]; |
float alfaxz3_nt[NTRPT_MAX_NT]; |
407 |
int tr_cloud[NTRPT_MAX_NT]; |
int tr_cloud_nt[NTRPT_MAX_NT]; |
408 |
int nclouds_yz; |
int nclouds_yz_nt; |
409 |
float alfayz1_av[NCLOYZ_MAX]; |
float alfayz1_av_nt[NCLOYZ_MAX]; |
410 |
float alfayz2_av[NCLOYZ_MAX]; |
float alfayz2_av_nt[NCLOYZ_MAX]; |
411 |
int ptcloud_yz[NCLOYZ_MAX]; |
int ptcloud_yz_nt[NCLOYZ_MAX]; |
412 |
int nclouds_xz; |
int nclouds_xz_nt; |
413 |
float alfaxz1_av[NCLOXZ_MAX]; |
float alfaxz1_av_nt[NCLOXZ_MAX]; |
414 |
float alfaxz2_av[NCLOXZ_MAX]; |
float alfaxz2_av_nt[NCLOXZ_MAX]; |
415 |
float alfaxz3_av[NCLOXZ_MAX]; |
float alfaxz3_av_nt[NCLOXZ_MAX]; |
416 |
int ptcloud_xz[NCLOXZ_MAX]; |
int ptcloud_xz_nt[NCLOXZ_MAX]; |
417 |
int nclstr; |
int nclstr; |
418 |
float totaltime; |
float totaltime; |
419 |
float houghtime; |
float houghtime; |
422 |
|
|
423 |
void InitcTrkHough(){ |
void InitcTrkHough(){ |
424 |
|
|
425 |
ndblt = 0; |
ndblt_nt = 0; |
426 |
ntrpt = 0; |
ntrpt_nt = 0; |
427 |
nclouds_yz = 0; |
nclouds_yz_nt = 0; |
428 |
nclouds_xz = 0; |
nclouds_xz_nt = 0; |
429 |
nclstr = 0; |
nclstr = 0; |
430 |
totaltime = 0; |
totaltime = 0; |
431 |
houghtime = 0; |
houghtime = 0; |
432 |
fittime = 0; |
fittime = 0; |
433 |
for(int i=0;i<NDBLT_MAX_NT ;i++){ |
for(int i=0;i<NDBLT_MAX_NT ;i++){ |
434 |
alfayz1[i] = 0; |
alfayz1_nt[i] = 0; |
435 |
alfayz2[i] = 0; |
alfayz2_nt[i] = 0; |
436 |
db_cloud[i] = 0; |
db_cloud_nt[i] = 0; |
437 |
} |
} |
438 |
for(int i=0;i<NTRPT_MAX_NT ;i++){ |
for(int i=0;i<NTRPT_MAX_NT ;i++){ |
439 |
alfaxz1[i] = 0; |
alfaxz1_nt[i] = 0; |
440 |
alfaxz2[i] = 0; |
alfaxz2_nt[i] = 0; |
441 |
alfaxz3[i] = 0; |
alfaxz3_nt[i] = 0; |
442 |
tr_cloud[i] = 0; |
tr_cloud_nt[i] = 0; |
443 |
} |
} |
444 |
for(int i=0;i<NCLOYZ_MAX ;i++){ |
for(int i=0;i<NCLOYZ_MAX ;i++){ |
445 |
alfayz1_av[i] = 0; |
alfayz1_av_nt[i] = 0; |
446 |
alfayz2_av[i] = 0; |
alfayz2_av_nt[i] = 0; |
447 |
ptcloud_yz[i] = 0; |
ptcloud_yz_nt[i] = 0; |
448 |
} |
} |
449 |
for(int i=0;i<NCLOXZ_MAX ;i++){ |
for(int i=0;i<NCLOXZ_MAX ;i++){ |
450 |
ptcloud_xz[i] = 0; |
ptcloud_xz_nt[i] = 0; |
451 |
alfaxz1_av[i] = 0; |
alfaxz1_av_nt[i] = 0; |
452 |
alfaxz2_av[i] = 0; |
alfaxz2_av_nt[i] = 0; |
453 |
alfaxz3_av[i] = 0; |
alfaxz3_av_nt[i] = 0; |
454 |
} |
} |
455 |
} |
} |
456 |
|
|
457 |
}; |
}; |
458 |
|
|
459 |
|
/** |
460 |
|
* \Struct for track candidates after hough transform |
461 |
|
*/ |
462 |
|
struct cTrkCandidates { |
463 |
|
int ntracks; |
464 |
|
float al[NTRACKSMAX][5]; |
465 |
|
float xm[NTRACKSMAX][NPLANE]; |
466 |
|
float ym[NTRACKSMAX][NPLANE]; |
467 |
|
float zm[NTRACKSMAX][NPLANE]; |
468 |
|
float resx[NTRACKSMAX][NPLANE]; |
469 |
|
float resy[NTRACKSMAX][NPLANE]; |
470 |
|
float xv[NTRACKSMAX][NPLANE]; |
471 |
|
float yv[NTRACKSMAX][NPLANE]; |
472 |
|
float zv[NTRACKSMAX][NPLANE]; |
473 |
|
float axv[NTRACKSMAX][NPLANE]; |
474 |
|
float ayv[NTRACKSMAX][NPLANE]; |
475 |
|
float xgood[NTRACKSMAX][NPLANE]; |
476 |
|
float ygood[NTRACKSMAX][NPLANE]; |
477 |
|
int cp[NTRACKSMAX][NPLANE]; |
478 |
|
int cls[NTRACKSMAX][NPLANE]; |
479 |
|
int sensor[NTRACKSMAX][NPLANE]; |
480 |
|
int ladder[NTRACKSMAX][NPLANE]; |
481 |
|
float bx[NTRACKSMAX][NPLANE]; |
482 |
|
float by[NTRACKSMAX][NPLANE]; |
483 |
|
float chi2[NTRACKSMAX]; |
484 |
|
|
485 |
|
void Init(){ |
486 |
|
ntracks=0; |
487 |
|
for(int i=0; i<NTRACKSMAX; i++){ |
488 |
|
for(int ii=0; ii<5; ii++)al[i][ii]=0; |
489 |
|
chi2[i]=0; |
490 |
|
for(int ip=0; ip<NPLANE; ip++){ |
491 |
|
xm[i][ip]=0; |
492 |
|
ym[i][ip]=0; |
493 |
|
zm[i][ip]=0; |
494 |
|
resx[i][ip]=0; |
495 |
|
resy[i][ip]=0; |
496 |
|
xv[i][ip]=0; |
497 |
|
yv[i][ip]=0; |
498 |
|
zv[i][ip]=0; |
499 |
|
axv[i][ip]=0; |
500 |
|
ayv[i][ip]=0; |
501 |
|
xgood[i][ip]=0; |
502 |
|
ygood[i][ip]=0; |
503 |
|
cp[i][ip]=0; |
504 |
|
cls[i][ip]=0; |
505 |
|
sensor[i][ip]=0; |
506 |
|
ladder[i][ip]=0; |
507 |
|
bx[i][ip]=0; |
508 |
|
by[i][ip]=0; |
509 |
|
} |
510 |
|
} |
511 |
|
|
512 |
|
}; |
513 |
|
|
514 |
|
|
515 |
|
}; |
516 |
|
|
517 |
|
/** |
518 |
|
* \brief Struct to pass VA1-mask to F77 routines |
519 |
|
*/ |
520 |
|
struct cTrkMask { |
521 |
|
|
522 |
|
int mask_vk[NVK][NVIEW]; |
523 |
|
int mask_vk_run[NVK][NVIEW]; |
524 |
|
|
525 |
|
// void Set(TFile* , Int_t , Int_t ); |
526 |
|
|
527 |
|
void Reset(){ |
528 |
|
for(int ivk=0; ivk<NVK; ivk++){ |
529 |
|
for(int iv=0; iv<NVIEW; iv++){ |
530 |
|
// mask_vk[ivk][iv]=0; |
531 |
|
mask_vk_run[ivk][iv]=0; |
532 |
|
} |
533 |
|
} |
534 |
|
} |
535 |
|
|
536 |
|
void Dump(){ |
537 |
|
} |
538 |
|
|
539 |
|
}; |
540 |
|
|
541 |
|
/** |
542 |
|
* \brief Struct for pfa parameters |
543 |
|
*/ |
544 |
|
struct cTrkETA { |
545 |
|
|
546 |
|
int nangbin; |
547 |
|
float angL[NANGMAX],angR[NANGMAX]; |
548 |
|
int netaval; |
549 |
|
float eta2[NANGMAX][NETAVALMAX]; |
550 |
|
float feta2[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
551 |
|
float eta3[NANGMAX][NETAVALMAX]; |
552 |
|
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
553 |
|
float eta4[NANGMAX][NETAVALMAX]; |
554 |
|
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
555 |
|
float fcorr[NANGMAX][NLADDER][NVIEW]; |
556 |
|
float e234ax[6];//F77: e2fax,e2tax,e3fax,e3tax,e4fax,e4tax |
557 |
|
float e234ay[6];//F77: e2fay,e2tay,e3fay,e3tay,e4fay,e4tay |
558 |
|
|
559 |
|
}; |
560 |
|
/** |
561 |
|
* \brief Struct to configure data reduction |
562 |
|
*/ |
563 |
|
struct cTrkSW{ |
564 |
|
int pfaid; |
565 |
|
}; |
566 |
|
|
567 |
extern "C" { |
extern "C" { |
568 |
|
|
569 |
extern struct cTrkCalib pedsigbad_; |
extern struct cTrkCalib pedsigbad_; |
570 |
|
extern struct cTrkMask mask_; |
571 |
extern struct cTrkLevel0 level0event_; |
extern struct cTrkLevel0 level0event_; |
572 |
extern struct cTrkLevel1 level1event_; |
extern struct cTrkLevel1 level1event_; |
573 |
extern struct cTrkLevel2 level2event_; |
extern struct cTrkLevel2 level2event_; |
574 |
extern struct cPath path_; |
extern struct cPath path_; |
|
extern struct cBPath bpath_; |
|
575 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
576 |
|
extern struct cTrkHough houghevent_; |
577 |
|
extern struct cTrkCandidates trackcandidates_; |
578 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
579 |
extern struct cTrkHough hough_; |
extern struct cTrkETA pfa_; |
580 |
|
extern struct cTrkSW sw_; |
581 |
|
extern struct cDeltaB deltab_; |
582 |
|
|
583 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
584 |
int readmipparam_(); |
int readmipparam_(); |
588 |
int readetaparam_(); |
int readetaparam_(); |
589 |
void reductionflight_(int*); |
void reductionflight_(int*); |
590 |
int analysisflight_(); |
int analysisflight_(); |
591 |
} |
int readb_(); |
592 |
|
void gufld_(float*, float*); |
593 |
|
void xyzpam_(int*,int*,int*,int*,int*,float*,float*,float*,float*); |
594 |
|
float riseta_(int*,float*); |
595 |
|
void chisq_(int*, int*); |
596 |
|
|
597 |
|
} |
598 |
|
|
599 |
#endif |
#endif |
|
|
|