#include <AcdDigitReader.h>
Definition at line 18 of file AcdDigitReader.h.
Definition at line 18 of file AcdDigitReader_tool.cc.
20 const string myname =
"AcdDigitReader::ctor: ";
static constexpr double ps
QTextStream & endl(QTextStream &s)
AcdDigitReader::~AcdDigitReader |
( |
| ) |
|
|
overridedefault |
Reimplemented from AdcChannelTool.
Definition at line 28 of file AcdDigitReader_tool.cc.
29 const string myname =
"AcdDigitReader::update: ";
32 if ( pdig ==
nullptr ) {
33 cout << myname <<
"ERROR: Digit is null." <<
endl;
38 if ( acd.
raw.size() ) {
39 cout << myname <<
"ERROR: ADC channel has raw data." <<
endl;
42 if ( acd.
flags.size() ) {
43 cout << myname <<
"ERROR: ADC channel has flag data." <<
endl;
47 cout << myname <<
"ERROR: ADC channel has a pedestal." <<
endl;
55 cout << myname <<
"ERROR: Raw digit has inconsistent channel number." <<
endl;
66 unsigned int nsig = dig.
Samples();
67 acd.
raw.resize(nsig, -999);
68 if ( nsig < dig.
ADCs().size() ) {
69 cout << myname <<
"WARNING: " <<
"Uncompressed size is smaller than compressed: " 70 << nsig <<
" < " << dig.
ADCs().size() <<
endl;
77 cout << myname <<
setw(8) << acd.
channel() <<
": [";
79 bool toomany = mdig > 10 ;
80 if ( toomany ) mdig = 10;
81 for (
Index idig=0; idig<mdig; ++idig ) cout <<
setw(5) << acd.
raw[idig];
82 if ( toomany ) cout <<
" ...";
85 cout << myname <<
"Channel " << acd.
channel() <<
" raw count: " << acd.
raw.size() <<
endl;
float GetPedestal() const
const ADCvector_t & ADCs() const
Reference to the compressed ADC count vector.
ULong64_t Samples() const
Number of samples in the uncompressed ADC data.
Collection of charge vs time digitized from a single readout channel.
ChannelID_t Channel() const
DAQ channel this raw data was read from.
const raw::RawDigit * digit
void setChannelInfo(ChannelInfoPtr pchi)
Q_EXPORT QTSManip setw(int w)
raw::Compress_t Compression() const
Compression algorithm used to store the ADC counts.
static Index badChannel()
void Uncompress(const std::vector< short > &adc, std::vector< short > &uncompressed, raw::Compress_t compress)
Uncompresses a raw data buffer.
QTextStream & endl(QTextStream &s)
int AcdDigitReader::m_LogLevel |
|
private |
The documentation for this class was generated from the following files: