BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 29 of file DetectorItems.h.
Public Member Functions | |
virtual | ~DetectorItem ()=default |
virtual double | axesToCoreUnitsFactor () const |
Scales the values provided by axes (to perform deg->rad conversion on the way to domain). More... | |
std::unique_ptr< IDetector > | createDetector () const |
void | importMasks (const MaskContainerItem *maskContainer) |
MaskItems & | maskItems () |
ResolutionFunctionItem * | resolutionFunction () const |
SelectionDescriptor< ResolutionFunctionItem * > | resolutionFunctionSelection () const |
virtual void | serialize (Streamer &s)=0 |
template<typename T > | |
T * | setResolutionFunctionType () |
virtual void | setXSize (size_t nx)=0 |
sets the size of x-axis of the detector More... | |
virtual void | setYSize (size_t ny)=0 |
sets the size of y-axis of the detector More... | |
virtual int | xSize () const =0 |
Returns the size of x-axis of the detector. More... | |
virtual int | ySize () const =0 |
Returns the size of y-axis of the detector. More... | |
Protected Member Functions | |
DetectorItem () | |
void | addMasksToCore (IDetector *detector) const |
virtual std::unique_ptr< IDetector > | createDomainDetector () const =0 |
std::unique_ptr< IResolutionFunction2D > | createResolutionFunction () const |
Protected Attributes | |
MaskItems | m_maskItems |
for creation of domain detector; only filled and relevant in jobs More... | |
SelectionProperty< ResolutionFunctionItem * > | m_resolutionFunction |
|
virtualdefault |
|
protected |
Definition at line 24 of file DetectorItems.cpp.
|
protected |
Definition at line 62 of file DetectorItems.cpp.
References axesToCoreUnitsFactor(), m_maskItems, maskItems(), and MaskItems::maskItems().
Referenced by createDetector().
|
inlinevirtual |
Scales the values provided by axes (to perform deg->rad conversion on the way to domain).
Reimplemented in SphericalDetectorItem.
Definition at line 57 of file DetectorItems.h.
Referenced by addMasksToCore(), and createResolutionFunction().
std::unique_ptr< IDetector > DetectorItem::createDetector | ( | ) | const |
Definition at line 26 of file DetectorItems.cpp.
References addMasksToCore(), createDomainDetector(), and createResolutionFunction().
Referenced by Instrument2DItem::createInstrument(), Instrument2DItem::createOffspecSimulation(), and Instrument2DItem::createScatteringSimulation().
|
protectedpure virtual |
Implemented in SphericalDetectorItem, and RectangularDetectorItem.
Referenced by createDetector().
|
protected |
Definition at line 57 of file DetectorItems.cpp.
References axesToCoreUnitsFactor(), ResolutionFunctionItem::createResolutionFunction(), and m_resolutionFunction.
Referenced by createDetector().
void DetectorItem::importMasks | ( | const MaskContainerItem * | maskContainer | ) |
Definition at line 37 of file DetectorItems.cpp.
References MaskItems::copy(), and m_maskItems.
Referenced by Instrument2DItem::importMasks().
MaskItems & DetectorItem::maskItems | ( | ) |
Definition at line 42 of file DetectorItems.cpp.
References m_maskItems.
Referenced by addMasksToCore().
ResolutionFunctionItem * DetectorItem::resolutionFunction | ( | ) | const |
Definition at line 47 of file DetectorItems.cpp.
References SelectionProperty< T >::get(), and m_resolutionFunction.
SelectionDescriptor< ResolutionFunctionItem * > DetectorItem::resolutionFunctionSelection | ( | ) | const |
Definition at line 52 of file DetectorItems.cpp.
References m_resolutionFunction.
Referenced by ResolutionFunctionEditor::ResolutionFunctionEditor(), ParameterTreeBuilder::addDetector(), and ResolutionFunctionEditor::createResolutionWidgets().
|
pure virtual |
Implemented in SphericalDetectorItem, and RectangularDetectorItem.
T * DetectorItem::setResolutionFunctionType |
Definition at line 73 of file DetectorItems.h.
References SelectionProperty< T >::get(), m_resolutionFunction, and SelectionProperty< T >::set().
|
pure virtual |
sets the size of x-axis of the detector
Implemented in SphericalDetectorItem, and RectangularDetectorItem.
Referenced by GISASInstrumentItem::updateToRealData().
|
pure virtual |
sets the size of y-axis of the detector
Implemented in SphericalDetectorItem, and RectangularDetectorItem.
Referenced by GISASInstrumentItem::updateToRealData(), and OffspecInstrumentItem::updateToRealData().
|
pure virtual |
Returns the size of x-axis of the detector.
Implemented in SphericalDetectorItem, and RectangularDetectorItem.
|
pure virtual |
Returns the size of y-axis of the detector.
Implemented in SphericalDetectorItem, and RectangularDetectorItem.
Referenced by OffspecInstrumentItem::shape().
|
protected |
for creation of domain detector; only filled and relevant in jobs
Definition at line 68 of file DetectorItems.h.
Referenced by addMasksToCore(), importMasks(), maskItems(), RectangularDetectorItem::serialize(), and SphericalDetectorItem::serialize().
|
protected |
Definition at line 69 of file DetectorItems.h.
Referenced by RectangularDetectorItem::RectangularDetectorItem(), SphericalDetectorItem::SphericalDetectorItem(), createResolutionFunction(), resolutionFunction(), resolutionFunctionSelection(), RectangularDetectorItem::serialize(), SphericalDetectorItem::serialize(), and setResolutionFunctionType().