29 UInt_t words_read = 0;
35 num_samples = buffer[0];
37 hw_sum <<=
sizeof(Int_t);
253 values.push_back(0.0);
254 TString list =
"hw_sum/D";
255 values.push_back(0.0);
256 list +=
":num_samples/D";
268 QwError <<
"QwSIS3320_Accumulator::FillTreeVector: fTreeArrayNumEntries == "
271 QwError <<
"QwSIS3320_Accumulator::FillTreeVector: values.size() == "
273 <<
"; fTreeArrayIndex + fTreeArrayNumEntries == "
287 if (folder != NULL) folder->cd();
static const unsigned int INDEX_SUM
Double_t GetAccumulatorAvg() const
Double_t fAccumulatorSum
Accumulator sum.
static const unsigned int INDEX_NUM
Number of entries from this data element.
void ConstructBranchAndVector(TTree *tree, TString &prefix, std::vector< Double_t > &values)
void Difference(const QwSIS3320_Accumulator &value1, const QwSIS3320_Accumulator &value2)
Bool_t IsNameEmpty() const
Is the name of this element empty?
const QwSIS3320_Accumulator operator/(const Double_t &value) const
std::vector< TH1_ptr > fHistograms
Histograms associated with this data element.
SIS3320 sampling ADC accumulator.
QwSIS3320_Accumulator & operator=(const QwSIS3320_Accumulator &value)
Int_t ProcessEvBuffer(UInt_t *buffer, UInt_t num_words_left, UInt_t subelement=0)
Process the CODA event buffer for this element.
QwSIS3320_Accumulator & operator/=(const Double_t &value)
void FillTreeVector(std::vector< Double_t > &values) const
QwSIS3320_Accumulator & operator-=(const Double_t &value)
A logfile class, based on an identical class in the Hermes analyzer.
size_t fTreeArrayIndex
Time-based accumulator limits.
const QwSIS3320_Accumulator operator-(const Double_t &value) const
Double_t GetAccumulatorSum() const
QwHistogramHelper gQwHists
Globally defined instance of the QwHistogramHelper class.
Double_t fNumberOfSamples
Number of accumulated samples.
UInt_t fNumberOfDataWords
Number of raw data words in this data element.
QwSIS3320_Accumulator & operator*=(const Double_t &value)
static std::ostream & endl(std::ostream &)
End of the line.
const QwSIS3320_Accumulator operator*(const Double_t &value) const
virtual const TString & GetElementName() const
Get the name of this element.
void Ratio(const QwSIS3320_Accumulator &numer, const QwSIS3320_Accumulator &denom)
void Sum(const QwSIS3320_Accumulator &value1, const QwSIS3320_Accumulator &value2)
QwSIS3320_Accumulator & operator+=(const Double_t &value)
void ConstructHistograms(TDirectory *folder, TString &prefix)
Construct the histograms for this data element.
#define QwWarning
Predefined log drain for warnings.
Double_t GetNumberOfSamples() const
size_t fTreeArrayNumEntries
Index of this data element in tree.
TH1F * Construct1DHist(const TString &inputfile, const TString &name_title)
void FillHistograms()
Fill the histograms for this data element.
const QwSIS3320_Accumulator operator+(const Double_t &value) const
#define QwError
Predefined log drain for errors.