32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
// Copyright (2019-2023) Paul Scherrer Institute
|
|
|
|
#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;
|
|
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 ConvertModule(int16_t *dest, const uint16_t *source) override;
|
|
};
|
|
|
|
|
|
#endif //JUNGFRAUJOCH_JFCONVERSIONFIXEDPOINT_H
|