34 lines
862 B
C++
34 lines
862 B
C++
// Copyright (2019-2023) Paul Scherrer Institute
|
|
|
|
#ifndef JUNGFRAUJOCH_IMAGEMETADATA_H
|
|
#define JUNGFRAUJOCH_IMAGEMETADATA_H
|
|
|
|
#include <cstdint>
|
|
#include "../fpga/include/jfjoch_fpga.h"
|
|
#include "../frame_serialize/JFJochMessages.h"
|
|
|
|
class ImageMetadata {
|
|
bool first_module_loaded = false;
|
|
bool metadata_consistent = true;
|
|
|
|
uint64_t xfel_bunch_id = 0;
|
|
uint64_t xfel_event_code = 0;
|
|
|
|
uint64_t jf_info = 0;
|
|
uint64_t timestamp = 0;
|
|
uint64_t exptime = 0;
|
|
uint64_t storage_cell = 0;
|
|
uint64_t saturated_pixels = 0;
|
|
uint64_t error_pixels = 0;
|
|
uint64_t strong_pixels = 0;
|
|
uint64_t packets_collected = 0;
|
|
|
|
public:
|
|
void Process(const DeviceOutput *output);
|
|
void Export(DataMessage &message, uint64_t packets_expected_per_image) const;
|
|
bool IsBunchIDConsistent() const;
|
|
};
|
|
|
|
|
|
#endif //JUNGFRAUJOCH_IMAGEMETADATA_H
|