Some checks failed
Build Packages / build:rpm (rocky8_nocuda) (push) Failing after 2m8s
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Failing after 2m2s
Build Packages / build:rpm (rocky9_nocuda) (push) Failing after 2m10s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Failing after 2m11s
Build Packages / build:rpm (ubuntu2204) (push) Failing after 2m3s
Build Packages / build:rpm (rocky8) (push) Failing after 2m7s
Build Packages / Create release (push) Has been skipped
Build Packages / build:rpm (rocky8_sls9) (push) Failing after 2m10s
Build Packages / Generate python client (push) Successful in 11s
Build Packages / build:rpm (rocky9) (push) Failing after 2m19s
Build Packages / Build documentation (push) Successful in 33s
Build Packages / build:rpm (ubuntu2404) (push) Failing after 1m58s
Build Packages / Unit tests (push) Failing after 2m13s
24 lines
678 B
C++
24 lines
678 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_ROTOPTIMIZER_H
|
|
#define JFJOCH_ROTOPTIMIZER_H
|
|
|
|
#include <vector>
|
|
#include "../common/SpotToSave.h"
|
|
#include "../common/CrystalLattice.h"
|
|
#include "../common/GoniometerAxis.h"
|
|
|
|
struct SimpleRotXtalOptimizerData {
|
|
DiffractionGeometry geom;
|
|
CrystalLattice latt;
|
|
int64_t min_spots = 8;
|
|
|
|
bool index_ice_rings = true;
|
|
float max_time = 1.0;
|
|
double rotation[3] = {0,0,0};
|
|
};
|
|
|
|
bool SimpleRotXtalOptimizer(SimpleRotXtalOptimizerData &data, const std::vector<SpotToSave> &spots);
|
|
|
|
#endif //JFJOCH_ROTOPTIMIZER_H
|