Mantid
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
Mantid::Algorithms::MultipleScatteringCorrectionDistGraber Class Reference

MultipleScatteringCorrectionDistGraber : This is a helper class to calculate the distance from source to sample voxel. More...

#include <MultipleScatteringCorrectionDistGraber.h>

Public Member Functions

void cacheLS1 (const Mantid::Kernel::V3D &beamDirection)
 pre-calculate the distance from source to L1 for all the voxels in the sample More...
 
 MultipleScatteringCorrectionDistGraber (const Geometry::IObject &sampleShape, const double elementSize)
 Construct a new Multiple Scattering Correction Dist Graber:: Multiple Scattering Correction Dist Graber object. More...
 
 ~MultipleScatteringCorrectionDistGraber ()=default
 

Public Attributes

std::vector< Kernel::V3Dm_elementPositions
 Cached element positions. More...
 
std::vector< double > m_elementVolumes
 Cached element volumes. More...
 
std::vector< double > m_LS1
 Cached L1 distances. More...
 
size_t m_numVolumeElements
 The number of volume elements. More...
 
double m_totalVolume
 The total volume of the sample. More...
 

Private Attributes

const double m_elementSize
 Size of the sample in m. More...
 
const Geometry::IObjectm_sampleShape
 The shape pointer is handeled by sample object, not distGraber. More...
 

Detailed Description

MultipleScatteringCorrectionDistGraber : This is a helper class to calculate the distance from source to sample voxel.

TODO:

Definition at line 27 of file MultipleScatteringCorrectionDistGraber.h.

Constructor & Destructor Documentation

◆ MultipleScatteringCorrectionDistGraber()

Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::MultipleScatteringCorrectionDistGraber ( const Geometry::IObject sampleShape,
const double  elementSize 
)

Construct a new Multiple Scattering Correction Dist Graber:: Multiple Scattering Correction Dist Graber object.

Parameters
sampleShape: the sample object
elementSize: in meters

Definition at line 35 of file MultipleScatteringCorrectionDistGraber.cpp.

◆ ~MultipleScatteringCorrectionDistGraber()

Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::~MultipleScatteringCorrectionDistGraber ( )
default

Member Function Documentation

◆ cacheLS1()

void Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::cacheLS1 ( const Mantid::Kernel::V3D beamDirection)

Member Data Documentation

◆ m_elementPositions

std::vector<Kernel::V3D> Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::m_elementPositions

◆ m_elementSize

const double Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::m_elementSize
private

Size of the sample in m.

Definition at line 45 of file MultipleScatteringCorrectionDistGraber.h.

Referenced by cacheLS1().

◆ m_elementVolumes

std::vector<double> Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::m_elementVolumes

◆ m_LS1

std::vector<double> Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::m_LS1

Cached L1 distances.

Definition at line 37 of file MultipleScatteringCorrectionDistGraber.h.

Referenced by cacheLS1().

◆ m_numVolumeElements

size_t Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::m_numVolumeElements

◆ m_sampleShape

const Geometry::IObject* Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::m_sampleShape
private

The shape pointer is handeled by sample object, not distGraber.

Definition at line 44 of file MultipleScatteringCorrectionDistGraber.h.

Referenced by cacheLS1().

◆ m_totalVolume

double Mantid::Algorithms::MultipleScatteringCorrectionDistGraber::m_totalVolume

The total volume of the sample.

Definition at line 41 of file MultipleScatteringCorrectionDistGraber.h.

Referenced by cacheLS1().


The documentation for this class was generated from the following files: