615 |
tim = 100000.; |
tim = 100000.; |
616 |
plo = m; |
plo = m; |
617 |
fbi = 0; |
fbi = 0; |
618 |
if ( clevel1->estrip[j4][m][l] > 1. ){ |
if ( clevel1->estrip[j4][m][l] > 0.99995 ){ |
619 |
tim = 10000.; |
tim = 10000.; |
620 |
plo = m; |
plo = m; |
621 |
fbi = 1; |
fbi = 1; |
622 |
}; |
}; |
623 |
if ( clevel1->estrip[j4][m][l] > 10. ){ |
if ( clevel1->estrip[j4][m][l] > 9.9995 ){ |
624 |
tim = 1000.; |
tim = 1000.; |
625 |
plo = 22 + m; |
plo = 22 + m; |
626 |
fbi = 1; |
fbi = 1; |
627 |
}; |
}; |
628 |
if ( clevel1->estrip[j4][m][l] > 100. ){ |
if ( clevel1->estrip[j4][m][l] > 99.995 ){ |
629 |
tim = 100.; |
tim = 100.; |
630 |
plo = 22 + m; |
plo = 22 + m; |
631 |
fbi = 0; |
fbi = 0; |
632 |
}; |
}; |
633 |
if ( clevel1->estrip[j4][m][l] > 1000. ){ |
if ( clevel1->estrip[j4][m][l] > 999.95 ){ |
634 |
tim = 10.; |
tim = 10.; |
635 |
plo = 44 + m; |
plo = 44 + m; |
636 |
fbi = 0; |
fbi = 0; |
637 |
}; |
}; |
638 |
if ( clevel1->estrip[j4][m][l] > 10000. ){ |
if ( clevel1->estrip[j4][m][l] > 9999.5 ){ |
639 |
tim = 1.; |
tim = 1.; |
640 |
plo = 66 + m; |
plo = 66 + m; |
641 |
fbi = 0; |
fbi = 0; |
651 |
} else { |
} else { |
652 |
svstrip[istrip] = -(fbi*1000000000 + plo*10000000 + j4*100000 + cle); |
svstrip[istrip] = -(fbi*1000000000 + plo*10000000 + j4*100000 + cle); |
653 |
}; |
}; |
654 |
// if ( ei == 770 ) printf(" j %i l %i m %i estrip %f \n",j4,l,m,clevel1->estrip[j4][m][l]); |
// |
655 |
// if ( ei == 770 ) printf(" num lim %i fbi %i tim %f plo %i cle %i \n",numeric_limits<Int_t>::max(),fbi,tim,plo,cle); |
// if ( ei >= -770 ) printf(" j %i l %i m %i estrip %f \n",j4,l,m,clevel1->estrip[j4][m][l]); |
656 |
// if ( ei == 770 ) printf(" svstrip %i \n",svstrip[istrip]); |
// if ( ei >= -770 ) printf(" num lim %i fbi %i tim %f plo %i cle %i \n",numeric_limits<Int_t>::max(),fbi,tim,plo,cle); |
657 |
|
// if ( ei >= -770 ) printf(" svstrip %i \n",svstrip[istrip]); |
658 |
// |
// |
659 |
istrip++; |
istrip++; |
660 |
}; |
}; |
738 |
calol2cm(); |
calol2cm(); |
739 |
} |
} |
740 |
|
|
741 |
void CaloProcessing::FillCommonVar(CaloLevel2 *ca){ |
void CaloProcessing::FillCommonVar(CaloLevel1 *c1, CaloLevel2 *ca){ |
742 |
// |
// |
743 |
ca->good = clevel2->good; |
ca->good = clevel2->good; |
744 |
if ( clevel2->trigty == 2. ){ |
if ( clevel2->trigty == 2. ){ |
760 |
ca->qmax = clevel2->qmax; |
ca->qmax = clevel2->qmax; |
761 |
ca->elen = clevel2->elen; |
ca->elen = clevel2->elen; |
762 |
ca->selen = clevel2->selen; |
ca->selen = clevel2->selen; |
|
ca->estrip = TArrayI(ca->nstrip,svstrip); |
|
763 |
memcpy(ca->qq,clevel2->qq,sizeof(clevel2->qq)); |
memcpy(ca->qq,clevel2->qq,sizeof(clevel2->qq)); |
764 |
memcpy(ca->planemax,clevel2->planemax,sizeof(clevel2->planemax)); |
memcpy(ca->planemax,clevel2->planemax,sizeof(clevel2->planemax)); |
765 |
memcpy(ca->varcfit,clevel2->varcfit,sizeof(clevel2->varcfit)); |
memcpy(ca->varcfit,clevel2->varcfit,sizeof(clevel2->varcfit)); |
767 |
memcpy(ca->cibar,clevel2->cibar,sizeof(clevel2->cibar)); |
memcpy(ca->cibar,clevel2->cibar,sizeof(clevel2->cibar)); |
768 |
memcpy(ca->cbar,clevel2->cbar,sizeof(clevel2->cbar)); |
memcpy(ca->cbar,clevel2->cbar,sizeof(clevel2->cbar)); |
769 |
// |
// |
770 |
|
if ( c1 ){ |
771 |
|
c1->istrip = istrip; |
772 |
|
c1->estrip = TArrayI(istrip,svstrip); |
773 |
|
}; |
774 |
|
// |
775 |
} |
} |
776 |
|
|
777 |
void CaloProcessing::ClearStructs(){ |
void CaloProcessing::ClearStructs(){ |