Files
Jungfraujoch/jungfrau/JFConversionFloatingPoint.h

30 lines
932 B
C++

// Copyright (2019-2023) Paul Scherrer Institute
#ifndef JUNGFRAUJOCH_JFCONVERSIONFLOATINGPOINT_H
#define JUNGFRAUJOCH_JFCONVERSIONFLOATINGPOINT_H
#include "JFConversion.h"
class JFConversionFloatingPoint : public JFConversion {
std::vector<uint16_t> pedestal_g0;
std::vector<uint16_t> pedestal_g1;
std::vector<uint16_t> pedestal_g2;
std::vector<float> gain_g0;
std::vector<float> gain_g1;
std::vector<float> gain_g2;
public:
JFConversionFloatingPoint();
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;
void ConvertFP(float *dest, const uint16_t *source);
};
#endif //JUNGFRAUJOCH_JFCONVERSIONFLOATINGPOINT_H