#include <FclStickyCodeFlagger.h>
Definition at line 38 of file FclStickyCodeFlagger.h.
Definition at line 71 of file FclStickyCodeFlagger_tool.cc.
74 const string myname =
"FclStickyCodeFlagger::ctor: ";
77 cout << myname <<
"Configuration: " <<
endl;
82 if ( m_StickyCode < AdcStuck || m_StickyCode >=
AdcMitigated ) {
83 cout << myname <<
"WARNING: Flag for sticky code has an unexpected value: " 90 for (
const IndexVectorMultiMap::value_type& imma : mvmap ) {
91 Index icha = imma.first;
94 codes.insert(codes.end(), newcodes.begin(), newcodes.end());
98 for ( IndexVectorMap::value_type& ient :
m_stickyCodes ) ncod += ient.second.size();
99 cout << myname <<
"Found " << ncod <<
" sticky code" << (ncod == 1 ?
"" :
"s") <<
" for " 100 << ncha <<
" channel" << (ncha == 1 ?
"" :
"s") <<
"." <<
endl;
102 cout << myname <<
"WARNING: Found " << nerr <<
" error" << (nerr == 1 ?
"" :
"s")
103 <<
" while parsing the sticky code map." << endl;
110 for ( IndexPairMap::value_type& ient :
m_stickyRanges ) chset.insert(ient.first);
112 cout << myname <<
"Found " << nran <<
" sticky range" << (nran == 1 ?
"" :
"s") <<
" for " 113 << ncha <<
" channel" << (ncha == 1 ?
"" :
"s") <<
"." <<
endl;
115 cout << myname <<
"WARNING: Found " << nerr <<
" error" << (nerr == 1 ?
"" :
"s")
116 <<
" while parsing the sticky range map." << endl;
IndexVectorMap m_stickyCodes
static constexpr double ps
const AdcFlag AdcMitigated
IndexPairMap m_stickyRanges
QTextStream & endl(QTextStream &s)
FclStickyCodeFlagger::~FclStickyCodeFlagger |
( |
| ) |
|
|
overridedefault |
Reimplemented from AdcChannelTool.
Definition at line 122 of file FclStickyCodeFlagger_tool.cc.
123 const string myname =
"FclStickyCodeFlagger::view: ";
126 if ( acd.flags.size() < acd.raw.size() ) {
127 cout << myname <<
"WARNING: Increasing size of the flags vector for channel " << acd.channel() <<
endl;
135 for (
Index isam=0; isam<acd.raw.size(); ++isam ) {
136 if ( std::find(codes.begin(), codes.end(), acd.raw[isam]) != codes.end() ) samplesToFlag.insert(isam);
140 using IndexPairRange = std::pair<IndexPairMap::const_iterator, IndexPairMap::const_iterator>;
144 for (
Index isam=0; isam<acd.raw.size(); ++isam ) {
146 if ( adc >= ran.first && adc <= ran.second ) samplesToFlag.insert(isam);
152 ret.
setInt(
"stickyChannel", acd.channel());
153 ret.
setInt(
"stickyCodeCount", samplesToFlag.size());
IndexVectorMap m_stickyCodes
void setInt(Name name, int val)
IndexPairMap m_stickyRanges
QTextStream & endl(QTextStream &s)
int FclStickyCodeFlagger::m_LogLevel |
|
private |
AdcFlag FclStickyCodeFlagger::m_StickyCode |
|
private |
The documentation for this class was generated from the following files: