9 |
#define NTRKMAX 10 |
#define NTRKMAX 10 |
10 |
#define NSINGMAX 100 |
#define NSINGMAX 100 |
11 |
|
|
12 |
|
#define NCLMAX_VIEW 200 |
13 |
|
#define NCLSTR 19 |
14 |
|
#define NCLMAX (NCLMAX_VIEW*12) |
15 |
|
#define NCLBUFF (NCLMAX*NCLSTR) |
16 |
|
|
17 |
#include <CalibTrk1Event.h> |
#include <CalibTrk1Event.h> |
18 |
#include <CalibTrk2Event.h> |
#include <CalibTrk2Event.h> |
19 |
|
|
78 |
* \brief Struct to pass tracker LEVEL1 data to F77 routines |
* \brief Struct to pass tracker LEVEL1 data to F77 routines |
79 |
*/ |
*/ |
80 |
struct cTrkLevel1 { |
struct cTrkLevel1 { |
81 |
int good1; |
// int good1; |
82 |
|
int good[12]; |
83 |
int nclstr1; |
int nclstr1; |
84 |
int view[500]; |
int view[NCLMAX]; |
85 |
int ladder[500]; |
int ladder[NCLMAX]; |
86 |
int maxs[500]; |
int maxs[NCLMAX]; |
87 |
int mult[500]; |
int mult[NCLMAX]; |
88 |
float dedx[500]; |
float dedx[NCLMAX]; |
89 |
int indstart[500]; |
int indstart[NCLMAX]; |
90 |
int indmax[500]; |
int indmax[NCLMAX]; |
91 |
int totCLlength; |
int totCLlength; |
92 |
float clsignal[8500]; |
float clsignal[NCLBUFF]; |
93 |
float cnev[24][12]; |
float clsigma[NCLBUFF]; |
94 |
|
int cladc[NCLBUFF]; |
95 |
|
int clbad[NCLBUFF]; |
96 |
|
float cnev[24][12]; |
97 |
|
int cnnev[24][12]; |
98 |
|
int fshower[12]; |
99 |
|
int whichtrack[NCLMAX]; |
100 |
}; |
}; |
101 |
// ================================================================== |
// ================================================================== |
102 |
/** |
/** |
103 |
* \brief Struct to pass tracker LEVEL2 data to F77 routines |
* \brief Struct to pass tracker LEVEL2 data to F77 routines |
104 |
*/ |
*/ |
105 |
struct cTrkLevel2 { |
struct cTrkLevel2 { |
106 |
int good2; |
// int good2; |
107 |
int crc[12]; |
// int crc[12]; |
108 |
|
int good[12]; |
109 |
// ---------------------------- |
// ---------------------------- |
110 |
int nclsx; |
int nclsx; |
111 |
int planex[NSINGMAX]; |
int planex[NSINGMAX]; |
112 |
float xs[NSINGMAX][2]; |
float xs[NSINGMAX][2]; |
113 |
float signlxs[NSINGMAX]; |
float signlxs[NSINGMAX]; |
114 |
|
int clsx[NSINGMAX]; |
115 |
// ---------------------------- |
// ---------------------------- |
116 |
int nclsy; |
int nclsy; |
117 |
int planey[NSINGMAX]; |
int planey[NSINGMAX]; |
118 |
float ys[NSINGMAX][2]; |
float ys[NSINGMAX][2]; |
119 |
float signlys[NSINGMAX]; |
float signlys[NSINGMAX]; |
120 |
|
int clsy[NSINGMAX]; |
121 |
// ---------------------------- |
// ---------------------------- |
122 |
int ntrk; |
int ntrk; |
123 |
int image[NTRKMAX]; |
int image[NTRKMAX]; |
129 |
float al_nt[NTRKMAX][5]; |
float al_nt[NTRKMAX][5]; |
130 |
float coval[NTRKMAX][5][5]; |
float coval[NTRKMAX][5][5]; |
131 |
float chi2_nt[NTRKMAX]; |
float chi2_nt[NTRKMAX]; |
132 |
int xgood_nt[NTRKMAX][6]; |
int nstep_nt[NTRKMAX]; |
133 |
|
int xgood_nt[NTRKMAX][6]; |
134 |
int ygood_nt[NTRKMAX][6]; |
int ygood_nt[NTRKMAX][6]; |
135 |
float xv_nt[NTRKMAX][6]; |
float xv_nt[NTRKMAX][6]; |
136 |
float yv_nt[NTRKMAX][6]; |
float yv_nt[NTRKMAX][6]; |
139 |
float ayv_nt[NTRKMAX][6]; |
float ayv_nt[NTRKMAX][6]; |
140 |
float dedx_x[NTRKMAX][6]; |
float dedx_x[NTRKMAX][6]; |
141 |
float dedx_y[NTRKMAX][6]; |
float dedx_y[NTRKMAX][6]; |
142 |
float bdl[NTRKMAX]; |
int cltrx[NTRKMAX][6]; |
143 |
|
int cltry[NTRKMAX][6]; |
144 |
|
// float bdl[NTRKMAX]; |
145 |
|
|
146 |
void InitcTrkLevel2(){ |
void InitcTrkLevel2(){ |
147 |
|
|
148 |
good2 = 0; |
// good2 = 0; |
149 |
for(Int_t i=0; i<12 ; i++) |
for(Int_t i=0; i<12 ; i++) |
150 |
crc[i] = 0; |
// crc[i] = 0; |
151 |
|
good[i] = 0; |
152 |
// ---------------------------- |
// ---------------------------- |
153 |
nclsx = 0; |
nclsx = 0; |
154 |
nclsy = 0; |
nclsy = 0; |
168 |
for(Int_t i=0; i<NTRKMAX ; i++){ |
for(Int_t i=0; i<NTRKMAX ; i++){ |
169 |
image[i] = 0; |
image[i] = 0; |
170 |
chi2_nt[i] = 0; |
chi2_nt[i] = 0; |
171 |
bdl[i] = 0; |
// bdl[i] = 0; |
172 |
|
|
173 |
for(Int_t ii=0; ii<5 ; ii++){ |
for(Int_t ii=0; ii<5 ; ii++){ |
174 |
al_nt[i][ii] = 0; |
al_nt[i][ii] = 0; |
266 |
extern struct cPath path_; |
extern struct cPath path_; |
267 |
extern struct cBPath bpath_; |
extern struct cBPath bpath_; |
268 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
269 |
|
|
270 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
271 |
int readmipparam_(); |
int readmipparam_(); |
272 |
int readchargeparam_(); |
int readchargeparam_(); |