23 lines
576 B
C++
23 lines
576 B
C++
// Copyright (2019-2023) Paul Scherrer Institute
|
|
|
|
#ifndef JUNGFRAUJOCH_ADUHISTOGRAM_H
|
|
#define JUNGFRAUJOCH_ADUHISTOGRAM_H
|
|
|
|
#include <mutex>
|
|
#include "Plot.h"
|
|
#include "../acquisition_device/AcquisitionDevice.h"
|
|
|
|
class ADUHistogram {
|
|
mutable std::mutex m;
|
|
std::vector<uint64_t> histogram;
|
|
public:
|
|
explicit ADUHistogram();
|
|
void Add(const std::vector<uint64_t>& input);
|
|
void Add(const DeviceOutput &output);
|
|
const std::vector<uint64_t>& GetHistogram() const;
|
|
MultiLinePlot GetPlot() const;
|
|
void Restart();
|
|
};
|
|
|
|
#endif //JUNGFRAUJOCH_ADUHISTOGRAM_H
|