35 lines
959 B
C++
35 lines
959 B
C++
// Copyright (2019-2022) Paul Scherrer Institute
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef JUNGFRAUJOCH_INDEXERWRAPPER_H
|
|
#define JUNGFRAUJOCH_INDEXERWRAPPER_H
|
|
|
|
#include <vector>
|
|
|
|
#include "../common/Coord.h"
|
|
#include "CrystalLattice.h"
|
|
|
|
#include <ffbidx/refine.h>
|
|
|
|
#define MIN_SPOTS_TO_INDEX (10)
|
|
#define MAX_SPOTS_TO_INDEX (100)
|
|
|
|
class IndexerWrapper {
|
|
fast_feedback::config_runtime<float> crt{
|
|
.num_sample_points = 32768
|
|
};
|
|
fast_feedback::config_persistent<float> cpers{
|
|
.max_output_cells = 4,
|
|
.max_input_cells = 1,
|
|
.max_spots = MAX_SPOTS_TO_INDEX
|
|
}; // default persistent config
|
|
fast_feedback::refine::config_ifss<float> conf_ifss{};
|
|
fast_feedback::refine::indexer_ifss<float> indexer{cpers, crt, conf_ifss};
|
|
public:
|
|
void Setup(const UnitCell &cell);
|
|
std::vector<CrystalLattice> Run(const std::vector<Coord> &coord);
|
|
};
|
|
|
|
|
|
#endif //JUNGFRAUJOCH_INDEXERWRAPPER_H
|