* Enhancements for EIGER * Writer is more flexible and capable of handling DECTRIS data
38 lines
992 B
C++
38 lines
992 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"
|
|
#include "../common/DiffractionExperiment.h"
|
|
|
|
class ImageMetadata {
|
|
bool pulsed_source;
|
|
|
|
bool first_module_loaded = false;
|
|
bool metadata_consistent = true;
|
|
|
|
uint64_t xfel_pulse_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:
|
|
ImageMetadata(const DiffractionExperiment &experiment);
|
|
void Process(const DeviceOutput *output);
|
|
void Export(DataMessage &message, uint64_t packets_expected_per_image) const;
|
|
bool IsBunchIDConsistent() const;
|
|
};
|
|
|
|
|
|
#endif //JUNGFRAUJOCH_IMAGEMETADATA_H
|