Scope
DaqChunkResonance.h
1 #pragma once
2 
3 #include "DaqChunk.h"
4 
5 namespace scope {
6 
11  : public DaqChunk {
12 
13 public:
15  typedef std::vector<bool>::iterator iteratorSync;
16 
18  std::vector<bool> resSync;
19 
21  std::vector<iteratorSync> lastsyncsig;
22 
26  DaqChunkResonance(const uint32_t& _perchannel, const uint32_t& _nchannels, const uint32_t& _area);
27 
30  iteratorSync GetLastSyncSig(const uint32_t& _channel) const { return lastsyncsig[_channel]; }
31  void SetLastSyncSig(const uint32_t& _channel, const iteratorSync& _last) { lastsyncsig[_channel] = _last; }
33 };
34 
36 typedef std::shared_ptr<DaqChunkResonance> DaqChunkResonancePtr;
38 typedef std::vector<DaqChunkResonancePtr> DaqAreaChunksResonance;
40 typedef std::shared_ptr<DaqAreaChunksResonance> DaqAreaChunksResonancePtr;
41 
42 }
std::vector< bool >::iterator iteratorSync
Iterator over the sync vector.
DaqChunkResonance(const uint32_t &_perchannel, const uint32_t &_nchannels, const uint32_t &_area)
A DaqChunk contains data from all channels sequentially and additionally a bool vector for the resona...
A DaqChunk contains data from all channels sequentially.
Definition: DaqChunk.h:9
std::vector< iteratorSync > lastsyncsig
Iterators to positions of the last used sync signal point.
std::vector< bool > resSync
The vector with booleans for the synchronization signal for the resonance scanner.