![]() |
ATLAS Offline Software
|
Per-channel class holding wave information in time bins. More...
#include <LAr2DWaveBase.h>
Public Member Functions | |
| LAr2DWaveBase () | |
| Default constructor. More... | |
| LAr2DWaveBase (float timeOffset, float timeBinWidth, const std::vector< std::vector< float > > &wave0, const std::vector< std::vector< float > > &wave1) | |
| Constructor from wave data directly. More... | |
| LAr2DWaveBase (float timeOffset, float timeBinWidth, unsigned int nPhases, unsigned int nSamples, const std::vector< float > &wave0, const std::vector< float > &wave1, unsigned int index) | |
| Constructor from persistent data. More... | |
| LAr2DWaveBase (const LArCompactSubsetConstChannelProxy &other) | |
| Constructor for channel data from a compact subset. More... | |
| void | setFrom (LAr2DWaveBase &other) |
| Assign from another wave object. More... | |
| bool | isEmpty () const |
| Is there any data in this channel? More... | |
| float | timeOffset () const |
| Return the time offset for this channel. More... | |
| float | timeBinWidth () const |
| Return the time bin width for this channel. More... | |
| size_t | waveSize (unsigned int which) const |
| Return the number of time bins for a wave. More... | |
| LArVectorProxy | wave (unsigned int which, size_t tbin) const |
| Return wave data. More... | |
Static Public Attributes | |
| static const unsigned int | nWaves = 2 |
| The number of different types of waves we store. More... | |
Private Attributes | |
| float | m_timeOffset |
| The time offset for this channel. More... | |
| float | m_timeBinWidth |
| The time bin width for this channel. More... | |
| std::vector< std::vector< float > > | m_waves [nWaves] |
| The wave data. More... | |
Per-channel class holding wave information in time bins.
Definition at line 48 of file LAr2DWaveBase.h.
| LAr2DWaveBase::LAr2DWaveBase | ( | ) |
Default constructor.
| LAr2DWaveBase::LAr2DWaveBase | ( | float | timeOffset, |
| float | timeBinWidth, | ||
| const std::vector< std::vector< float > > & | wave0, | ||
| const std::vector< std::vector< float > > & | wave1 | ||
| ) |
Constructor from wave data directly.
| timeOffset | Time offset value. |
| timeBinWidth | Time bin width value. |
| wave0 | Data for first wave, as [tbin][sample]. |
| wave0 | Data for second wave, as [tbin][sample]. |
Definition at line 25 of file LAr2DWaveBase.cxx.
| LAr2DWaveBase::LAr2DWaveBase | ( | float | timeOffset, |
| float | timeBinWidth, | ||
| unsigned int | nPhases, | ||
| unsigned int | nSamples, | ||
| const std::vector< float > & | wave0, | ||
| const std::vector< float > & | wave1, | ||
| unsigned int | index | ||
| ) |
Constructor from persistent data.
| timeOffset | Time offset value. |
| timeBinWidth | Time bin width value. |
| nPhases | Number of time bins in the data. |
| nSamples | Number of samples in the data. |
| wave0 | Packed data for first wave. |
| wave1 | Packed data for second wave. |
| index | Start of the desired data in the packed data. |
The packed data are formatted in blocks of nPhases * nSamples floats. The first word we should use is given by index.
Definition at line 50 of file LAr2DWaveBase.cxx.
| LAr2DWaveBase::LAr2DWaveBase | ( | const LArCompactSubsetConstChannelProxy & | other | ) |
Constructor for channel data from a compact subset.
| other | Reference to the source channel data. |
Definition at line 80 of file LAr2DWaveBase.cxx.
| bool LAr2DWaveBase::isEmpty | ( | ) | const |
Is there any data in this channel?
| void LAr2DWaveBase::setFrom | ( | LAr2DWaveBase & | other | ) |
Assign from another wave object.
| other | The source object. NOTE: We use move semantics; OTHER is left with no data. |
Could write with an rvalue reference in the future?
Definition at line 109 of file LAr2DWaveBase.cxx.
| float LAr2DWaveBase::timeBinWidth | ( | ) | const |
Return the time bin width for this channel.
| float LAr2DWaveBase::timeOffset | ( | ) | const |
Return the time offset for this channel.
| LArVectorProxy LAr2DWaveBase::wave | ( | unsigned int | which, |
| size_t | tbin | ||
| ) | const |
Return wave data.
| which | The type of wave to return. |
| tbin | The time bin to return. |
| size_t LAr2DWaveBase::waveSize | ( | unsigned int | which | ) | const |
Return the number of time bins for a wave.
| which | The type of wave to query. |
|
private |
The time bin width for this channel.
Definition at line 150 of file LAr2DWaveBase.h.
|
private |
The time offset for this channel.
Definition at line 147 of file LAr2DWaveBase.h.
|
private |
The wave data.
Definition at line 153 of file LAr2DWaveBase.h.
|
static |
The number of different types of waves we store.
Definition at line 52 of file LAr2DWaveBase.h.
1.8.18