GSE++ library: reading and writing GSE waveforms

◆ add()

void GSE2::waveform::TDAT2sum::add ( const intT value)
inlineprotectedinherited

count a sample

Update the checksum by sample value and increment sample count.

Parameters
valuenext sample value (not difference value)

Definition at line 322 of file gsexx.h.

References GSE2::waveform::TCHK2::add(), GSE2::waveform::TDAT2sum::Mchecksum, and GSE2::waveform::TDAT2sum::Mnsamp.

Referenced by GSE2::waveform::TDAT2read::operator()(), and GSE2::waveform::TDAT2write::operator()().

323 {
324  Mchecksum.add(value);
325  ++Mnsamp;
326 }
intT Mnsamp
number of samples read
Definition: gsexx.h:316
void add(const intT &value)
Add a value to the checksum.
Definition: gsexx_TCHK2.cc:77
TCHK2 Mchecksum
The checksum is handled by the base class.
Definition: gsexx.h:314
Here is the call graph for this function:
Here is the caller graph for this function: