| 
    BornAgain
    1.18.0
    
   Simulate and fit neutron and x-ray scattering at grazing incidence 
   | 
 
Holds precalculated information for faster SimulationElement generation. More...
Public Member Functions | |
| DetectorContext (const IDetector2D *detector) | |
| DetectorContext (const DetectorContext &other)=delete | |
| DetectorContext & | operator= (const DetectorContext &other)=delete | 
| size_t | numberOfSimulationElements () const | 
| std::unique_ptr< IPixel > | createPixel (size_t element_index) const | 
| Creates pixel for given element index.  More... | |
| size_t | detectorIndex (size_t element_index) const | 
Holds precalculated information for faster SimulationElement generation.
Definition at line 28 of file DetectorContext.h.
| 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.