7 |
#define trkstruct_h |
#define trkstruct_h |
8 |
|
|
9 |
#define NPLANE 6 |
#define NPLANE 6 |
10 |
|
#define NVIEW 12 |
11 |
|
#define NVK 24 |
12 |
|
|
13 |
#define NCLMAX_VIEW 200 //max n.clusters per view |
#define NCLMAX_VIEW 200 //max n.clusters per view |
14 |
#define NCLSTR 20 //max n.strip per cluster |
#define NCLSTR 20 //max n.strip per cluster |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
#include <CalibTrk1Event.h> |
//#include <CalibTrk1Event.h> |
29 |
#include <CalibTrk2Event.h> |
//#include <CalibTrk2Event.h> |
30 |
|
#include <TrkCalib.h> |
31 |
|
|
32 |
#include <TString.h> |
#include <TString.h> |
33 |
#include <TFile.h> |
#include <TFile.h> |
225 |
const char *pc = s.Data(); |
const char *pc = s.Data(); |
226 |
for(Int_t i=0; i<=pathlen; i++) path[i] = *pc++; |
for(Int_t i=0; i<=pathlen; i++) path[i] = *pc++; |
227 |
}; |
}; |
228 |
|
|
229 |
}; |
}; |
230 |
|
|
231 |
// ================================================================== |
// ================================================================== |
232 |
/** |
/* /\** */ |
233 |
* \brief Struct to pass magnetic-field file paths to F77 routines |
/* * \brief Struct to pass magnetic-field file paths to F77 routines */ |
234 |
*/ |
/* *\/ */ |
235 |
struct cBPath { |
/* struct cBPath { */ |
236 |
char b_path[256]; |
/* char b_path[256]; */ |
237 |
int b_pathlen; |
/* int b_pathlen; */ |
238 |
int b_error; |
/* int b_error; */ |
239 |
int b_loaded; |
/* int b_loaded; */ |
240 |
/** |
/* /\** */ |
241 |
* Fill the struct variables from a TString object and set |
/* * Fill the struct variables from a TString object and set */ |
242 |
* the load flag to FALSE. |
/* * the load flag to FALSE. */ |
243 |
*/ |
/* *\/ */ |
244 |
void FillWith(TString s){ |
/* void FillWith(TString s){ */ |
245 |
b_loaded = 0; |
/* b_loaded = 0; */ |
246 |
b_pathlen = s.Length(); |
/* b_pathlen = s.Length(); */ |
247 |
const char *pc = s.Data(); |
/* const char *pc = s.Data(); */ |
248 |
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++; */ |
249 |
}; |
/* }; */ |
250 |
/** |
/* /\** */ |
251 |
* Fill the struct variables from a TString object |
/* * Fill the struct variables from a TString object */ |
252 |
*/ |
/* *\/ */ |
253 |
int BIsLoaded(){ return b_loaded; }; |
/* int BIsLoaded(){ return b_loaded; }; */ |
254 |
|
|
255 |
}; |
/* }; */ |
256 |
|
|
257 |
// ================================================================== |
// ================================================================== |
258 |
/** |
/** |
292 |
double cov[5][5]; |
double cov[5][5]; |
293 |
int nstep; |
int nstep; |
294 |
int idcand; |
int idcand; |
295 |
|
|
296 |
}; |
}; |
297 |
// |
// |
298 |
/** |
/** |
301 |
|
|
302 |
struct cTrkHough { |
struct cTrkHough { |
303 |
|
|
304 |
int ndblt; |
int ndblt_nt; |
305 |
float alfayz1[NDBLT_MAX_NT]; |
float alfayz1_nt[NDBLT_MAX_NT]; |
306 |
float alfayz2[NDBLT_MAX_NT]; |
float alfayz2_nt[NDBLT_MAX_NT]; |
307 |
int db_cloud[NDBLT_MAX_NT]; |
int db_cloud_nt[NDBLT_MAX_NT]; |
308 |
int ntrpt; |
int ntrpt_nt; |
309 |
float alfaxz1[NTRPT_MAX_NT]; |
float alfaxz1_nt[NTRPT_MAX_NT]; |
310 |
float alfaxz2[NTRPT_MAX_NT]; |
float alfaxz2_nt[NTRPT_MAX_NT]; |
311 |
float alfaxz3[NTRPT_MAX_NT]; |
float alfaxz3_nt[NTRPT_MAX_NT]; |
312 |
int tr_cloud[NTRPT_MAX_NT]; |
int tr_cloud_nt[NTRPT_MAX_NT]; |
313 |
int nclouds_yz; |
int nclouds_yz_nt; |
314 |
float alfayz1_av[NCLOYZ_MAX]; |
float alfayz1_av_nt[NCLOYZ_MAX]; |
315 |
float alfayz2_av[NCLOYZ_MAX]; |
float alfayz2_av_nt[NCLOYZ_MAX]; |
316 |
int ptcloud_yz[NCLOYZ_MAX]; |
int ptcloud_yz_nt[NCLOYZ_MAX]; |
317 |
int nclouds_xz; |
int nclouds_xz_nt; |
318 |
float alfaxz1_av[NCLOXZ_MAX]; |
float alfaxz1_av_nt[NCLOXZ_MAX]; |
319 |
float alfaxz2_av[NCLOXZ_MAX]; |
float alfaxz2_av_nt[NCLOXZ_MAX]; |
320 |
float alfaxz3_av[NCLOXZ_MAX]; |
float alfaxz3_av_nt[NCLOXZ_MAX]; |
321 |
int ptcloud_xz[NCLOXZ_MAX]; |
int ptcloud_xz_nt[NCLOXZ_MAX]; |
322 |
int nclstr; |
int nclstr; |
323 |
float totaltime; |
float totaltime; |
324 |
float houghtime; |
float houghtime; |
327 |
|
|
328 |
void InitcTrkHough(){ |
void InitcTrkHough(){ |
329 |
|
|
330 |
ndblt = 0; |
ndblt_nt = 0; |
331 |
ntrpt = 0; |
ntrpt_nt = 0; |
332 |
nclouds_yz = 0; |
nclouds_yz_nt = 0; |
333 |
nclouds_xz = 0; |
nclouds_xz_nt = 0; |
334 |
nclstr = 0; |
nclstr = 0; |
335 |
totaltime = 0; |
totaltime = 0; |
336 |
houghtime = 0; |
houghtime = 0; |
337 |
fittime = 0; |
fittime = 0; |
338 |
for(int i=0;i<NDBLT_MAX_NT ;i++){ |
for(int i=0;i<NDBLT_MAX_NT ;i++){ |
339 |
alfayz1[i] = 0; |
alfayz1_nt[i] = 0; |
340 |
alfayz2[i] = 0; |
alfayz2_nt[i] = 0; |
341 |
db_cloud[i] = 0; |
db_cloud_nt[i] = 0; |
342 |
} |
} |
343 |
for(int i=0;i<NTRPT_MAX_NT ;i++){ |
for(int i=0;i<NTRPT_MAX_NT ;i++){ |
344 |
alfaxz1[i] = 0; |
alfaxz1_nt[i] = 0; |
345 |
alfaxz2[i] = 0; |
alfaxz2_nt[i] = 0; |
346 |
alfaxz3[i] = 0; |
alfaxz3_nt[i] = 0; |
347 |
tr_cloud[i] = 0; |
tr_cloud_nt[i] = 0; |
348 |
} |
} |
349 |
for(int i=0;i<NCLOYZ_MAX ;i++){ |
for(int i=0;i<NCLOYZ_MAX ;i++){ |
350 |
alfayz1_av[i] = 0; |
alfayz1_av_nt[i] = 0; |
351 |
alfayz2_av[i] = 0; |
alfayz2_av_nt[i] = 0; |
352 |
ptcloud_yz[i] = 0; |
ptcloud_yz_nt[i] = 0; |
353 |
} |
} |
354 |
for(int i=0;i<NCLOXZ_MAX ;i++){ |
for(int i=0;i<NCLOXZ_MAX ;i++){ |
355 |
ptcloud_xz[i] = 0; |
ptcloud_xz_nt[i] = 0; |
356 |
alfaxz1_av[i] = 0; |
alfaxz1_av_nt[i] = 0; |
357 |
alfaxz2_av[i] = 0; |
alfaxz2_av_nt[i] = 0; |
358 |
alfaxz3_av[i] = 0; |
alfaxz3_av_nt[i] = 0; |
359 |
} |
} |
360 |
} |
} |
361 |
|
|
362 |
}; |
}; |
363 |
|
|
364 |
|
/** |
365 |
|
* \brief Struct to pass VA1-mask to F77 routines |
366 |
|
*/ |
367 |
|
struct cTrkMask { |
368 |
|
|
369 |
|
int mask_vk[NVK][NVIEW]; |
370 |
|
int mask_vk_run[NVK][NVIEW]; |
371 |
|
|
372 |
|
void Set(TFile* , Int_t , Int_t ); |
373 |
|
|
374 |
|
}; |
375 |
|
|
376 |
extern "C" { |
extern "C" { |
377 |
|
|
380 |
extern struct cTrkLevel1 level1event_; |
extern struct cTrkLevel1 level1event_; |
381 |
extern struct cTrkLevel2 level2event_; |
extern struct cTrkLevel2 level2event_; |
382 |
extern struct cPath path_; |
extern struct cPath path_; |
383 |
extern struct cBPath bpath_; |
/* extern struct cBPath bpath_; */ |
384 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
385 |
|
extern struct cTrkHough houghevent_; |
386 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
387 |
extern struct cTrkHough hough_; |
extern struct cTrkMask mask_; |
388 |
|
|
389 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
390 |
int readmipparam_(); |
int readmipparam_(); |