363 |
Int_t val = 0; |
Int_t val = 0; |
364 |
Int_t del = 1100; |
Int_t del = 1100; |
365 |
if ( clevel2->trigty != 2. ){ |
if ( clevel2->trigty != 2. ){ |
366 |
|
Bool_t ck = false; |
367 |
for (Int_t sec = 0; sec < 4; sec++){ |
for (Int_t sec = 0; sec < 4; sec++){ |
368 |
val = (Int_t)de->calselftrig[sec][6]; |
val = (Int_t)de->calselftrig[sec][6]; |
369 |
del = delay(val); |
del = delay(val); |
370 |
if ( del < 1100 ){ |
if ( del < 1100 ){ |
371 |
|
clevel2->wartrig = 0.; |
372 |
clevel2->trigty = 3.; |
clevel2->trigty = 3.; |
373 |
|
ck = true; |
374 |
break; |
break; |
375 |
}; |
}; |
376 |
}; |
}; |
377 |
|
if ( !ck ) clevel2->wartrig = 100.; |
378 |
|
} else { |
379 |
|
Bool_t ck = false; |
380 |
|
for (Int_t sec = 0; sec < 4; sec++){ |
381 |
|
val = (Int_t)de->calselftrig[sec][6]; |
382 |
|
del = delay(val); |
383 |
|
if ( del < 1100 ){ |
384 |
|
clevel2->wartrig = 0.; |
385 |
|
ck = true; |
386 |
|
}; |
387 |
|
}; |
388 |
|
if ( !ck ) clevel2->wartrig = 100.; |
389 |
}; |
}; |
390 |
// |
// |
391 |
Int_t se = 5; |
Int_t se = 5; |
762 |
} else { |
} else { |
763 |
ca->selftrigger = 0; |
ca->selftrigger = 0; |
764 |
}; |
}; |
765 |
|
// |
766 |
|
ca->selftrigger += (Int_t)clevel2->wartrig; |
767 |
|
// |
768 |
memcpy(ca->perr,clevel2->perr,sizeof(clevel2->perr)); |
memcpy(ca->perr,clevel2->perr,sizeof(clevel2->perr)); |
769 |
memcpy(ca->swerr,clevel2->swerr,sizeof(clevel2->swerr)); |
memcpy(ca->swerr,clevel2->swerr,sizeof(clevel2->swerr)); |
770 |
memcpy(ca->crc,clevel2->crc,sizeof(clevel2->crc)); |
memcpy(ca->crc,clevel2->crc,sizeof(clevel2->crc)); |
847 |
void CaloProcessing::ClearCommonVar(){ |
void CaloProcessing::ClearCommonVar(){ |
848 |
istrip = 0; |
istrip = 0; |
849 |
clevel2->trigty = -1.; |
clevel2->trigty = -1.; |
850 |
|
clevel2->wartrig = 0.; |
851 |
clevel2->good = 0; |
clevel2->good = 0; |
852 |
clevel2->nstrip = 0.; |
clevel2->nstrip = 0.; |
853 |
clevel2->qtot = 0.; |
clevel2->qtot = 0.; |