305 for(UInt_t nL = 0; nL < 20; nL+=2){
306 selectedFib[nL] = 9999;
307 while(
nF != 63 && (
m_uv_geo[no_Detector][nL][
nF] + 0.2401) <= (
track.first.first.first + 0.5 *
track.first.first.second) ){
311 if( (
m_uv_geo[no_Detector][nL][
nF]-0.2401) <=
track.first.first.first - 0.5 *
track.first.first.second ){
313 selectedFib[nL] =
nF;
315 selectedFib[nL] =
nF + 9000;
319 selectedFib[nL] =
nF + 2999;
321 selectedFib[nL] =
nF + 2000;
323 selectedFib[nL] =
nF + 999;
325 selectedFib[nL] =
nF + 9000;
329 nF > 4 ?
nF -= 5 :
nF = 0;
333 for(UInt_t nL = 1; nL < 20; nL+=2){
334 selectedFib[nL] = 9999;
335 while(
nF != 63 && (
m_uv_geo[no_Detector][nL][
nF] + 0.2401) <=
track.second.first.first + 0.5 *
track.second.first.second ){
339 if( (
m_uv_geo[no_Detector][nL][
nF]-0.2401) <=
track.second.first.first - 0.5 *
track.second.first.second ){
341 selectedFib[nL] =
nF;
343 selectedFib[nL] =
nF + 9000;
347 selectedFib[nL] =
nF + 2999;
349 selectedFib[nL] =
nF + 2000;
351 selectedFib[nL] =
nF + 999;
353 selectedFib[nL] =
nF + 9000;
357 nF > 4 ?
nF -= 5 :
nF = 0;
362 Float_t fLeft, fRight;
364 for(UInt_t nL = 0; nL < 16; nL+=2){
365 fLow = selectedFib[nL]%1000;
367 if( fLow > 1 && fLow < 62 && selectedFib[nL] < 8000 && selectedFib[nL+2] > 8000 && selectedFib[nL+4] < 8000 ){
369 if(
m_uv_geo[no_Detector][nL][fLow] >
m_uv_geo[no_Detector][nL+2][fLow+1] ){
375 if(
m_uv_geo[no_Detector][nL][fLow] >
m_uv_geo[no_Detector][nL+2][fLow-1] ){
381 fLeft =
m_uv_geo[no_Detector][nL+2][fCur] + 0.2399;
382 fRight =
m_uv_geo[no_Detector][nL+2][fCur+1] - 0.2401;
384 if( fLeft < fRight ){
386 if( fLeft >
track.first.first.first - 0.5 *
track.first.first.second && fLeft <
track.first.first.first + 0.5 *
track.first.first.second ){
387 track.first.first.first = 0.5 * (
track.first.first.first + 0.5 *
track.first.first.second + fLeft );
388 track.first.first.second = 2 * (
track.first.first.first - fLeft );
391 if( fRight >
track.first.first.first - 0.5 *
track.first.first.second && fRight <
track.first.first.first + 0.5 *
track.first.first.second ){
392 track.first.first.first = 0.5 * (
track.first.first.first - 0.5 *
track.first.first.second + fRight );
393 track.first.first.second = 2 * ( fRight -
track.first.first.first );
400 for(UInt_t nL = 1; nL < 17; nL+=2){
401 fLow = selectedFib[nL]%1000;
403 if( fLow > 1 && fLow < 62 && selectedFib[nL] < 8000 && selectedFib[nL+2] > 8000 && selectedFib[nL+4] < 8000 ){
405 if(
m_uv_geo[no_Detector][nL][fLow] >
m_uv_geo[no_Detector][nL+2][fLow+1] ){
411 if(
m_uv_geo[no_Detector][nL][fLow] >
m_uv_geo[no_Detector][nL+2][fLow-1] ){
417 fLeft =
m_uv_geo[no_Detector][nL+2][fCur] + 0.2399;
418 fRight =
m_uv_geo[no_Detector][nL+2][fCur+1] - 0.2401;
419 if( fLeft < fRight ){
421 if( fLeft >
track.second.first.first - 0.5 *
track.second.first.second && fLeft <
track.second.first.first + 0.5 *
track.second.first.second ){
422 track.second.first.first = 0.5 * (
track.second.first.first + 0.5 *
track.second.first.second + fLeft );
423 track.second.first.second = 2 * (
track.second.first.first - fLeft );
426 if( fRight >
track.second.first.first - 0.5 *
track.second.first.second && fRight <
track.second.first.first + 0.5 *
track.second.first.second ){
427 track.second.first.first = 0.5 * (
track.second.first.first - 0.5 *
track.second.first.second + fRight );
428 track.second.first.second = 2 * ( fRight -
track.second.first.first );