Mantid
|
helper class-collection to keep together the parameters, which characterize average composite detector and help to calculate these parameters More...
#include <FindDetectorsPar.h>
Public Member Functions | |
void | addDetInfo (const Geometry::IDetector &det, const Kernel::V3D &Observer) |
method to cacluate the detectors parameters and add them to the detectors averages More... | |
AvrgDetector () | |
void | returnAvrgDetPar (DetParameters &avrgDet) |
Method processes accumulated averages and return them in preexistent avrgDet class. More... | |
void | setUseSpherical (bool shouldWe=true) |
Static Public Member Functions | |
static double | nearAngle (const double &baseAngle, const double &anAngle) |
method calculates an angle closest to the initial one taken on a ring e.g. More... | |
Private Attributes | |
double | m_AzimBase |
double | m_AzimMax |
double | m_AzimMin |
double | m_AzimutSum |
double | m_FlightPathSum |
size_t | m_nComponents |
numbr of primary detectors, contributing into this detector More... | |
double | m_PolarBase |
double | m_PolarMax |
double | m_PolarMin |
double | m_PolarSum |
bool | m_useSphericalSizes |
helper class-collection to keep together the parameters, which characterize average composite detector and help to calculate these parameters
Definition at line 224 of file FindDetectorsPar.h.
|
inline |
Definition at line 236 of file FindDetectorsPar.h.
void Mantid::DataHandling::AvrgDetector::addDetInfo | ( | const Geometry::IDetector & | det, |
const Kernel::V3D & | Observer | ||
) |
method to cacluate the detectors parameters and add them to the detectors averages
det | – reference to the Mantid Detector |
Observer | – sample position or the centre of the polar system of coordinates to calculate detector's parameters. |
Definition at line 196 of file FindDetectorsPar.cpp.
References Mantid::Kernel::V3D::cross_prod(), Mantid::Geometry::IComponent::getBoundingBox(), Mantid::Geometry::IComponent::getPos(), Mantid::Kernel::V3D::getSpherical(), m_AzimBase, m_AzimMax, m_AzimMin, m_AzimutSum, m_FlightPathSum, m_nComponents, m_PolarBase, m_PolarMax, m_PolarMin, m_PolarSum, m_useSphericalSizes, nearAngle(), Mantid::Kernel::V3D::normalize(), Mantid::Kernel::V3D::nullVector(), Mantid::DataHandling::rad2deg, Mantid::Geometry::BoundingBox::setBoxAlignment(), Mantid::Geometry::BoundingBox::yMax(), Mantid::Geometry::BoundingBox::yMin(), Mantid::Kernel::V3D::Z(), Mantid::Geometry::BoundingBox::zMax(), and Mantid::Geometry::BoundingBox::zMin().
Referenced by Mantid::DataHandling::FindDetectorsPar::calcDetPar().
|
static |
method calculates an angle closest to the initial one taken on a ring e.g.
given inital angle 179 deg and another one -179 closest one to 179 is 181
baseAngle | – the angle to be close to |
anAngle | – the angle which ring image may be requested |
Definition at line 180 of file FindDetectorsPar.cpp.
Referenced by addDetInfo().
void Mantid::DataHandling::AvrgDetector::returnAvrgDetPar | ( | DetParameters & | avrgDet | ) |
Method processes accumulated averages and return them in preexistent avrgDet class.
Definition at line 285 of file FindDetectorsPar.cpp.
References Mantid::DataHandling::DetParameters::azimutAngle, Mantid::DataHandling::DetParameters::azimWidth, m_AzimMax, m_AzimMin, m_AzimutSum, m_FlightPathSum, m_nComponents, m_PolarMax, m_PolarMin, m_PolarSum, Mantid::DataHandling::DetParameters::polarAngle, Mantid::DataHandling::DetParameters::polarWidth, and Mantid::DataHandling::DetParameters::secondaryFlightPath.
Referenced by Mantid::DataHandling::FindDetectorsPar::calcDetPar().
|
inline |
Definition at line 242 of file FindDetectorsPar.h.
References m_useSphericalSizes.
Referenced by Mantid::DataHandling::FindDetectorsPar::calcDetPar().
|
private |
Definition at line 228 of file FindDetectorsPar.h.
Referenced by addDetInfo().
|
private |
Definition at line 231 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
Definition at line 231 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
Definition at line 225 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
Definition at line 227 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
numbr of primary detectors, contributing into this detector
Definition at line 233 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
Definition at line 228 of file FindDetectorsPar.h.
Referenced by addDetInfo().
|
private |
Definition at line 231 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
Definition at line 231 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
Definition at line 226 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and returnAvrgDetPar().
|
private |
Definition at line 230 of file FindDetectorsPar.h.
Referenced by addDetInfo(), and setUseSpherical().