6 |
#ifndef trkstruct_h |
#ifndef trkstruct_h |
7 |
#define trkstruct_h |
#define trkstruct_h |
8 |
|
|
9 |
#define NTRKMAX 10 |
#define NPLANE 6 |
|
#define NSINGMAX 100 |
|
10 |
|
|
11 |
#define NCLMAX_VIEW 50 |
#define NCLMAX_VIEW 200 //max n.clusters per view |
12 |
#define NCLSTR 20 |
#define NCLSTR 20 //max n.strip per cluster |
13 |
#define NCLMAX (NCLMAX_VIEW*12) |
#define NCLMAX (NCLMAX_VIEW*12) //max n.clusters total |
14 |
#define NCLBUFF (NCLMAX*NCLSTR) |
#define NCLBUFF (NCLMAX*NCLSTR) |
15 |
|
|
16 |
#define NPLANE 6 |
#define NDBLT_MAX_NT 1000 // 0.2*ndblt_max |
17 |
|
#define NTRPT_MAX_NT 10000 // 0.2*ntrpt_max |
18 |
|
#define NCLOYZ_MAX 200 |
19 |
|
#define NCLOXZ_MAX 200 |
20 |
|
|
21 |
|
#define NTRKMAX 10 |
22 |
|
#define NSINGMAX NCLMAX //100 |
23 |
|
|
24 |
|
|
25 |
|
|
26 |
#include <CalibTrk1Event.h> |
#include <CalibTrk1Event.h> |
27 |
#include <CalibTrk2Event.h> |
#include <CalibTrk2Event.h> |
223 |
for(Int_t i=0; i<=pathlen; i++) path[i] = *pc++; |
for(Int_t i=0; i<=pathlen; i++) path[i] = *pc++; |
224 |
}; |
}; |
225 |
|
|
|
|
|
226 |
}; |
}; |
227 |
|
|
228 |
// ================================================================== |
// ================================================================== |
291 |
int idcand; |
int idcand; |
292 |
}; |
}; |
293 |
// |
// |
294 |
|
/** |
295 |
|
* \Struct for the hough transform variables |
296 |
|
*/ |
297 |
|
|
298 |
|
struct cTrkHough { |
299 |
|
|
300 |
|
int ndblt; |
301 |
|
float alfayz1[NDBLT_MAX_NT]; |
302 |
|
float alfayz2[NDBLT_MAX_NT]; |
303 |
|
int db_cloud[NDBLT_MAX_NT]; |
304 |
|
int ntrpt; |
305 |
|
float alfaxz1[NTRPT_MAX_NT]; |
306 |
|
float alfaxz2[NTRPT_MAX_NT]; |
307 |
|
float alfaxz3[NTRPT_MAX_NT]; |
308 |
|
int tr_cloud[NTRPT_MAX_NT]; |
309 |
|
int nclouds_yz; |
310 |
|
float alfayz1_av[NCLOYZ_MAX]; |
311 |
|
float alfayz2_av[NCLOYZ_MAX]; |
312 |
|
int ptcloud_yz[NCLOYZ_MAX]; |
313 |
|
int nclouds_xz; |
314 |
|
float alfaxz1_av[NCLOXZ_MAX]; |
315 |
|
float alfaxz2_av[NCLOXZ_MAX]; |
316 |
|
float alfaxz3_av[NCLOXZ_MAX]; |
317 |
|
int ptcloud_xz[NCLOXZ_MAX]; |
318 |
|
int nclstr; |
319 |
|
float totaltime; |
320 |
|
float houghtime; |
321 |
|
float fittime; |
322 |
|
|
323 |
|
|
324 |
|
void InitcTrkHough(){ |
325 |
|
|
326 |
|
ndblt = 0; |
327 |
|
ntrpt = 0; |
328 |
|
nclouds_yz = 0; |
329 |
|
nclouds_xz = 0; |
330 |
|
nclstr = 0; |
331 |
|
totaltime = 0; |
332 |
|
houghtime = 0; |
333 |
|
fittime = 0; |
334 |
|
for(int i=0;i<NDBLT_MAX_NT ;i++){ |
335 |
|
alfayz1[i] = 0; |
336 |
|
alfayz2[i] = 0; |
337 |
|
db_cloud[i] = 0; |
338 |
|
} |
339 |
|
for(int i=0;i<NTRPT_MAX_NT ;i++){ |
340 |
|
alfaxz1[i] = 0; |
341 |
|
alfaxz2[i] = 0; |
342 |
|
alfaxz3[i] = 0; |
343 |
|
tr_cloud[i] = 0; |
344 |
|
} |
345 |
|
for(int i=0;i<NCLOYZ_MAX ;i++){ |
346 |
|
alfayz1_av[i] = 0; |
347 |
|
alfayz2_av[i] = 0; |
348 |
|
ptcloud_yz[i] = 0; |
349 |
|
} |
350 |
|
for(int i=0;i<NCLOXZ_MAX ;i++){ |
351 |
|
ptcloud_xz[i] = 0; |
352 |
|
alfaxz1_av[i] = 0; |
353 |
|
alfaxz2_av[i] = 0; |
354 |
|
alfaxz3_av[i] = 0; |
355 |
|
} |
356 |
|
} |
357 |
|
|
358 |
|
}; |
359 |
|
|
360 |
|
|
361 |
extern "C" { |
extern "C" { |
362 |
|
|
363 |
extern struct cTrkCalib pedsigbad_; |
extern struct cTrkCalib pedsigbad_; |
364 |
extern struct cTrkLevel0 level0event_; |
extern struct cTrkLevel0 level0event_; |
365 |
extern struct cTrkLevel1 level1event_; |
extern struct cTrkLevel1 level1event_; |
366 |
extern struct cTrkLevel2 level2event_; |
extern struct cTrkLevel2 level2event_; |
367 |
extern struct cPath path_; |
extern struct cPath path_; |
368 |
extern struct cBPath bpath_; |
extern struct cBPath bpath_; |
369 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
370 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
371 |
|
extern struct cTrkHough hough_; |
372 |
|
|
373 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
374 |
int readmipparam_(); |
int readmipparam_(); |