All checks were successful
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 7m33s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 8m46s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 7m19s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 7m50s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 9m8s
Build Packages / Generate python client (push) Successful in 17s
Build Packages / Build documentation (push) Successful in 43s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8) (push) Successful in 8m25s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m39s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 8m13s
Build Packages / build:rpm (rocky9) (push) Successful in 9m33s
Build Packages / Unit tests (push) Successful in 1h14m4s
This is an UNSTABLE release. * jfjoch_viewer: Minor polishing of new functionality * jfjoch_broker: User NaN for empty azimuthal bins Reviewed-on: #12 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch> Co-committed-by: Filip Leonarski <filip.leonarski@psi.ch>
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_BRAGGPREDICTION_H
|
|
#define JFJOCH_BRAGGPREDICTION_H
|
|
|
|
#include <vector>
|
|
|
|
#include "../../common/CrystalLattice.h"
|
|
#include "../../common/DiffractionExperiment.h"
|
|
#include "../../common/Reflection.h"
|
|
|
|
struct BraggPredictionSettings {
|
|
float high_res_A = 1.5;
|
|
float ewald_dist_cutoff = 0.0005;
|
|
int max_hkl = 100;
|
|
char centering = 'P';
|
|
};
|
|
|
|
class BraggPrediction {
|
|
protected:
|
|
const int max_reflections;
|
|
std::vector<Reflection> reflections;
|
|
public:
|
|
explicit BraggPrediction(int max_reflections = 10000);
|
|
|
|
virtual ~BraggPrediction() = default;
|
|
virtual int Calc(const DiffractionExperiment &experiment, const CrystalLattice &lattice,
|
|
const BraggPredictionSettings &settings);
|
|
const std::vector<Reflection> &GetReflections() const;
|
|
};
|
|
|
|
std::vector<Reflection> CalcBraggPredictions(const DiffractionExperiment &experiment,
|
|
const CrystalLattice &lattice,
|
|
float high_res_A = 1.5,
|
|
float ewald_dist_cutoff = 0.0005,
|
|
int max_hkl = 100,
|
|
int max_reflections = 10000);
|
|
|
|
#endif //JFJOCH_BRAGGPREDICTION_H
|