31 UInt_t words_read = 0;
42 fSamples[index++] = buffer[i] & 0xFFFF;
43 fSamples[index++] = (buffer[i] >> 16) & 0xFFFF;
54 QwError <<
"QwSIS3320_Samples: Not enough words while processing buffer!" <<
QwLog::endl;
63 std::vector<QwSIS3320_Type>::const_iterator max = std::max_element(
fSamples.begin(),
fSamples.end());
64 return std::pair<size_t,QwSIS3320_Type>(max -
fSamples.begin(),*max);
69 std::vector<QwSIS3320_Type>::const_iterator
min = std::min_element(
fSamples.begin(),
fSamples.end());
70 return std::pair<size_t,QwSIS3320_Type>(min -
fSamples.begin(),*
min);
91 fGraph =
new TGraph(n, vx, vy);
150 for (
size_t i = 0; i <
fSamples.size(); i++)
162 for (
size_t i = 0; i <
fSamples.size(); i++)
177 for (
size_t i = 0; i <
fSamples.size(); i++)
189 for (
size_t i = 0; i <
fSamples.size(); i++)
239 for (
size_t i = 0; i <
fSamples.size(); i++)
251 for (
size_t i = 0; i <
fSamples.size(); i++)
SIS3320 sampling ADC samples.
UInt_t fSamplePointer
Sample position in buffer.
const QwSIS3320_Samples operator-(const Double_t &value) const
QwSIS3320_Samples & operator-=(const Double_t &value)
std::vector< QwSIS3320_Type > fSamples
Samples values.
TGraph * fGraph
Graph of samples.
UInt_t fNumberOfDataWords
Number of data words in this data element.
static std::vector< QwSIS3320_Type > fIndex
Samples index.
A logfile class, based on an identical class in the Hermes analyzer.
std::pair< size_t, QwSIS3320_Type > GetMin() const
QwSIS3320_Samples & operator=(const QwSIS3320_Samples &value)
const QwSIS3320_Samples operator*(const Double_t &value) const
QwSIS3320_Type GetSumInTimeWindow(const UInt_t start, const UInt_t stop) const
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t num_words_left, UInt_t subelement=0)
static std::ostream & endl(std::ostream &)
End of the line.
QwSIS3320_Samples & operator/=(const Double_t &value)
QwSIS3320_Type GetSum() const
QwSIS3320_Samples & operator+=(const Double_t &value)
std::pair< size_t, QwSIS3320_Type > GetMax() const
const QwSIS3320_Samples operator/(const Double_t &value) const
QwSIS3320_Samples & operator*=(const Double_t &value)
const QwSIS3320_Samples operator+(const Double_t &value) const
#define QwError
Predefined log drain for errors.
UInt_t fSamplesPerWord
Number of 12-bit sample values per data word.