9 |
#define NPLANE 6 |
#define NPLANE 6 |
10 |
#define NVIEW 12 |
#define NVIEW 12 |
11 |
#define NVK 24 |
#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 |
|
|
31 |
//#include <CalibTrk1Event.h> |
#include <CalibTrk1Event.h> |
32 |
//#include <CalibTrk2Event.h> |
#include <CalibTrk2Event.h> |
33 |
#include <TrkCalib.h> |
using namespace pamela; |
34 |
|
//#include <TrkCalib.h> |
35 |
|
|
36 |
#include <TString.h> |
#include <TString.h> |
37 |
#include <TFile.h> |
#include <TFile.h> |
38 |
#include <TTree.h> |
#include <TTree.h> |
39 |
|
|
40 |
|
|
41 |
#include <fstream> |
#include <fstream> |
42 |
#include <iostream> |
#include <iostream> |
43 |
/** |
/** |
51 |
float sigma_t[128][24][12]; |
float sigma_t[128][24][12]; |
52 |
int bad[128][24][12]; |
int bad[128][24][12]; |
53 |
|
|
54 |
void FillACalibFrom(TFile* , Int_t , Int_t ); |
/* void FillACalibFrom(TFile* , Int_t , Int_t ); */ |
55 |
void FillFCalibFrom(TFile* , Int_t , Int_t ); |
/* void FillFCalibFrom(TFile* , Int_t , Int_t ); */ |
56 |
void FillTCalibFrom(TFile* , Int_t , Int_t ); |
/* void FillTCalibFrom(TFile* , Int_t , Int_t ); */ |
57 |
void FillTCalibFrom(TString); |
/* void FillTCalibFrom(TString); */ |
58 |
|
|
59 |
}; |
}; |
60 |
// ================================================================== |
// ================================================================== |
115 |
float cnrmsev[24][12]; |
float cnrmsev[24][12]; |
116 |
int fshower[12]; |
int fshower[12]; |
117 |
int whichtrack[NCLMAX]; |
int whichtrack[NCLMAX]; |
118 |
|
|
119 |
}; |
}; |
120 |
// ================================================================== |
// ================================================================== |
121 |
/** |
/** |
296 |
double xv[NPLANE],yv[NPLANE],zv[NPLANE]; |
double xv[NPLANE],yv[NPLANE],zv[NPLANE]; |
297 |
double axv[NPLANE],ayv[NPLANE]; |
double axv[NPLANE],ayv[NPLANE]; |
298 |
double cov[5][5]; |
double cov[5][5]; |
299 |
|
double fact; |
300 |
int nstep; |
int nstep; |
301 |
int idcand; |
int idcand; |
302 |
|
int trackmode; |
303 |
|
int istepmin; |
304 |
}; |
}; |
305 |
// |
// |
306 |
/** |
/** |
377 |
int mask_vk[NVK][NVIEW]; |
int mask_vk[NVK][NVIEW]; |
378 |
int mask_vk_run[NVK][NVIEW]; |
int mask_vk_run[NVK][NVIEW]; |
379 |
|
|
380 |
void Set(TFile* , Int_t , Int_t ); |
// void Set(TFile* , Int_t , Int_t ); |
381 |
|
|
382 |
|
}; |
383 |
|
|
384 |
|
/** |
385 |
|
* \brief Struct for pfa parameters |
386 |
|
*/ |
387 |
|
struct cTrkETA { |
388 |
|
|
389 |
|
int nangbin; |
390 |
|
float angL[NANGMAX],angR[NANGMAX]; |
391 |
|
int netaval; |
392 |
|
float eta2[NANGMAX][NETAVALMAX]; |
393 |
|
float feta2[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
394 |
|
float eta3[NANGMAX][NETAVALMAX]; |
395 |
|
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
396 |
|
float eta4[NANGMAX][NETAVALMAX]; |
397 |
|
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
398 |
|
|
399 |
}; |
}; |
400 |
|
|
401 |
extern "C" { |
extern "C" { |
402 |
|
|
403 |
extern struct cTrkCalib pedsigbad_; |
extern struct cTrkCalib pedsigbad_; |
404 |
|
extern struct cTrkMask mask_; |
405 |
extern struct cTrkLevel0 level0event_; |
extern struct cTrkLevel0 level0event_; |
406 |
extern struct cTrkLevel1 level1event_; |
extern struct cTrkLevel1 level1event_; |
407 |
extern struct cTrkLevel2 level2event_; |
extern struct cTrkLevel2 level2event_; |
408 |
extern struct cPath path_; |
extern struct cPath path_; |
|
/* extern struct cBPath bpath_; */ |
|
409 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
410 |
extern struct cTrkHough houghevent_; |
extern struct cTrkHough houghevent_; |
411 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
412 |
extern struct cTrkMask mask_; |
extern struct cTrkETA pfa_; |
413 |
|
|
414 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
415 |
int readmipparam_(); |
int readmipparam_(); |
418 |
int readalignparam_(); |
int readalignparam_(); |
419 |
int readetaparam_(); |
int readetaparam_(); |
420 |
void reductionflight_(int*); |
void reductionflight_(int*); |
421 |
int analysisflight_(); |
int analysisflight_(int*); |
422 |
} |
int readb_(); |
423 |
|
|
424 |
|
} |
425 |
|
|
426 |
#endif |
#endif |
|
|
|