aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/pinkindexer.h
blob: cd2aaba27c9b4acbf4fdaf94c129a51f1c429528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * pinkIndexer.h
 *
 *  Created on: Nov 27, 2017
 *      Author: gevorkov
 */

#ifndef LIBCRYSTFEL_SRC_PINKINDEXER_H_
#define LIBCRYSTFEL_SRC_PINKINDEXER_H_

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

struct pinkIndexer_options {
	unsigned int considered_peaks_count;
	unsigned int angle_resolution;
	unsigned int refinement_type;
	float maxResolutionForIndexing_1_per_A;
	float tolerance;
	int multi;
	int thread_count;
	int min_peaks;

	int no_check_indexed;

	float beamEnergy; //in eV
	float beamBandwidth; //(delta lambda)/lambda
	float detectorDistance; //in m

	float reflectionRadius; //in 1/A
};

#include <stddef.h>
#include "index.h"

extern int run_pinkIndexer(struct image *image, void *ipriv);

extern void *pinkIndexer_prepare(IndexingMethod *indm, UnitCell *cell,
        struct pinkIndexer_options *pinkIndexer_opts);

extern void pinkIndexer_cleanup(void *pp);

extern const char *pinkIndexer_probe(UnitCell *cell);

#endif /* LIBCRYSTFEL_SRC_PINKINDEXER_H_ */