Files
Jungfraujoch/jungfrau/JFConversionFixedPoint.h
T

33 lines
1.1 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;
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