QwAnalysis
|
SIS3320 sampling ADC samples. More...
#include <QwSIS3320_Samples.h>
Inherits TObject.
Public Member Functions | |
QwSIS3320_Samples (UInt_t nsamples=256) | |
virtual | ~QwSIS3320_Samples () |
size_t | GetMinIndex () const |
size_t | GetMaxIndex () const |
QwSIS3320_Type | GetMinSample () const |
QwSIS3320_Type | GetMaxSample () const |
QwSIS3320_Type | GetSum () const |
QwSIS3320_Type | GetSample (size_t i) const |
QwSIS3320_Type | GetPedestal () const |
QwSIS3320_Type | GetSumInTimeWindow (const UInt_t start, const UInt_t stop) const |
UInt_t | GetNumberOfDataWords () const |
void | SetNumberOfDataWords (const UInt_t &numwords) |
UInt_t | GetNumberOfSamples () const |
void | SetNumberOfSamples (const UInt_t nsamples) |
UInt_t | GetSamplePointer () const |
void | SetSamplePointer (const UInt_t samplepointer) |
UInt_t | GetSamplesPerWord () const |
void | SetSamplesPerWord (const UInt_t nsamples) |
TGraph * | GetGraph () const |
void | UpdateGraph () |
void | ClearEventData () |
Int_t | ProcessEvBuffer (UInt_t *buffer, UInt_t num_words_left, UInt_t subelement=0) |
QwSIS3320_Samples & | operator/= (const Double_t &value) |
QwSIS3320_Samples & | operator*= (const Double_t &value) |
QwSIS3320_Samples & | operator+= (const Double_t &value) |
QwSIS3320_Samples & | operator-= (const Double_t &value) |
const QwSIS3320_Samples | operator/ (const Double_t &value) const |
const QwSIS3320_Samples | operator* (const Double_t &value) const |
const QwSIS3320_Samples | operator+ (const Double_t &value) const |
const QwSIS3320_Samples | operator- (const Double_t &value) const |
QwSIS3320_Samples & | operator= (const QwSIS3320_Samples &value) |
QwSIS3320_Samples & | operator+= (const QwSIS3320_Samples &value) |
QwSIS3320_Samples & | operator-= (const QwSIS3320_Samples &value) |
const QwSIS3320_Samples | operator+ (const QwSIS3320_Samples &value) const |
const QwSIS3320_Samples | operator- (const QwSIS3320_Samples &value) const |
Private Member Functions | |
std::pair< size_t, QwSIS3320_Type > | GetMin () const |
std::pair< size_t, QwSIS3320_Type > | GetMax () const |
ClassDef (QwSIS3320_Samples, 1) | |
Private Attributes | |
UInt_t | fSamplesPerWord |
Number of 12-bit sample values per data word. More... | |
UInt_t | fNumberOfDataWords |
Number of data words in this data element. More... | |
UInt_t | fSamplePointer |
Sample position in buffer. More... | |
std::vector< QwSIS3320_Type > | fSamples |
Samples values. More... | |
TGraph * | fGraph |
Graph of samples. More... | |
size_t | fTreeArrayIndex |
Index of this data element in tree. More... | |
size_t | fTreeArrayNumEntries |
Number of entries from this data element. More... | |
Static Private Attributes | |
static std::vector < QwSIS3320_Type > | fIndex |
Samples index. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const QwSIS3320_Samples &s) |
SIS3320 sampling ADC samples.
The QwSIS3320_Samples should allow convenient access to the sampling data collected with the SIS3320 for the Compton photon detector. This class implements its own sum, difference, and ratio methods inherited from the general VQwDataElement.
Definition at line 36 of file QwSIS3320_Samples.h.
|
inline |
Definition at line 40 of file QwSIS3320_Samples.h.
References fGraph, SetNumberOfSamples(), SetSamplePointer(), and SetSamplesPerWord().
|
inlinevirtual |
|
private |
|
inline |
Definition at line 93 of file QwSIS3320_Samples.h.
References fSamples.
Referenced by QwSIS3320_Channel::ClearEventData(), and QwSIS3320_Channel::InitializeChannel().
|
inline |
|
private |
Definition at line 61 of file QwSIS3320_Samples.cc.
References fSamples.
Referenced by GetMaxIndex(), and GetMaxSample().
|
inline |
Definition at line 51 of file QwSIS3320_Samples.h.
References GetMax().
|
inline |
Definition at line 53 of file QwSIS3320_Samples.h.
References GetMax().
|
private |
Definition at line 67 of file QwSIS3320_Samples.cc.
References fSamples, and Qw::min.
Referenced by GetMinIndex(), and GetMinSample().
|
inline |
Definition at line 50 of file QwSIS3320_Samples.h.
References GetMin().
|
inline |
Definition at line 52 of file QwSIS3320_Samples.h.
References GetMin().
|
inline |
Definition at line 60 of file QwSIS3320_Samples.h.
References fNumberOfDataWords.
|
inline |
Definition at line 65 of file QwSIS3320_Samples.h.
References fSamples.
Referenced by operator<<(), SetNumberOfSamples(), and SetSamplesPerWord().
|
inline |
Definition at line 57 of file QwSIS3320_Samples.h.
References GetSample().
|
inline |
Definition at line 56 of file QwSIS3320_Samples.h.
References fSamples.
Referenced by QwSIS3320_Channel::FillHistograms(), GetPedestal(), and operator<<().
|
inline |
Definition at line 75 of file QwSIS3320_Samples.h.
References fSamplePointer.
|
inline |
Definition at line 80 of file QwSIS3320_Samples.h.
References fSamplesPerWord.
Referenced by SetNumberOfSamples(), and SetSamplesPerWord().
QwSIS3320_Type QwSIS3320_Samples::GetSum | ( | ) | const |
Definition at line 73 of file QwSIS3320_Samples.cc.
References fSamples.
Referenced by QwSIS3320_Channel::FillHistograms(), and QwSIS3320_Channel::PrintInfo().
QwSIS3320_Type QwSIS3320_Samples::GetSumInTimeWindow | ( | const UInt_t | start, |
const UInt_t | stop | ||
) | const |
Definition at line 79 of file QwSIS3320_Samples.cc.
References fSamples.
Referenced by QwSIS3320_Channel::PrintInfo().
const QwSIS3320_Samples QwSIS3320_Samples::operator* | ( | const Double_t & | value | ) | const |
Multiplication of factor to sampled data
value | Right-hand side |
Definition at line 124 of file QwSIS3320_Samples.cc.
QwSIS3320_Samples & QwSIS3320_Samples::operator*= | ( | const Double_t & | value | ) |
Multiplication assignment of factor to sampled data
value | Right-hand side |
Definition at line 148 of file QwSIS3320_Samples.cc.
References fSamples.
const QwSIS3320_Samples QwSIS3320_Samples::operator+ | ( | const Double_t & | value | ) | const |
Addition of offset to sampled data
value | Right-hand side |
Definition at line 100 of file QwSIS3320_Samples.cc.
const QwSIS3320_Samples QwSIS3320_Samples::operator+ | ( | const QwSIS3320_Samples & | value | ) | const |
Addition of sampled data
value | Right-hand side |
Definition at line 199 of file QwSIS3320_Samples.cc.
QwSIS3320_Samples & QwSIS3320_Samples::operator+= | ( | const Double_t & | value | ) |
Addition assignment of offset to sampled data
value | Right-hand side |
Definition at line 175 of file QwSIS3320_Samples.cc.
References fSamples.
QwSIS3320_Samples & QwSIS3320_Samples::operator+= | ( | const QwSIS3320_Samples & | value | ) |
Addition assignment of sampled data
value | Right-hand side |
Definition at line 237 of file QwSIS3320_Samples.cc.
References fSamples.
const QwSIS3320_Samples QwSIS3320_Samples::operator- | ( | const Double_t & | value | ) | const |
Subtraction of offset from sampled data
value | Right-hand side |
Definition at line 112 of file QwSIS3320_Samples.cc.
const QwSIS3320_Samples QwSIS3320_Samples::operator- | ( | const QwSIS3320_Samples & | value | ) | const |
Subtraction of sampled data
value | Right-hand side |
Definition at line 211 of file QwSIS3320_Samples.cc.
QwSIS3320_Samples & QwSIS3320_Samples::operator-= | ( | const Double_t & | value | ) |
Subtraction assignment of offset from sampled data
value | Right-hand side |
Definition at line 187 of file QwSIS3320_Samples.cc.
References fSamples.
QwSIS3320_Samples & QwSIS3320_Samples::operator-= | ( | const QwSIS3320_Samples & | value | ) |
Subtraction assignment of sampled data
value | Right-hand side |
Definition at line 249 of file QwSIS3320_Samples.cc.
References fSamples.
const QwSIS3320_Samples QwSIS3320_Samples::operator/ | ( | const Double_t & | value | ) | const |
Division of factor from sampled data (not division-by-zero safe)
value | Right-hand side |
Definition at line 136 of file QwSIS3320_Samples.cc.
QwSIS3320_Samples & QwSIS3320_Samples::operator/= | ( | const Double_t & | value | ) |
Division assignment of factor from sampled data (not division-by-zero safe)
value | Right-hand side |
Definition at line 160 of file QwSIS3320_Samples.cc.
References fSamples.
QwSIS3320_Samples & QwSIS3320_Samples::operator= | ( | const QwSIS3320_Samples & | value | ) |
Assignment of sampled data
value | Right-hand side |
Definition at line 223 of file QwSIS3320_Samples.cc.
References fNumberOfDataWords, fSamplePointer, fSamples, and fSamplesPerWord.
Int_t QwSIS3320_Samples::ProcessEvBuffer | ( | UInt_t * | buffer, |
UInt_t | num_words_left, | ||
UInt_t | subelement = 0 |
||
) |
Definition at line 29 of file QwSIS3320_Samples.cc.
References QwLog::endl(), fNumberOfDataWords, fSamples, fSamplesPerWord, and QwError.
|
inline |
Definition at line 61 of file QwSIS3320_Samples.h.
References fNumberOfDataWords.
Referenced by SetNumberOfSamples(), and SetSamplesPerWord().
|
inline |
Definition at line 66 of file QwSIS3320_Samples.h.
References fIndex, fSamples, GetNumberOfSamples(), GetSamplesPerWord(), and SetNumberOfDataWords().
Referenced by QwSIS3320_Channel::ProcessEvent(), and QwSIS3320_Samples().
|
inline |
Definition at line 76 of file QwSIS3320_Samples.h.
References fSamplePointer.
Referenced by QwSIS3320_Samples().
|
inline |
Definition at line 81 of file QwSIS3320_Samples.h.
References fSamplesPerWord, GetNumberOfSamples(), GetSamplesPerWord(), and SetNumberOfDataWords().
Referenced by QwSIS3320_Samples().
void QwSIS3320_Samples::UpdateGraph | ( | ) |
Definition at line 86 of file QwSIS3320_Samples.cc.
References fGraph, fIndex, and fSamples.
|
friend |
Definition at line 144 of file QwSIS3320_Samples.h.
|
private |
Graph of samples.
Definition at line 134 of file QwSIS3320_Samples.h.
Referenced by GetGraph(), QwSIS3320_Samples(), UpdateGraph(), and ~QwSIS3320_Samples().
|
staticprivate |
Samples index.
Definition at line 130 of file QwSIS3320_Samples.h.
Referenced by SetNumberOfSamples(), and UpdateGraph().
|
private |
Number of data words in this data element.
Definition at line 125 of file QwSIS3320_Samples.h.
Referenced by GetNumberOfDataWords(), operator=(), ProcessEvBuffer(), and SetNumberOfDataWords().
|
private |
Sample position in buffer.
Definition at line 127 of file QwSIS3320_Samples.h.
Referenced by GetSamplePointer(), operator=(), and SetSamplePointer().
|
private |
Samples values.
Definition at line 132 of file QwSIS3320_Samples.h.
Referenced by ClearEventData(), GetMax(), GetMin(), GetNumberOfSamples(), GetSample(), GetSum(), GetSumInTimeWindow(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), ProcessEvBuffer(), SetNumberOfSamples(), and UpdateGraph().
|
private |
Number of 12-bit sample values per data word.
Definition at line 123 of file QwSIS3320_Samples.h.
Referenced by GetSamplesPerWord(), operator=(), ProcessEvBuffer(), and SetSamplesPerWord().
|
private |
Index of this data element in tree.
Definition at line 137 of file QwSIS3320_Samples.h.
|
private |
Number of entries from this data element.
Definition at line 138 of file QwSIS3320_Samples.h.