Files
Jungfraujoch/broker/gen/model/Spot_finding_settings.h
2025-10-28 16:44:04 +01:00

156 lines
6.2 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. # License Clarification While this API definition is licensed under GPL-3.0, **the GPL copyleft provisions do not apply** when this file is used solely to generate OpenAPI clients or when implementing applications that interact with the API. Generated client code and applications using this API definition are not subject to the GPL license requirements and may be distributed under terms of your choosing. This exception is similar in spirit to the Linux Kernel's approach to userspace API headers and the GCC Runtime Library Exception. The Linux Kernel developers have explicitly stated that user programs that merely use the kernel interfaces (syscalls, ioctl definitions, etc.) are not derivative works of the kernel and are not subject to the terms of the GPL. This exception is intended to allow wider use of this API specification without imposing GPL requirements on applications that merely interact with the API, regardless of whether they communicate through network calls or other mechanisms.
*
* The version of the OpenAPI document: 1.0.0-rc.95
* 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.
*/
/*
* Spot_finding_settings.h
*
*
*/
#ifndef Spot_finding_settings_H_
#define Spot_finding_settings_H_
#include <nlohmann/json.hpp>
namespace org::openapitools::server::model
{
/// <summary>
///
/// </summary>
class Spot_finding_settings
{
public:
Spot_finding_settings();
virtual ~Spot_finding_settings() = 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 Spot_finding_settings& rhs) const;
bool operator!=(const Spot_finding_settings& rhs) const;
/////////////////////////////////////////////
/// Spot_finding_settings members
/// <summary>
/// Enable spot finding. This is temporary setting, i.e. can be changed anytime during data collection. Even if disabled spot finding information will still be send and written, though always with zero spots.
/// </summary>
bool isEnable() const;
void setEnable(bool const value);
/// <summary>
/// Enable indexing. This is temporary setting, i.e. can be changed anytime during data collection.
/// </summary>
bool isIndexing() const;
void setIndexing(bool const value);
/// <summary>
///
/// </summary>
float getSignalToNoiseThreshold() const;
void setSignalToNoiseThreshold(float const value);
/// <summary>
///
/// </summary>
int64_t getPhotonCountThreshold() const;
void setPhotonCountThreshold(int64_t const value);
/// <summary>
///
/// </summary>
int64_t getMinPixPerSpot() const;
void setMinPixPerSpot(int64_t const value);
/// <summary>
///
/// </summary>
int64_t getMaxPixPerSpot() const;
void setMaxPixPerSpot(int64_t const value);
/// <summary>
/// High resolution limit for spot finding [Angstrom]
/// </summary>
float getHighResolutionLimit() const;
void setHighResolutionLimit(float const value);
/// <summary>
/// Low resolution limit for spot finding [Angstrom]
/// </summary>
float getLowResolutionLimit() const;
void setLowResolutionLimit(float const value);
/// <summary>
/// High resolution threshold to consider spot \&quot;low resolution\&quot; [Angstrom]
/// </summary>
float getHighResolutionLimitForSpotCountLowRes() const;
void setHighResolutionLimitForSpotCountLowRes(float const value);
/// <summary>
/// Quick integration of Bragg spots in diffraction images. If enabled it will likely reduce performance of Jungfraujoch for datasets with a very high indexing rate. (experimental feature)
/// </summary>
bool isQuickIntegration() const;
void setQuickIntegration(bool const value);
/// <summary>
/// Width of ice ring in q-space in reciprocal space
/// </summary>
float getIceRingWidthQRecipA() const;
void setIceRingWidthQRecipA(float const value);
/// <summary>
/// This parameter is used to remove spurious spots at a very high resolution, that sometimes appear due to very low background close to the edge of the detector. If there is a gap in (1/d)-space between spots of at least this size, spots on the side of the gap with high resolution will be discarded. This is optional parameter. This option should be turned OFF for small molecule datasets or for crystals with very low mosaicity, when it is expected to see only few spots in any case.
/// </summary>
float getHighResGapQRecipA() const;
void setHighResGapQRecipA(float const value);
bool highResGapQRecipAIsSet() const;
void unsetHigh_res_gap_Q_recipA();
friend void to_json(nlohmann::json& j, const Spot_finding_settings& o);
friend void from_json(const nlohmann::json& j, Spot_finding_settings& o);
protected:
bool m_Enable;
bool m_Indexing;
float m_Signal_to_noise_threshold;
int64_t m_Photon_count_threshold;
int64_t m_Min_pix_per_spot;
int64_t m_Max_pix_per_spot;
float m_High_resolution_limit;
float m_Low_resolution_limit;
float m_High_resolution_limit_for_spot_count_low_res;
bool m_Quick_integration;
float m_Ice_ring_width_q_recipA;
float m_High_res_gap_Q_recipA;
bool m_High_res_gap_Q_recipAIsSet;
};
} // namespace org::openapitools::server::model
#endif /* Spot_finding_settings_H_ */