#include <Legacy35tZeroSuppressService.h>
Legacy35tZeroSuppressService::Legacy35tZeroSuppressService |
( |
float |
aAdcThreshold, |
|
|
unsigned int |
aTickRange, |
|
|
unsigned int |
aMinTickGap, |
|
|
bool |
aSuppressStickyBits |
|
) |
| |
Implements AdcSuppressService.
Definition at line 49 of file Legacy35tZeroSuppressService_service.cc.
50 const unsigned int nsig = sigs.size();
52 keep.resize(nsig,
false);
53 if ( nsig == 0 )
return 0;
55 for (
unsigned int isig=0; isig<nsig; ++isig ) {
57 AdcSignal pedsig = ach.subtract(ped, rawsig);
59 if ( ach.hasStickyBits(rawsig) && ach.isSmall(pedsig) ) {
60 std::cout <<
"Legacy35tZeroSuppressService::filter: Suppressing sticky ADC value " << pedsig
61 <<
" (raw=" << rawsig <<
", ped=" << ped <<
")" <<
endl;
69 if ( isig2 > nsig ) isig2 = nsig;
70 for (
Index jsig=isig1; jsig<=isig2; ++jsig ) keep[jsig] =
true;
75 unsigned int jsig1 = 0;
76 unsigned int jsig2 = 0;
77 for (
unsigned int isig=0; isig<nsig; ++isig ) {
79 if ( inGap && (isig+1==nsig || keep[isig]) ) {
82 for (
unsigned int jsig=jsig1; jsig<=jsig2; ++jsig ) {
90 }
else if ( !inGap && !keep[isig] ) {
unsigned int m_MinTickGap
QTextStream & endl(QTextStream &s)
bool m_SuppressStickyBits
ostream & Legacy35tZeroSuppressService::print |
( |
std::ostream & |
out = std::cout , |
|
|
std::string |
prefix = "" |
|
) |
| const |
|
virtual |
float Legacy35tZeroSuppressService::m_AdcThreshold |
|
private |
unsigned int Legacy35tZeroSuppressService::m_MinTickGap |
|
private |
bool Legacy35tZeroSuppressService::m_SuppressStickyBits |
|
private |
unsigned int Legacy35tZeroSuppressService::m_TickRange |
|
private |
The documentation for this class was generated from the following files: