| 2 |
* FTrkCalibQLook_BASIC.cxx |
* FTrkCalibQLook_BASIC.cxx |
| 3 |
* |
* |
| 4 |
* autor: D.Fedele |
* autor: D.Fedele |
| 5 |
* version v1r10 |
* version v1r11 |
| 6 |
* Parameters: |
* Parameters: |
| 7 |
* file - the data file to analyze |
* file - the data file to analyze |
| 8 |
* fromevent - first event to analyze |
* fromevent - first event to analyze |
| 74 |
Int_t nevents=0; |
Int_t nevents=0; |
| 75 |
Int_t minevent = 0; |
Int_t minevent = 0; |
| 76 |
Int_t maxevent = 0; |
Int_t maxevent = 0; |
| 77 |
ULong64_t OBT[2]; |
ULong_t OBT[2]; |
| 78 |
|
|
| 79 |
OBT[0]=0; |
OBT[0]=0; |
| 80 |
OBT[1]=0; |
OBT[1]=0; |
| 192 |
Int_t canvasx=900; |
Int_t canvasx=900; |
| 193 |
Int_t canvasy=1200; |
Int_t canvasy=1200; |
| 194 |
|
|
| 195 |
Int_t ndsp =0,alarm=0; |
Int_t alarm=0; |
| 196 |
Float_t pedav[12][12],pedavtemp[12][12],sigav[12][12],sigavtemp[12][12]; |
Float_t pedav[12][12],pedavtemp[12][12],sigav[12][12],sigavtemp[12][12]; |
| 197 |
Int_t flpedav[12][12],flsigav[12][12]; |
Int_t flpedav[12][12],flsigav[12][12]; |
| 198 |
Float_t siglimsup[12][12],sigliminf[12][12],pedlimsup[12][12],pedliminf[12][12]; |
Float_t siglimsup[12][12],sigliminf[12][12],pedlimsup[12][12],pedliminf[12][12]; |
| 341 |
} |
} |
| 342 |
} |
} |
| 343 |
|
|
| 344 |
Int_t nn,ok=0; |
Int_t nn=0,ok=0; |
| 345 |
|
|
| 346 |
// |
// |
| 347 |
// write warning if it occur |
// write warning if it occur |
| 348 |
for(Int_t n = 0; n<12; n++){ |
for(Int_t n = 0; n<12; n++){ |
| 349 |
|
|
| 350 |
ndsp = ctrk.dspnum[n]; |
if(ctrk.dspnum[n]==0) |
| 351 |
nn = ndsp-1; |
continue; |
| 352 |
|
nn = ctrk.dspnum[n]-1; |
| 353 |
|
|
| 354 |
for(Int_t iii=0;iii<3;iii++){ |
for(Int_t iii=0;iii<3;iii++){ |
| 355 |
if(ctrk.crc_c[nn][iii]!=0){ |
if(ctrk.crc_c[nn][iii]!=0){ |
| 416 |
space[wc]-=spacep; |
space[wc]-=spacep; |
| 417 |
} |
} |
| 418 |
|
|
| 419 |
if(ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
// if(ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
| 420 |
// |
// |
| 421 |
// evaluate the mean value of the sigma and pedestal |
// evaluate the mean value of the sigma and pedestal |
| 422 |
for(Int_t j = 0; j < 3072; j++){ |
for(Int_t j = 0; j < 3072; j++){ |
| 477 |
} |
} |
| 478 |
} |
} |
| 479 |
} |
} |
| 480 |
} |
// } |
| 481 |
} |
} |
| 482 |
if(ok==0 && ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
if(ok==0){ |
| 483 |
|
// if(ok==0 && ctrk.good0[0]==1 && ctrk.good0[1]==1){ |
| 484 |
if(space[wc]<=10){ |
if(space[wc]<=10){ |
| 485 |
wc+=1; |
wc+=1; |
| 486 |
flcanvas+=1; |
flcanvas+=1; |