17 m_priorSign(1),m_numberOfData(2),m_nChInBlock(32),
18 m_maxDev(0),m_posMaxDev(0),m_negMaxDev(0),m_nChAdj(0),m_iChBase(0),
19 m_MatrixOverlap(4), m_SType(
WIRE)
43 std::cout <<
" " << block << std::endl;
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){
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){
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;
207 if(((LCOut[0]!=0)||(LCOut[1]!=0))&&((LCOut[2]!=0)||(LCOut[3]!=0))){
211 std::cout <<
"# DoubletSB [do3outof4Coincedence]" <<std::endl;
212 std::cout<<
"#SB LCOut[0]: inner 2hit";LCOut[0]->
print();
213 std::cout<<
"#SB LCOut[1]: inner 1hit";LCOut[1]->
print();
214 std::cout<<
"#SB LCOut[2]: pivot 1hit";LCOut[2]->
print();
215 std::cout<<
"#SB LCOut[3]: pivot 2hit";LCOut[3]->
print();
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;
334 return ((
A & C)|(
A & D)|( B & D));