#include <TileSampleBuffer.h>
Definition at line 14 of file TileSampleBuffer.h.
◆ TileSampleBuffer() [1/3]
| TileSampleBuffer::TileSampleBuffer |
( |
| ) |
|
◆ TileSampleBuffer() [2/3]
| TileSampleBuffer::TileSampleBuffer |
( |
TArrayD * | xValues | ) |
|
Definition at line 16 of file TileSampleBuffer.cxx.
17{
18 unsigned int nSamples = xValues->GetSize();
19 m_x.resize(nSamples,0.);
20 m_y.resize(nSamples,0.);
22 m_x[
i] = xValues->At(i);
23 }
24}
std::vector< double > m_x
◆ TileSampleBuffer() [3/3]
| TileSampleBuffer::TileSampleBuffer |
( |
unsigned int | nSamples, |
|
|
double | sampleStart, |
|
|
double | stepLength ) |
Definition at line 26 of file TileSampleBuffer.cxx.
27{
28 m_x.resize(nSamples,0.);
29 m_y.resize(nSamples,0.);
32 m_x[
i] = sampleStart +
i*stepLength;
33 }
34}
std::vector< float > m_noiseVector
◆ ~TileSampleBuffer()
| TileSampleBuffer::~TileSampleBuffer |
( |
| ) |
|
|
virtual |
◆ getMaxValueIndex()
| unsigned int TileSampleBuffer::getMaxValueIndex |
( |
| ) |
|
Definition at line 40 of file TileSampleBuffer.cxx.
41{
42 unsigned int iMax(0);
44 for(
unsigned int i=0;
i<
m_y.size(); ++
i){
48 }
49 }
50 return iMax;
51}
◆ getTime()
| double TileSampleBuffer::getTime |
( |
unsigned int | i | ) |
|
|
inline |
◆ getValue()
| float TileSampleBuffer::getValue |
( |
unsigned int | i | ) |
|
|
inline |
◆ getValueNoise()
| float TileSampleBuffer::getValueNoise |
( |
unsigned int | i | ) |
|
|
inline |
◆ getValueVector()
| void TileSampleBuffer::getValueVector |
( |
std::vector< float > & | vec | ) |
|
|
inline |
◆ print()
| void TileSampleBuffer::print |
( |
| ) |
|
Definition at line 53 of file TileSampleBuffer.cxx.
53 {
54 std::cout << "Content of TileSampleBuffer: " << std::endl;
55 for(
unsigned int i=0;
i<
m_y.size(); ++
i){
56 std::cout <<
m_x[
i] <<
"\t" <<
m_y[
i] << std::endl;
57 }
58}
◆ setValue()
| void TileSampleBuffer::setValue |
( |
unsigned int | i, |
|
|
double | val ) |
|
inline |
◆ setValueNoise()
| void TileSampleBuffer::setValueNoise |
( |
unsigned int | i, |
|
|
double | val ) |
|
inline |
◆ size()
| unsigned int TileSampleBuffer::size |
( |
| ) |
|
|
inline |
◆ m_noiseVector
| std::vector<float> TileSampleBuffer::m_noiseVector |
|
private |
◆ m_x
| std::vector<double> TileSampleBuffer::m_x |
|
private |
◆ m_y
| std::vector<float> TileSampleBuffer::m_y |
|
private |
The documentation for this class was generated from the following files: