222 |
const char *pc = s.Data(); |
const char *pc = s.Data(); |
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 |
// ================================================================== |
// ================================================================== |
229 |
/** |
/* /\** */ |
230 |
* \brief Struct to pass magnetic-field file paths to F77 routines |
/* * \brief Struct to pass magnetic-field file paths to F77 routines */ |
231 |
*/ |
/* *\/ */ |
232 |
struct cBPath { |
/* struct cBPath { */ |
233 |
char b_path[256]; |
/* char b_path[256]; */ |
234 |
int b_pathlen; |
/* int b_pathlen; */ |
235 |
int b_error; |
/* int b_error; */ |
236 |
int b_loaded; |
/* int b_loaded; */ |
237 |
/** |
/* /\** */ |
238 |
* Fill the struct variables from a TString object and set |
/* * Fill the struct variables from a TString object and set */ |
239 |
* the load flag to FALSE. |
/* * the load flag to FALSE. */ |
240 |
*/ |
/* *\/ */ |
241 |
void FillWith(TString s){ |
/* void FillWith(TString s){ */ |
242 |
b_loaded = 0; |
/* b_loaded = 0; */ |
243 |
b_pathlen = s.Length(); |
/* b_pathlen = s.Length(); */ |
244 |
const char *pc = s.Data(); |
/* const char *pc = s.Data(); */ |
245 |
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++; */ |
246 |
}; |
/* }; */ |
247 |
/** |
/* /\** */ |
248 |
* Fill the struct variables from a TString object |
/* * Fill the struct variables from a TString object */ |
249 |
*/ |
/* *\/ */ |
250 |
int BIsLoaded(){ return b_loaded; }; |
/* int BIsLoaded(){ return b_loaded; }; */ |
251 |
|
|
252 |
}; |
/* }; */ |
253 |
|
|
254 |
// ================================================================== |
// ================================================================== |
255 |
/** |
/** |
289 |
double cov[5][5]; |
double cov[5][5]; |
290 |
int nstep; |
int nstep; |
291 |
int idcand; |
int idcand; |
292 |
|
|
293 |
}; |
}; |
294 |
// |
// |
295 |
/** |
/** |
298 |
|
|
299 |
struct cTrkHough { |
struct cTrkHough { |
300 |
|
|
301 |
int ndblt; |
int ndblt_nt; |
302 |
float alfayz1[NDBLT_MAX_NT]; |
float alfayz1_nt[NDBLT_MAX_NT]; |
303 |
float alfayz2[NDBLT_MAX_NT]; |
float alfayz2_nt[NDBLT_MAX_NT]; |
304 |
int db_cloud[NDBLT_MAX_NT]; |
int db_cloud_nt[NDBLT_MAX_NT]; |
305 |
int ntrpt; |
int ntrpt_nt; |
306 |
float alfaxz1[NTRPT_MAX_NT]; |
float alfaxz1_nt[NTRPT_MAX_NT]; |
307 |
float alfaxz2[NTRPT_MAX_NT]; |
float alfaxz2_nt[NTRPT_MAX_NT]; |
308 |
float alfaxz3[NTRPT_MAX_NT]; |
float alfaxz3_nt[NTRPT_MAX_NT]; |
309 |
int tr_cloud[NTRPT_MAX_NT]; |
int tr_cloud_nt[NTRPT_MAX_NT]; |
310 |
int nclouds_yz; |
int nclouds_yz_nt; |
311 |
float alfayz1_av[NCLOYZ_MAX]; |
float alfayz1_av_nt[NCLOYZ_MAX]; |
312 |
float alfayz2_av[NCLOYZ_MAX]; |
float alfayz2_av_nt[NCLOYZ_MAX]; |
313 |
int ptcloud_yz[NCLOYZ_MAX]; |
int ptcloud_yz_nt[NCLOYZ_MAX]; |
314 |
int nclouds_xz; |
int nclouds_xz_nt; |
315 |
float alfaxz1_av[NCLOXZ_MAX]; |
float alfaxz1_av_nt[NCLOXZ_MAX]; |
316 |
float alfaxz2_av[NCLOXZ_MAX]; |
float alfaxz2_av_nt[NCLOXZ_MAX]; |
317 |
float alfaxz3_av[NCLOXZ_MAX]; |
float alfaxz3_av_nt[NCLOXZ_MAX]; |
318 |
int ptcloud_xz[NCLOXZ_MAX]; |
int ptcloud_xz_nt[NCLOXZ_MAX]; |
319 |
int nclstr; |
int nclstr; |
320 |
float totaltime; |
float totaltime; |
321 |
float houghtime; |
float houghtime; |
324 |
|
|
325 |
void InitcTrkHough(){ |
void InitcTrkHough(){ |
326 |
|
|
327 |
ndblt = 0; |
ndblt_nt = 0; |
328 |
ntrpt = 0; |
ntrpt_nt = 0; |
329 |
nclouds_yz = 0; |
nclouds_yz_nt = 0; |
330 |
nclouds_xz = 0; |
nclouds_xz_nt = 0; |
331 |
nclstr = 0; |
nclstr = 0; |
332 |
totaltime = 0; |
totaltime = 0; |
333 |
houghtime = 0; |
houghtime = 0; |
334 |
fittime = 0; |
fittime = 0; |
335 |
for(int i=0;i<NDBLT_MAX_NT ;i++){ |
for(int i=0;i<NDBLT_MAX_NT ;i++){ |
336 |
alfayz1[i] = 0; |
alfayz1_nt[i] = 0; |
337 |
alfayz2[i] = 0; |
alfayz2_nt[i] = 0; |
338 |
db_cloud[i] = 0; |
db_cloud_nt[i] = 0; |
339 |
} |
} |
340 |
for(int i=0;i<NTRPT_MAX_NT ;i++){ |
for(int i=0;i<NTRPT_MAX_NT ;i++){ |
341 |
alfaxz1[i] = 0; |
alfaxz1_nt[i] = 0; |
342 |
alfaxz2[i] = 0; |
alfaxz2_nt[i] = 0; |
343 |
alfaxz3[i] = 0; |
alfaxz3_nt[i] = 0; |
344 |
tr_cloud[i] = 0; |
tr_cloud_nt[i] = 0; |
345 |
} |
} |
346 |
for(int i=0;i<NCLOYZ_MAX ;i++){ |
for(int i=0;i<NCLOYZ_MAX ;i++){ |
347 |
alfayz1_av[i] = 0; |
alfayz1_av_nt[i] = 0; |
348 |
alfayz2_av[i] = 0; |
alfayz2_av_nt[i] = 0; |
349 |
ptcloud_yz[i] = 0; |
ptcloud_yz_nt[i] = 0; |
350 |
} |
} |
351 |
for(int i=0;i<NCLOXZ_MAX ;i++){ |
for(int i=0;i<NCLOXZ_MAX ;i++){ |
352 |
ptcloud_xz[i] = 0; |
ptcloud_xz_nt[i] = 0; |
353 |
alfaxz1_av[i] = 0; |
alfaxz1_av_nt[i] = 0; |
354 |
alfaxz2_av[i] = 0; |
alfaxz2_av_nt[i] = 0; |
355 |
alfaxz3_av[i] = 0; |
alfaxz3_av_nt[i] = 0; |
356 |
} |
} |
357 |
} |
} |
358 |
|
|
366 |
extern struct cTrkLevel1 level1event_; |
extern struct cTrkLevel1 level1event_; |
367 |
extern struct cTrkLevel2 level2event_; |
extern struct cTrkLevel2 level2event_; |
368 |
extern struct cPath path_; |
extern struct cPath path_; |
369 |
extern struct cBPath bpath_; |
/* extern struct cBPath bpath_; */ |
370 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
371 |
|
extern struct cTrkHough houghevent_; |
372 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
|
extern struct cTrkHough hough_; |
|
373 |
|
|
374 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
375 |
int readmipparam_(); |
int readmipparam_(); |