BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
DetectorContext Class Reference

Holds precalculated information for faster SimulationElement generation. More...

Public Member Functions

 DetectorContext (const IDetector2D *detector)
 
 DetectorContext (const DetectorContext &other)=delete
 
DetectorContextoperator= (const DetectorContext &other)=delete
 
size_t numberOfSimulationElements () const
 
std::unique_ptr< IPixelcreatePixel (size_t element_index) const
 Creates pixel for given element index. More...
 
size_t detectorIndex (size_t element_index) const
 

Detailed Description

Holds precalculated information for faster SimulationElement generation.

Definition at line 28 of file DetectorContext.h.

Member Function Documentation

◆ createPixel()

std::unique_ptr< IPixel > DetectorContext::createPixel ( size_t  element_index) const

Creates pixel for given element index.

Element index is sequetial index in a vector of SimulationElements. Corresponds to sequence of detector bins inside ROI and outside of masked areas.

Definition at line 32 of file DetectorContext.cpp.


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