21 lines
518 B
C++
21 lines
518 B
C++
// Copyright (2019-2023) Paul Scherrer Institute
|
|
|
|
#ifndef JUNGFRAUJOCH_ADUHISTOGRAM_H
|
|
#define JUNGFRAUJOCH_ADUHISTOGRAM_H
|
|
|
|
#include <mutex>
|
|
#include <jfjoch.pb.h>
|
|
#include "../receiver/AcquisitionDevice.h"
|
|
|
|
class ADUHistogram {
|
|
mutable std::mutex m;
|
|
std::vector<uint64_t> histogram;
|
|
public:
|
|
explicit ADUHistogram();
|
|
void Add(const DeviceOutput &output);
|
|
const std::vector<uint64_t>& GetHistogram() const;
|
|
void GetPlot(JFJochProtoBuf::Plot &plot) const;
|
|
};
|
|
|
|
#endif //JUNGFRAUJOCH_ADUHISTOGRAM_H
|