79 if((inner!=0)&&(pivot!=0)){
84 bool* bi =
new bool [iLength];
85 bool* bp =
new bool [pLength];
87 for( i=0; i<iLength/2; i+=1){
91 for( i=0; i<pLength/2; i+=1){
118 for(i = 1; i<iLength-1; i+=1){
120 LCOut[1]->
setChannel(i,((!bi[i-1] & bi[i] & !bi[i+1]) |
121 (bi[i-1] & !bi[i] & bi[i+1])));
129 std::cout <<
"C,D i";
130 for(j = 0; j<iLength; j++){
134 std::cout << (j%10)+1;
137 std::cout << std::endl <<
"2hit ";
139 std::cout << std::endl <<
"1hit ";
141 std::cout << std::endl;
171 for( i=1; i<pLength-1; i+=1){
172 LCOut[2]->
setChannel(i,((!bp[i-1] & bp[i] & !bp[i+1]) |
173 ( bp[i-1] & !bp[i] & bp[i+1])));
182 std::cout <<
"A,B p";
183 for(j = 0; j<pLength; j++){
187 std::cout << (j%10)+1;
190 std::cout << std::endl <<
"1hit ";
192 std::cout << std::endl <<
"2hit ";
194 std::cout << std::endl;
228 bool oredHit =
false;
234 for( dev=0; ( dev<=
m_maxDev ) && !oredHit; dev+=1){
240 if((0 <= iCh)&&(iCh < LCOut[0]->getLength())){
243 if((0 <= iCh)&&(iCh < LCOut[1]->getLength())){
246 if((0 <= pCh)&&(pCh < LCOut[2]->getLength())){
249 if((0 <= pCh)&&(pCh < LCOut[3]->getLength())){
273 std::cout <<
"# DoubletSB : delta =" <<
m_priorSign*dev
274 <<
" @pivot=" << pCh <<
" @onner="<< iCh << std::endl;
286 if((0 <= iCh)&&(iCh < LCOut[0]->getLength())){
289 if((0 <= iCh)&&(iCh < LCOut[1]->getLength())){
292 if((0 <= pCh)&&(pCh < LCOut[2]->getLength())){
295 if((0 <= pCh)&&(pCh < LCOut[3]->getLength())){
319 std::cout <<
"# DoubletSB : delta =" << -
m_priorSign*dev
320 <<
" @pivot=" << pCh <<
" @onner="<< iCh << std::endl;