Files
Jungfraujoch/broker/gen/model/Pixel_mask_statistics.h
2025-07-03 15:10:04 +02:00

97 lines
2.9 KiB
C++

/**
* Jungfraujoch
* API to control Jungfraujoch developed by the Paul Scherrer Institute (Switzerland). Jungfraujoch is a data acquisition and analysis system for pixel array detectors, primarly PSI JUNGFRAU. Jungfraujoch uses FPGA boards to acquire data at high data rates.
*
* The version of the OpenAPI document: 1.0.0-rc.58
* Contact: filip.leonarski@psi.ch
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
* Pixel_mask_statistics.h
*
*
*/
#ifndef Pixel_mask_statistics_H_
#define Pixel_mask_statistics_H_
#include <nlohmann/json.hpp>
namespace org::openapitools::server::model
{
/// <summary>
///
/// </summary>
class Pixel_mask_statistics
{
public:
Pixel_mask_statistics();
virtual ~Pixel_mask_statistics() = default;
/// <summary>
/// Validate the current data in the model. Throws a ValidationException on failure.
/// </summary>
void validate() const;
/// <summary>
/// Validate the current data in the model. Returns false on error and writes an error
/// message into the given stringstream.
/// </summary>
bool validate(std::stringstream& msg) const;
/// <summary>
/// Helper overload for validate. Used when one model stores another model and calls it's validate.
/// Not meant to be called outside that case.
/// </summary>
bool validate(std::stringstream& msg, const std::string& pathPrefix) const;
bool operator==(const Pixel_mask_statistics& rhs) const;
bool operator!=(const Pixel_mask_statistics& rhs) const;
/////////////////////////////////////////////
/// Pixel_mask_statistics members
/// <summary>
/// Number of pixels masked using the user mask
/// </summary>
int64_t getUserMask() const;
void setUserMask(int64_t const value);
bool userMaskIsSet() const;
void unsetUser_mask();
/// <summary>
/// Number of pixels with G0 pedestal RMS higher than provided threshold
/// </summary>
int64_t getTooHighPedestalRms() const;
void setTooHighPedestalRms(int64_t const value);
bool tooHighPedestalRmsIsSet() const;
void unsetToo_high_pedestal_rms();
/// <summary>
/// Number of pixels that show wrong gain level during the pedestal procedure
/// </summary>
int64_t getWrongGain() const;
void setWrongGain(int64_t const value);
bool wrongGainIsSet() const;
void unsetWrong_gain();
friend void to_json(nlohmann::json& j, const Pixel_mask_statistics& o);
friend void from_json(const nlohmann::json& j, Pixel_mask_statistics& o);
protected:
int64_t m_User_mask;
bool m_User_maskIsSet;
int64_t m_Too_high_pedestal_rms;
bool m_Too_high_pedestal_rmsIsSet;
int64_t m_Wrong_gain;
bool m_Wrong_gainIsSet;
};
} // namespace org::openapitools::server::model
#endif /* Pixel_mask_statistics_H_ */