Loading [MathJax]/extensions/tex2jax.js
Mantid
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
w
x
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
a
b
e
f
i
l
m
o
s
t
u
w
Related Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
_
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
e
f
k
l
o
p
r
s
t
v
w
Macros
a
b
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Loading...
Searching...
No Matches
Framework
Algorithms
inc
MantidAlgorithms
SampleCorrections
DetectorGridDefinition.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
#pragma once
8
9
#include "MantidAlgorithms/DllConfig.h"
10
11
#include <array>
12
#include <cstddef>
13
14
namespace
Mantid
{
15
namespace
Algorithms {
16
20
class
MANTID_ALGORITHMS_DLL
DetectorGridDefinition
{
21
public
:
22
DetectorGridDefinition
(
const
double
minLatitude,
const
double
maxLatitude,
const
size_t
latitudePoints,
23
const
double
minLongitude,
const
double
maxLongitude,
const
size_t
longitudeStep);
24
25
double
latitudeAt(
const
size_t
row)
const
;
26
double
longitudeAt(
const
size_t
column)
const
;
27
std::array<size_t, 4> nearestNeighbourIndices(
const
double
latitude,
const
double
longitude)
const
;
28
std::pair<size_t, size_t> getNearestVertex(
const
double
latitude,
const
double
longitude)
const
;
29
size_t
numberColumns()
const
;
30
size_t
numberRows()
const
;
31
size_t
getDetectorIndex(
size_t
row,
size_t
col);
32
33
private
:
34
double
m_minLatitude
;
35
double
m_maxLatitude
;
36
size_t
m_latitudePoints
;
37
double
m_latitudeStep
;
38
double
m_minLongitude
;
39
double
m_maxLongitude
;
40
size_t
m_longitudePoints
;
41
double
m_longitudeStep
;
42
};
43
44
}
// namespace Algorithms
45
}
// namespace Mantid
Mantid::Algorithms::DetectorGridDefinition
DetectorGridDefinition is a helper class for building the sparse instrument in MonteCarloAbsorption.
Definition:
DetectorGridDefinition.h:20
Mantid::Algorithms::DetectorGridDefinition::m_longitudeStep
double m_longitudeStep
Definition:
DetectorGridDefinition.h:41
Mantid::Algorithms::DetectorGridDefinition::m_latitudeStep
double m_latitudeStep
Definition:
DetectorGridDefinition.h:37
Mantid::Algorithms::DetectorGridDefinition::m_minLongitude
double m_minLongitude
Definition:
DetectorGridDefinition.h:38
Mantid::Algorithms::DetectorGridDefinition::m_maxLatitude
double m_maxLatitude
Definition:
DetectorGridDefinition.h:35
Mantid::Algorithms::DetectorGridDefinition::m_latitudePoints
size_t m_latitudePoints
Definition:
DetectorGridDefinition.h:36
Mantid::Algorithms::DetectorGridDefinition::m_longitudePoints
size_t m_longitudePoints
Definition:
DetectorGridDefinition.h:40
Mantid::Algorithms::DetectorGridDefinition::m_maxLongitude
double m_maxLongitude
Definition:
DetectorGridDefinition.h:39
Mantid::Algorithms::DetectorGridDefinition::m_minLatitude
double m_minLatitude
Definition:
DetectorGridDefinition.h:34
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition:
AbsorptionCorrection.h:18
Generated on Tue Jan 3 2023 11:57:16 for Mantid by
1.9.5