50 for(
int i=0;
i<6;
i++ ) {
51 for(
int j=0;
j<12;
j++ ) {
53 inrec_qual_st1[
i][
j] = 0;
54 inrec_qual_st2[
i][
j] = 0;
55 inrec_qual_st3[
i][
j] = 0;
56 inrec_qual_st4[
i][
j] = 0;
57 soc_stdis_n[
i][
j] = 0;
58 soc_stdis_wl[
i][
j] = 0;
59 soc_stdis_wr[
i][
j] = 0;
60 soc_stdis_zl[
i][
j] = 0;
61 soc_stdis_zr[
i][
j] = 0;
62 soc_qcut_st1[
i][
j] = 0;
63 soc_qcut_st2[
i][
j] = 0;
64 soc_qcut_st4[
i][
j] = 0;
65 soc_qual_csc[
i][
j] = 0;
66 soc_run_21[
i][
j] =
false;
67 soc_nbx_del[
i][
j] =
false;
68 soc_csc_etacanc[
i][
j] =
false;
69 soc_openlut_extr[
i][
j] =
false;
76 if (
check(wh,sc) == -99 )
return;
77 inrec_qual_st1[
check(wh,sc)][sc] = val&0x7;
82 if (
check(wh,sc) == -99 )
return 0;
83 return (inrec_qual_st1[
check(wh,sc)][sc])&0x7;
88 if (
check(wh,sc) == -99 )
return;
89 inrec_qual_st2[
check(wh,sc)][sc] = val&0x7;
94 if (
check(wh,sc) == -99 )
return 0;
95 return (inrec_qual_st2[
check(wh,sc)][sc])&0x7;
100 if (
check(wh,sc) == -99 )
return;
101 inrec_qual_st3[
check(wh,sc)][sc] = val&0x7;
106 if (
check(wh,sc) == -99 )
return 0;
107 return (inrec_qual_st3[
check(wh,sc)][sc])&0x7;
112 if (
check(wh,sc) == -99 )
return;
113 inrec_qual_st4[
check(wh,sc)][sc] = val&0x7;
118 if (
check(wh,sc) == -99 )
return 0;
119 return (inrec_qual_st4[
check(wh,sc)][sc])&0x7;
124 if (
check(wh,sc) == -99 )
return;
125 soc_stdis_n[
check(wh,sc)][sc] = val&0x7;
130 if (
check(wh,sc) == -99 )
return 0;
131 return (soc_stdis_n[
check(wh,sc)][sc])&0x7;
136 if (
check(wh,sc) == -99 )
return;
137 soc_stdis_wl[
check(wh,sc)][sc] = val&0x7;
142 if (
check(wh,sc) == -99 )
return 0;
143 return (soc_stdis_wl[
check(wh,sc)][sc])&0x7;
148 if (
check(wh,sc) == -99 )
return;
149 soc_stdis_wr[
check(wh,sc)][sc] = val&0x7;
154 if (
check(wh,sc) == -99 )
return 0;
155 return (soc_stdis_wr[
check(wh,sc)][sc])&0x7;
160 if (
check(wh,sc) == -99 )
return;
161 soc_stdis_zl[
check(wh,sc)][sc] = val&0x7;
166 if (
check(wh,sc) == -99 )
return 0;
167 return (soc_stdis_zl[
check(wh,sc)][sc])&0x7;
172 if (
check(wh,sc) == -99 )
return;
173 soc_stdis_zr[
check(wh,sc)][sc] = val&0x7;
178 if (
check(wh,sc) == -99 )
return 0;
179 return (soc_stdis_zr[
check(wh,sc)][sc])&0x7;
184 if (
check(wh,sc) == -99 )
return;
185 soc_qcut_st1[
check(wh,sc)][sc] = val&0x7;
190 if (
check(wh,sc) == -99 )
return 0;
191 return (soc_qcut_st1[
check(wh,sc)][sc])&0x7;
196 if (
check(wh,sc) == -99 )
return;
197 soc_qcut_st2[
check(wh,sc)][sc] = val&0x7;
202 if (
check(wh,sc) == -99 )
return 0;
203 return (soc_qcut_st2[
check(wh,sc)][sc])&0x7;
208 if (
check(wh,sc) == -99 )
return;
209 soc_qcut_st4[
check(wh,sc)][sc] = val&0x7;
214 if (
check(wh,sc) == -99 )
return 0;
215 return (soc_qcut_st4[
check(wh,sc)][sc])&0x7;
220 if (
check(wh,sc) == -99 )
return;
221 soc_qual_csc[
check(wh,sc)][sc] = val&0x7;
226 if (
check(wh,sc) == -99 )
return 0;
227 return (soc_qual_csc[
check(wh,sc)][sc])&0x7;
232 if (
check(wh,sc) == -99 )
return;
233 soc_run_21[
check(wh,sc)][sc] = val;
238 if (
check(wh,sc) == -99 )
return false;
239 return soc_run_21[
check(wh,sc)][sc];
244 if (
check(wh,sc) == -99 )
return;
245 soc_nbx_del[
check(wh,sc)][sc] = val;
250 if (
check(wh,sc) == -99 )
return false;
251 return soc_nbx_del[
check(wh,sc)][sc];
256 if (
check(wh,sc) == -99 )
return;
257 soc_csc_etacanc[
check(wh,sc)][sc] = val;
262 if (
check(wh,sc) == -99 )
return false;
263 return soc_csc_etacanc[
check(wh,sc)][sc];
268 if (
check(wh,sc) == -99 )
return;
269 soc_openlut_extr[
check(wh,sc)][sc] = val;
274 if (
check(wh,sc) == -99 )
return false;
275 return soc_openlut_extr[
check(wh,sc)][sc];
280 if ( sc<0 || sc>11 || wh==0 || wh>3 || wh<-3 )
return -99;
282 if ( wh < 0 )
return wh+3;
289 cout <<
"L1 barrel Track Finder Parameters :" << endl;
290 cout <<
"===================================" << endl;
294 cout <<
"Quality Cut St.1 :" << endl;
295 cout <<
"==================" << endl;
297 for(
int i=-3;
i<4;
i++ ) {
298 if (
i == 0 )
continue;
299 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_inrec_qual_st1(
i,
j); }
303 cout <<
"Quality Cut St.2 :" << endl;
304 cout <<
"==================" << endl;
306 for(
int i=-3;
i<4;
i++ ) {
307 if (
i == 0 )
continue;
308 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_inrec_qual_st2(
i,
j); }
312 cout <<
"Quality Cut St.3 :" << endl;
313 cout <<
"==================" << endl;
315 for(
int i=-3;
i<4;
i++ ) {
316 if (
i == 0 )
continue;
317 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_inrec_qual_st3(
i,
j); }
321 cout <<
"Quality Cut St.4 :" << endl;
322 cout <<
"==================" << endl;
324 for(
int i=-3;
i<4;
i++ ) {
325 if (
i == 0 )
continue;
326 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_inrec_qual_st4(
i,
j); }
330 cout <<
"Quality Cut Next Wheel :" << endl;
331 cout <<
"========================" << endl;
333 for(
int i=-3;
i<4;
i++ ) {
334 if (
i == 0 )
continue;
335 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_stdis_n(
i,
j); }
339 cout <<
"Quality Cut WL :" << endl;
340 cout <<
"================" << endl;
342 for(
int i=-3;
i<4;
i++ ) {
343 if (
i == 0 )
continue;
344 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_stdis_wl(
i,
j); }
348 cout <<
"Quality Cut WR :" << endl;
349 cout <<
"================" << endl;
351 for(
int i=-3;
i<4;
i++ ) {
352 if (
i == 0 )
continue;
353 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_stdis_wr(
i,
j); }
357 cout <<
"Quality Cut ZL :" << endl;
358 cout <<
"================" << endl;
360 for(
int i=-3;
i<4;
i++ ) {
361 if (
i == 0 )
continue;
362 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_stdis_zl(
i,
j); }
366 cout <<
" Quality Cut ZR :" << endl;
367 cout <<
"=================" << endl;
369 for(
int i=-3;
i<4;
i++ ) {
370 if (
i == 0 )
continue;
371 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_stdis_zr(
i,
j); }
375 cout <<
"Quality Cut SOC St.1 :" << endl;
376 cout <<
"======================" << endl;
378 for(
int i=-3;
i<4;
i++ ) {
379 if (
i == 0 )
continue;
380 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_qcut_st1(
i,
j); }
384 cout <<
"Quality Cut SOC St.2 :" << endl;
385 cout <<
"======================" << endl;
387 for(
int i=-3;
i<4;
i++ ) {
388 if (
i == 0 )
continue;
389 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_qcut_st2(
i,
j); }
393 cout <<
"Quality Cut SOC St.4 :" << endl;
394 cout <<
"======================" << endl;
396 for(
int i=-3;
i<4;
i++ ) {
397 if (
i == 0 )
continue;
398 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_qcut_st4(
i,
j); }
402 cout <<
"CSC Quality Cut :" << endl;
403 cout <<
"=================" << endl;
405 for(
int i=-3;
i<4;
i++ ) {
406 if (
i == 0 )
continue;
407 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_qual_csc(
i,
j); }
411 cout <<
"Extrapolation 21 :" << endl;
412 cout <<
"==================" << endl;
414 for(
int i=-3;
i<4;
i++ ) {
415 if (
i == 0 )
continue;
416 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_run_21(
i,
j); }
420 cout <<
"Herbert Scheme :" << endl;
421 cout <<
"================" << endl;
423 for(
int i=-3;
i<4;
i++ ) {
424 if (
i == 0 )
continue;
425 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_nbx_del(
i,
j); }
429 cout <<
"CSC Eta Cancellation :" << endl;
430 cout <<
"======================" << endl;
432 for(
int i=-3;
i<4;
i++ ) {
433 if (
i == 0 )
continue;
434 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_csc_etacanc(
i,
j); }
438 cout <<
"Open LUTs :" << endl;
439 cout <<
"===========" << endl;
441 for(
int i=-3;
i<4;
i++ ) {
442 if (
i == 0 )
continue;
443 for(
int j=0;
j<12;
j++ ) {
cout <<
" " << setw(1) << get_soc_openlut_extr(
i,
j); }
void set_inrec_qual_st2(int wh, int sc, const unsigned short int val)
void set_soc_run_21(int wh, int sc, const bool val)
void set_inrec_qual_st1(int wh, int sc, const unsigned short int val)
void set_soc_qcut_st2(int wh, int sc, const unsigned short int val)
unsigned short int get_inrec_qual_st4(int wh, int sc) const
void set_soc_qcut_st1(int wh, int sc, const unsigned short int val)
bool get_soc_nbx_del(int wh, int sc) const
unsigned short int get_soc_stdis_wr(int wh, int sc) const
void set_soc_openlut_extr(int wh, int sc, const bool val)
unsigned short int get_soc_stdis_zr(int wh, int sc) const
unsigned short int get_soc_qcut_st1(int wh, int sc) const
bool get_soc_csc_etacanc(int wh, int sc) const
void set_inrec_qual_st4(int wh, int sc, const unsigned short int val)
void set_soc_stdis_zl(int wh, int sc, const unsigned short int val)
void set_soc_csc_etacanc(int wh, int sc, const bool val)
unsigned short int get_inrec_qual_st3(int wh, int sc) const
void set_soc_nbx_del(int wh, int sc, const bool val)
unsigned short int get_soc_qual_csc(int wh, int sc) const
unsigned short int get_inrec_qual_st2(int wh, int sc) const
void set_soc_stdis_wr(int wh, int sc, const unsigned short int val)
unsigned short int get_soc_stdis_zl(int wh, int sc) const
void reset()
reset parameters to zero
unsigned short int get_soc_qcut_st2(int wh, int sc) const
bool get_soc_openlut_extr(int wh, int sc) const
unsigned short int get_inrec_qual_st1(int wh, int sc) const
void set_inrec_qual_st3(int wh, int sc, const unsigned short int val)
bool get_soc_run_21(int wh, int sc) const
void set_soc_stdis_n(int wh, int sc, const unsigned short int val)
void set_soc_qcut_st4(int wh, int sc, const unsigned short int val)
int check(int wh, int sc) const
unsigned short int get_soc_stdis_wl(int wh, int sc) const
unsigned short int get_soc_stdis_n(int wh, int sc) const
unsigned short int get_soc_qcut_st4(int wh, int sc) const
void set_soc_stdis_wl(int wh, int sc, const unsigned short int val)
void set_soc_qual_csc(int wh, int sc, const unsigned short int val)
void set_soc_stdis_zr(int wh, int sc, const unsigned short int val)