Mantid
Loading...
Searching...
No Matches
Framework
Algorithms
inc
MantidAlgorithms
SampleCorrections
MCInteractionStatistics.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2020 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 "
MantidAPI/Sample.h
"
10
#include "MantidAlgorithms/DllConfig.h"
11
#include "
MantidGeometry/IDTypes.h
"
12
#include "
MantidKernel/Logger.h
"
13
14
namespace
Mantid
{
15
16
namespace
Kernel {
17
class
V3D;
18
}
// namespace Kernel
19
20
namespace
Algorithms {
21
22
struct
ScatterPointStat
{
23
std::string
name
;
24
int
generatedPointCount
;
25
int
usedPointCount
;
26
};
27
32
class
MANTID_ALGORITHMS_DLL
MCInteractionStatistics
{
33
public
:
34
MCInteractionStatistics
(
detid_t
detectorID,
const
API::Sample
&sample);
35
std::string generateScatterPointStats();
36
void
UpdateScatterPointCounts(
int
componentIndex,
bool
pointUsed);
37
void
UpdateScatterAngleStats(
const
Kernel::V3D
&toStart,
const
Kernel::V3D
&scatteredDirec);
38
39
private
:
40
detid_t
m_detectorID
;
41
ScatterPointStat
m_sampleScatterPoints = {
"Sample"
, 0, 0};
42
std::vector<ScatterPointStat>
m_envScatterPoints
;
43
double
m_scatterAngleMean = 0;
44
double
m_scatterAngleM2 = 0;
45
double
m_scatterAngleSD = 0;
46
};
47
48
}
// namespace Algorithms
49
}
// namespace Mantid
IDTypes.h
Logger.h
Sample.h
Mantid::API::Sample
This class stores information about the sample used in particular run.
Definition
Sample.h:33
Mantid::Algorithms::MCInteractionStatistics
Stores statistics relating to the tracks generated in MCInteractionVolume for a specific detector.
Definition
MCInteractionStatistics.h:32
Mantid::Algorithms::MCInteractionStatistics::m_detectorID
detid_t m_detectorID
Definition
MCInteractionStatistics.h:40
Mantid::Algorithms::MCInteractionStatistics::m_envScatterPoints
std::vector< ScatterPointStat > m_envScatterPoints
Definition
MCInteractionStatistics.h:42
Mantid::Kernel::V3D
Class for 3D vectors.
Definition
V3D.h:34
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Mantid::detid_t
int32_t detid_t
Typedef for a detector ID.
Definition
SpectrumInfo.h:21
Mantid::Algorithms::ScatterPointStat
Definition
MCInteractionStatistics.h:22
Mantid::Algorithms::ScatterPointStat::generatedPointCount
int generatedPointCount
Definition
MCInteractionStatistics.h:24
Mantid::Algorithms::ScatterPointStat::name
std::string name
Definition
MCInteractionStatistics.h:23
Mantid::Algorithms::ScatterPointStat::usedPointCount
int usedPointCount
Definition
MCInteractionStatistics.h:25
Generated by
1.9.8