Files
Jungfraujoch/jungfrau/JFConversionFixedPoint.h
T

36 lines
1.3 KiB
C++

// Copyright (2019-2022) Paul Scherrer Institute
// SPDX-License-Identifier: GPL-3.0-or-later
#include "JFConversion.h"
#ifndef JUNGFRAUJOCH_JFCONVERSIONFIXEDPOINT_H
#define JUNGFRAUJOCH_JFCONVERSIONFIXEDPOINT_H
class JFConversionFixedPoint : public JFConversion {
uint16_t *pedestal_g0;
uint16_t *pedestal_g1;
uint16_t *pedestal_g2;
int32_t *gain_g0;
int32_t *gain_g1;
int32_t *gain_g2;
void ConvertLine(int16_t *dest, const uint16_t *source, int line);
public:
JFConversionFixedPoint();
~JFConversionFixedPoint();
JFConversionFixedPoint(JFConversionFixedPoint &&other) noexcept;
JFConversionFixedPoint(const JFConversionFixedPoint &other) = delete;
JFConversionFixedPoint& operator=(const JFConversionFixedPoint &other) = delete;
void Setup(const JFModuleGainCalibration &gain_calibration,
const JFModulePedestal &pedestal_g0,
const JFModulePedestal &pedestal_g1,
const JFModulePedestal &pedestal_g2,
double energy) override;
void ConvertPacket(int16_t* dest, const uint16_t* source, uint16_t packet_number) override;
void ConvertAdjustGeom(int16_t *dest, const uint16_t *source, int64_t slow_dir_step,
int64_t fast_dir_step, int64_t offset) override;
};
#endif //JUNGFRAUJOCH_JFCONVERSIONFIXEDPOINT_H