Skip to content
Snippets Groups Projects
libBornAgainBase.py 135 KiB
Newer Older
  • Learn to ignore specific revisions
  •     r"""Proxy of C++ Bin1D class."""
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, *args):
            r"""
            __init__(Bin1D self) -> Bin1D
            __init__(Bin1D self, double lower, double upper) -> Bin1D
            Bin1D::Bin1D(double lower, double upper)
    
            """
            _libBornAgainBase.Bin1D_swiginit(self, _libBornAgainBase.new_Bin1D(*args))
        m_lower = property(_libBornAgainBase.Bin1D_m_lower_get, _libBornAgainBase.Bin1D_m_lower_set, doc=r"""m_lower : double""")
        m_upper = property(_libBornAgainBase.Bin1D_m_upper_get, _libBornAgainBase.Bin1D_m_upper_set, doc=r"""m_upper : double""")
    
        def getMidPoint(self):
            r"""
            getMidPoint(Bin1D self) -> double
            double Bin1D::getMidPoint() const
    
            """
            return _libBornAgainBase.Bin1D_getMidPoint(self)
    
        def getBinSize(self):
            r"""
            getBinSize(Bin1D self) -> double
            double Bin1D::getBinSize() const
    
            """
            return _libBornAgainBase.Bin1D_getBinSize(self)
        __swig_destroy__ = _libBornAgainBase.delete_Bin1D
    
    # Register Bin1D in _libBornAgainBase:
    _libBornAgainBase.Bin1D_swigregister(Bin1D)
    
    
    def BinContains(bin, value):
    
        BinContains(Bin1D bin, double value) -> bool
        bool BinContains(const Bin1D &bin, double value)
    
        Checks if value is contained in bin: value in [m_lower, m_upper) 
    
        """
        return _libBornAgainBase.BinContains(bin, value)
    class Bin1DKVector(object):
        r"""
    
    
        An one-dimensional range of kvector_t's.
    
        C++ includes: Bin.h
    
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, *args):
            r"""
    
            __init__(Bin1DKVector self) -> Bin1DKVector
            __init__(Bin1DKVector self, kvector_t lower, kvector_t upper) -> Bin1DKVector
            __init__(Bin1DKVector self, double wavelength, Bin1D alpha_bin, Bin1D phi_bin) -> Bin1DKVector
            Bin1DKVector::Bin1DKVector(double wavelength, const Bin1D &alpha_bin, const Bin1D &phi_bin)
    
            creation on  Bin1DKVector from alpha and phi bins 
    
            _libBornAgainBase.Bin1DKVector_swiginit(self, _libBornAgainBase.new_Bin1DKVector(*args))
    
        def getMidPoint(self):
    
            getMidPoint(Bin1DKVector self) -> kvector_t
            kvector_t Bin1DKVector::getMidPoint() const
    
            return _libBornAgainBase.Bin1DKVector_getMidPoint(self)
    
        def getDelta(self):
    
            getDelta(Bin1DKVector self) -> kvector_t
            kvector_t Bin1DKVector::getDelta() const
    
            return _libBornAgainBase.Bin1DKVector_getDelta(self)
        m_q_lower = property(_libBornAgainBase.Bin1DKVector_m_q_lower_get, _libBornAgainBase.Bin1DKVector_m_q_lower_set, doc=r"""m_q_lower : kvector_t""")
        m_q_upper = property(_libBornAgainBase.Bin1DKVector_m_q_upper_get, _libBornAgainBase.Bin1DKVector_m_q_upper_set, doc=r"""m_q_upper : kvector_t""")
        __swig_destroy__ = _libBornAgainBase.delete_Bin1DKVector
    
    # Register Bin1DKVector in _libBornAgainBase:
    _libBornAgainBase.Bin1DKVector_swigregister(Bin1DKVector)
    
    class Bin1DCVector(object):
        r"""
    
        An one-dimensional range of cvector_t's.
    
        C++ includes: Bin.h
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, *args):
    
            __init__(Bin1DCVector self) -> Bin1DCVector
            __init__(Bin1DCVector self, cvector_t lower, cvector_t upper) -> Bin1DCVector
            __init__(Bin1DCVector self, double wavelength, Bin1D alpha_bin, Bin1D phi_bin) -> Bin1DCVector
            Bin1DCVector::Bin1DCVector(double wavelength, const Bin1D &alpha_bin, const Bin1D &phi_bin)
    
            creation on  Bin1DCVector from alpha and phi bins 
    
            _libBornAgainBase.Bin1DCVector_swiginit(self, _libBornAgainBase.new_Bin1DCVector(*args))
    
        def getMidPoint(self):
    
            getMidPoint(Bin1DCVector self) -> cvector_t
            cvector_t Bin1DCVector::getMidPoint() const
    
            return _libBornAgainBase.Bin1DCVector_getMidPoint(self)
    
        def getDelta(self):
            r"""
            getDelta(Bin1DCVector self) -> cvector_t
            cvector_t Bin1DCVector::getDelta() const
    
    2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721
            """
            return _libBornAgainBase.Bin1DCVector_getDelta(self)
        m_q_lower = property(_libBornAgainBase.Bin1DCVector_m_q_lower_get, _libBornAgainBase.Bin1DCVector_m_q_lower_set, doc=r"""m_q_lower : cvector_t""")
        m_q_upper = property(_libBornAgainBase.Bin1DCVector_m_q_upper_get, _libBornAgainBase.Bin1DCVector_m_q_upper_set, doc=r"""m_q_upper : cvector_t""")
        __swig_destroy__ = _libBornAgainBase.delete_Bin1DCVector
    
    # Register Bin1DCVector in _libBornAgainBase:
    _libBornAgainBase.Bin1DCVector_swigregister(Bin1DCVector)
    
    class IAxis(object):
        r"""
    
    
        Interface for one-dimensional axes.
    
        C++ includes: IAxis.h
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    
        def __init__(self, *args, **kwargs):
            raise AttributeError("No constructor defined - class is abstract")
        __repr__ = _swig_repr
    
        def clone(self):
            r"""
            clone(IAxis self) -> IAxis
            virtual IAxis* IAxis::clone() const =0
    
            clone function 
    
            """
            return _libBornAgainBase.IAxis_clone(self)
        __swig_destroy__ = _libBornAgainBase.delete_IAxis
    
        def size(self):
            r"""
            size(IAxis self) -> size_t
            virtual size_t IAxis::size() const =0
    
            retrieve the number of bins 
    
            """
            return _libBornAgainBase.IAxis_size(self)
    
        def getName(self):
            r"""
            getName(IAxis self) -> std::string
            std::string IAxis::getName() const
    
            retrieve the label of the axis 
    
            """
            return _libBornAgainBase.IAxis_getName(self)
    
        def setName(self, name):
            r"""
            setName(IAxis self, std::string name)
            void IAxis::setName(std::string name)
    
            Sets the axis label. 
    
            """
            return _libBornAgainBase.IAxis_setName(self, name)
    
        def getBin(self, index):
            r"""
            getBin(IAxis self, size_t index) -> Bin1D
            virtual Bin1D IAxis::getBin(size_t index) const =0
    
            retrieve a 1d bin for the given index 
    
            """
            return _libBornAgainBase.IAxis_getBin(self, index)
    
        def getMin(self):
            r"""
            getMin(IAxis self) -> double
            virtual double IAxis::getMin() const =0
    
            Returns value of first point of axis. 
    
            """
            return _libBornAgainBase.IAxis_getMin(self)
    
        def getMax(self):
            r"""
            getMax(IAxis self) -> double
            virtual double IAxis::getMax() const =0
    
            Returns value of last point of axis. 
    
            """
            return _libBornAgainBase.IAxis_getMax(self)
    
        def getBinCenter(self, index):
            r"""
            getBinCenter(IAxis self, size_t index) -> double
            virtual double IAxis::getBinCenter(size_t index) const =0
    
            """
            return _libBornAgainBase.IAxis_getBinCenter(self, index)
    
        def findClosestIndex(self, value):
            r"""
            findClosestIndex(IAxis self, double value) -> size_t
            virtual size_t IAxis::findClosestIndex(double value) const =0
    
            find bin index which is best match for given value 
    
            """
            return _libBornAgainBase.IAxis_findClosestIndex(self, value)
    
        def __eq__(self, right):
            r"""__eq__(IAxis self, IAxis right) -> bool"""
            return _libBornAgainBase.IAxis___eq__(self, right)
    
        def __ne__(self, right):
            r"""__ne__(IAxis self, IAxis right) -> bool"""
            return _libBornAgainBase.IAxis___ne__(self, right)
    
        def getBinCenters(self):
            r"""
            getBinCenters(IAxis self) -> vdouble1d_t
            std::vector< double > IAxis::getBinCenters() const
    
            """
            return _libBornAgainBase.IAxis_getBinCenters(self)
    
        def getBinBoundaries(self):
            r"""
            getBinBoundaries(IAxis self) -> vdouble1d_t
            std::vector< double > IAxis::getBinBoundaries() const
    
            """
            return _libBornAgainBase.IAxis_getBinBoundaries(self)
    
        def createClippedAxis(self, left, right):
            r"""
            createClippedAxis(IAxis self, double left, double right) -> IAxis
            IAxis * IAxis::createClippedAxis(double left, double right) const
    
            Creates a new clipped axis. 
    
            """
            return _libBornAgainBase.IAxis_createClippedAxis(self, left, right)
    
        def contains(self, value):
            r"""
            contains(IAxis self, double value) -> bool
            bool IAxis::contains(double value) const
    
            Returns true if axis contains given point. 
    
            """
            return _libBornAgainBase.IAxis_contains(self, value)
    
    # Register IAxis in _libBornAgainBase:
    _libBornAgainBase.IAxis_swigregister(IAxis)
    
    
    def HaveSameNameAndShape(left, right):
        r"""
        HaveSameNameAndShape(IAxis left, IAxis right) -> bool
        bool HaveSameNameAndShape(const IAxis &left, const IAxis &right)
    
        global helper function for comparison of axes 
    
        """
        return _libBornAgainBase.HaveSameNameAndShape(left, right)
    class VariableBinAxis(IAxis):
        r"""
    
    
        Axis with variable bin size.
    
        C++ includes: VariableBinAxis.h
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, name, nbins, bin_boundaries):
            r"""
            __init__(VariableBinAxis self, std::string const & name, size_t nbins, vdouble1d_t bin_boundaries) -> VariableBinAxis
            VariableBinAxis::VariableBinAxis(const std::string &name, size_t nbins, const std::vector< double > &bin_boundaries)
    
            VariableBinAxis constructor.
    
            Parameters:
            -----------
    
            name: 
            Axis name
    
            nbins: 
            number of bins
    
            bin_boundaries: 
            Array of size nbins+1 containing low-edges for each bin and upper edge of last bin. 
    
            """
            _libBornAgainBase.VariableBinAxis_swiginit(self, _libBornAgainBase.new_VariableBinAxis(name, nbins, bin_boundaries))
        __swig_destroy__ = _libBornAgainBase.delete_VariableBinAxis
    
        def clone(self):
            r"""
            clone(VariableBinAxis self) -> VariableBinAxis
            VariableBinAxis * VariableBinAxis::clone() const
    
            clone function 
    
            """
            return _libBornAgainBase.VariableBinAxis_clone(self)
    
        def size(self):
            r"""
            size(VariableBinAxis self) -> size_t
            size_t VariableBinAxis::size() const
    
            retrieve the number of bins 
    
            """
            return _libBornAgainBase.VariableBinAxis_size(self)
    
        def getBin(self, index):
            r"""
            getBin(VariableBinAxis self, size_t index) -> Bin1D
            Bin1D VariableBinAxis::getBin(size_t index) const
    
            retrieve a 1d bin for the given index 
    
            """
            return _libBornAgainBase.VariableBinAxis_getBin(self, index)
    
        def getMin(self):
            r"""
            getMin(VariableBinAxis self) -> double
            double VariableBinAxis::getMin() const
    
            Returns value of first point of axis. 
    
            """
            return _libBornAgainBase.VariableBinAxis_getMin(self)
    
        def getMax(self):
            r"""
            getMax(VariableBinAxis self) -> double
            double VariableBinAxis::getMax() const
    
            Returns value of last point of axis. 
    
            """
            return _libBornAgainBase.VariableBinAxis_getMax(self)
    
        def getBinCenter(self, index):
            r"""
            getBinCenter(VariableBinAxis self, size_t index) -> double
            double VariableBinAxis::getBinCenter(size_t index) const
    
            """
            return _libBornAgainBase.VariableBinAxis_getBinCenter(self, index)
    
        def findClosestIndex(self, value):
            r"""
            findClosestIndex(VariableBinAxis self, double value) -> size_t
            size_t VariableBinAxis::findClosestIndex(double value) const
    
            find bin index which is best match for given value 
    
            """
            return _libBornAgainBase.VariableBinAxis_findClosestIndex(self, value)
    
        def getBinCenters(self):
            r"""
            getBinCenters(VariableBinAxis self) -> vdouble1d_t
            std::vector< double > VariableBinAxis::getBinCenters() const
    
            """
            return _libBornAgainBase.VariableBinAxis_getBinCenters(self)
    
        def getBinBoundaries(self):
            r"""
            getBinBoundaries(VariableBinAxis self) -> vdouble1d_t
            std::vector<double> VariableBinAxis::getBinBoundaries() const
    
            """
            return _libBornAgainBase.VariableBinAxis_getBinBoundaries(self)
    
        def createClippedAxis(self, left, right):
            r"""
            createClippedAxis(VariableBinAxis self, double left, double right) -> VariableBinAxis
            VariableBinAxis * VariableBinAxis::createClippedAxis(double left, double right) const
    
            Creates a new clipped axis. 
    
            """
            return _libBornAgainBase.VariableBinAxis_createClippedAxis(self, left, right)
    
        def __getitem__(self, i):
            r"""__getitem__(VariableBinAxis self, unsigned int i) -> double"""
            return _libBornAgainBase.VariableBinAxis___getitem__(self, i)
    
    # Register VariableBinAxis in _libBornAgainBase:
    _libBornAgainBase.VariableBinAxis_swigregister(VariableBinAxis)
    
    class ConstKBinAxis(VariableBinAxis):
        r"""
    
    
        Axis with fixed bin size in sin(angle) space.
    
        C++ includes: ConstKBinAxis.h
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, name, nbins, start, end):
            r"""
            __init__(ConstKBinAxis self, std::string const & name, size_t nbins, double start, double end) -> ConstKBinAxis
            ConstKBinAxis::ConstKBinAxis(const std::string &name, size_t nbins, double start, double end)
    
            ConstKBinAxis constructor.
    
            Parameters:
            -----------
    
            name: 
            Axis name
    
            nbins: 
            number of bins
    
            start: 
            low edge of first bin
    
            end: 
            upper edge of last bin 
    
            """
            _libBornAgainBase.ConstKBinAxis_swiginit(self, _libBornAgainBase.new_ConstKBinAxis(name, nbins, start, end))
        __swig_destroy__ = _libBornAgainBase.delete_ConstKBinAxis
    
        def clone(self):
            r"""
            clone(ConstKBinAxis self) -> ConstKBinAxis
            ConstKBinAxis * ConstKBinAxis::clone() const final
    
            clone function 
    
            """
            return _libBornAgainBase.ConstKBinAxis_clone(self)
    
        def createClippedAxis(self, left, right):
            r"""
            createClippedAxis(ConstKBinAxis self, double left, double right) -> ConstKBinAxis
            ConstKBinAxis * ConstKBinAxis::createClippedAxis(double left, double right) const final
    
            Creates a new clipped axis. 
    
            """
            return _libBornAgainBase.ConstKBinAxis_createClippedAxis(self, left, right)
    
    # Register ConstKBinAxis in _libBornAgainBase:
    _libBornAgainBase.ConstKBinAxis_swigregister(ConstKBinAxis)
    
    class CustomBinAxis(VariableBinAxis):
        r"""
    
    
        Axis with fixed bin size in sin(angle) space used for numerical comparison with IsGisaxs. The main feature of the axis is that it produces zero bin sizes.
    
        C++ includes: CustomBinAxis.h
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, name, nbins, start, end):
            r"""
            __init__(CustomBinAxis self, std::string const & name, size_t nbins, double start, double end) -> CustomBinAxis
            CustomBinAxis::CustomBinAxis(const std::string &name, size_t nbins, double start, double end)
    
            CustomBinAxis constructor.
    
            Parameters:
            -----------
    
            name: 
            Axis name
    
            nbins: 
            number of bins
    
            start: 
            center of first bin (IsGisaxs convention)
    
            end: 
            center of last bin (IsGisaxs convention) 
    
            """
            _libBornAgainBase.CustomBinAxis_swiginit(self, _libBornAgainBase.new_CustomBinAxis(name, nbins, start, end))
        __swig_destroy__ = _libBornAgainBase.delete_CustomBinAxis
    
        def clone(self):
            r"""
            clone(CustomBinAxis self) -> CustomBinAxis
            CustomBinAxis * CustomBinAxis::clone() const
    
            clone function 
    
            """
            return _libBornAgainBase.CustomBinAxis_clone(self)
    
        def getBin(self, index):
            r"""
            getBin(CustomBinAxis self, size_t index) -> Bin1D
            Bin1D CustomBinAxis::getBin(size_t index) const
    
            retrieve a 1d bin for the given index 
    
            """
            return _libBornAgainBase.CustomBinAxis_getBin(self, index)
    
        def getBinCenters(self):
            r"""
            getBinCenters(CustomBinAxis self) -> vdouble1d_t
            std::vector< double > CustomBinAxis::getBinCenters() const
    
            """
            return _libBornAgainBase.CustomBinAxis_getBinCenters(self)
    
        def createClippedAxis(self, left, right):
            r"""
            createClippedAxis(CustomBinAxis self, double left, double right) -> CustomBinAxis
            CustomBinAxis * CustomBinAxis::createClippedAxis(double left, double right) const
    
            Creates a new clipped axis. 
    
            """
            return _libBornAgainBase.CustomBinAxis_createClippedAxis(self, left, right)
    
    # Register CustomBinAxis in _libBornAgainBase:
    _libBornAgainBase.CustomBinAxis_swigregister(CustomBinAxis)
    
    class FixedBinAxis(IAxis):
        r"""
    
    
        Axis with fixed bin size.
    
        C++ includes: FixedBinAxis.h
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, name, nbins, start, end):
            r"""
            __init__(FixedBinAxis self, std::string const & name, size_t nbins, double start, double end) -> FixedBinAxis
            FixedBinAxis::FixedBinAxis(const std::string &name, size_t nbins, double start, double end)
    
            FixedBinAxis constructor.
    
            Parameters:
            -----------
    
            name: 
            Axis name
    
            nbins: 
            number of bins
    
            start: 
            low edge of first bin
    
            end: 
            upper edge of last bin 
    
            """
            _libBornAgainBase.FixedBinAxis_swiginit(self, _libBornAgainBase.new_FixedBinAxis(name, nbins, start, end))
        __swig_destroy__ = _libBornAgainBase.delete_FixedBinAxis
    
        def clone(self):
            r"""
            clone(FixedBinAxis self) -> FixedBinAxis
            FixedBinAxis * FixedBinAxis::clone() const
    
            clone function 
    
            """
            return _libBornAgainBase.FixedBinAxis_clone(self)
    
        def size(self):
            r"""
            size(FixedBinAxis self) -> size_t
            size_t FixedBinAxis::size() const
    
            retrieve the number of bins 
    
            """
            return _libBornAgainBase.FixedBinAxis_size(self)
    
        def getBin(self, index):
            r"""
            getBin(FixedBinAxis self, size_t index) -> Bin1D
            Bin1D FixedBinAxis::getBin(size_t index) const
    
            retrieve a 1d bin for the given index 
    
            """
            return _libBornAgainBase.FixedBinAxis_getBin(self, index)
    
        def getMin(self):
            r"""
            getMin(FixedBinAxis self) -> double
            double FixedBinAxis::getMin() const
    
            Returns value of first point of axis. 
    
            """
            return _libBornAgainBase.FixedBinAxis_getMin(self)
    
        def getMax(self):
            r"""
            getMax(FixedBinAxis self) -> double
            double FixedBinAxis::getMax() const
    
            Returns value of last point of axis. 
    
            """
            return _libBornAgainBase.FixedBinAxis_getMax(self)
    
        def getBinCenter(self, index):
            r"""
            getBinCenter(FixedBinAxis self, size_t index) -> double
            double FixedBinAxis::getBinCenter(size_t index) const
    
            """
            return _libBornAgainBase.FixedBinAxis_getBinCenter(self, index)
    
        def findClosestIndex(self, value):
            r"""
            findClosestIndex(FixedBinAxis self, double value) -> size_t
            size_t FixedBinAxis::findClosestIndex(double value) const
    
            find bin index which is best match for given value 
    
            """
            return _libBornAgainBase.FixedBinAxis_findClosestIndex(self, value)
    
        def getBinCenters(self):
            r"""
            getBinCenters(FixedBinAxis self) -> vdouble1d_t
            std::vector< double > FixedBinAxis::getBinCenters() const
    
            """
            return _libBornAgainBase.FixedBinAxis_getBinCenters(self)
    
        def getBinBoundaries(self):
            r"""
            getBinBoundaries(FixedBinAxis self) -> vdouble1d_t
            std::vector< double > FixedBinAxis::getBinBoundaries() const
    
            """
            return _libBornAgainBase.FixedBinAxis_getBinBoundaries(self)
    
        def createClippedAxis(self, left, right):
            r"""
            createClippedAxis(FixedBinAxis self, double left, double right) -> FixedBinAxis
            FixedBinAxis * FixedBinAxis::createClippedAxis(double left, double right) const
    
            Creates a new clipped axis. 
    
            """
            return _libBornAgainBase.FixedBinAxis_createClippedAxis(self, left, right)
    
        def __getitem__(self, i):
            r"""__getitem__(FixedBinAxis self, unsigned int i) -> double"""
            return _libBornAgainBase.FixedBinAxis___getitem__(self, i)
    
    # Register FixedBinAxis in _libBornAgainBase:
    _libBornAgainBase.FixedBinAxis_swigregister(FixedBinAxis)
    
    
    class IPixel(object):
        r"""
    
    
        Interface for a function that maps [0,1]x[0,1] to the kvectors in a pixel.
    
        C++ includes: IPixel.h
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    
        def __init__(self, *args, **kwargs):
            raise AttributeError("No constructor defined - class is abstract")
        __repr__ = _swig_repr
        __swig_destroy__ = _libBornAgainBase.delete_IPixel
    
        def clone(self):
            r"""
            clone(IPixel self) -> IPixel
            virtual IPixel* IPixel::clone() const =0
    
            """
            return _libBornAgainBase.IPixel_clone(self)
    
        def createZeroSizePixel(self, x, y):
            r"""
            createZeroSizePixel(IPixel self, double x, double y) -> IPixel
            virtual IPixel* IPixel::createZeroSizePixel(double x, double y) const =0
    
            """
            return _libBornAgainBase.IPixel_createZeroSizePixel(self, x, y)
    
        def getK(self, x, y, wavelength):
            r"""
            getK(IPixel self, double x, double y, double wavelength) -> kvector_t
            virtual kvector_t IPixel::getK(double x, double y, double wavelength) const =0
    
            """
            return _libBornAgainBase.IPixel_getK(self, x, y, wavelength)
    
        def getIntegrationFactor(self, x, y):
            r"""
            getIntegrationFactor(IPixel self, double x, double y) -> double
            virtual double IPixel::getIntegrationFactor(double x, double y) const =0
    
            """
            return _libBornAgainBase.IPixel_getIntegrationFactor(self, x, y)
    
        def getSolidAngle(self):
            r"""
            getSolidAngle(IPixel self) -> double
            virtual double IPixel::getSolidAngle() const =0
    
            """
            return _libBornAgainBase.IPixel_getSolidAngle(self)
    
    # Register IPixel in _libBornAgainBase:
    _libBornAgainBase.IPixel_swigregister(IPixel)
    
    
    class kvector_t(object):
        r"""
    
    
        Forked from CLHEP/Geometry by E. Chernyaev Evgueni.Tcherniaev@cern.ch, then reworked beyond recognition. Removed split of point and vector semantics. Transforms are relegated to a separate class  Transform3D. Three-dimensional vector template, for use with integer, double, or complex components.
    
        C++ includes: BasicVector3D.h
    
        """
    
        thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
        __repr__ = _swig_repr
    
        def __init__(self, *args):
            r"""
            __init__(kvector_t self) -> kvector_t
            __init__(kvector_t self, double const x1, double const y1, double const z1) -> kvector_t
            BasicVector3D< T >::BasicVector3D(const T x1, const T y1, const T z1)
    
            Constructor from cartesian components. 
    
            """
            _libBornAgainBase.kvector_t_swiginit(self, _libBornAgainBase.new_kvector_t(*args))
    
        def x(self):
            r"""
            x(kvector_t self) -> double
            T BasicVector3D< T >::x() const
    
            Returns x-component in cartesian coordinate system. 
    
            """
            return _libBornAgainBase.kvector_t_x(self)
    
        def y(self):
            r"""
            y(kvector_t self) -> double
            T BasicVector3D< T >::y() const
    
            Returns y-component in cartesian coordinate system. 
    
            """
            return _libBornAgainBase.kvector_t_y(self)
    
        def z(self):
            r"""
            z(kvector_t self) -> double
            T BasicVector3D< T >::z() const
    
            Returns z-component in cartesian coordinate system. 
    
            """
            return _libBornAgainBase.kvector_t_z(self)
    
        def setX(self, a):
            r"""
            setX(kvector_t self, double const & a)
            void BasicVector3D< T >::setX(const T &a)
    
            Sets x-component in cartesian coordinate system. 
    
            """
            return _libBornAgainBase.kvector_t_setX(self, a)
    
        def setY(self, a):
            r"""
            setY(kvector_t self, double const & a)
            void BasicVector3D< T >::setY(const T &a)
    
            Sets y-component in cartesian coordinate system. 
    
            """
            return _libBornAgainBase.kvector_t_setY(self, a)
    
        def setZ(self, a):
            r"""
            setZ(kvector_t self, double const & a)
            void BasicVector3D< T >::setZ(const T &a)
    
            Sets z-component in cartesian coordinate system. 
    
            """
            return _libBornAgainBase.kvector_t_setZ(self, a)
    
        def __iadd__(self, v):
            r"""__iadd__(kvector_t self, kvector_t v) -> kvector_t"""
            return _libBornAgainBase.kvector_t___iadd__(self, v)
    
        def __isub__(self, v):
            r"""__isub__(kvector_t self, kvector_t v) -> kvector_t"""
            return _libBornAgainBase.kvector_t___isub__(self, v)
    
    
        def conj(self):
            r"""
            conj(kvector_t self) -> kvector_t
    
            BasicVector3D< complex_t > BasicVector3D< complex_t >::conj() const
    
    
            """
            return _libBornAgainBase.kvector_t_conj(self)
    
        def mag2(self):
            r"""
            mag2(kvector_t self) -> double
            double BasicVector3D< T >::mag2() const
    
            Returns magnitude squared of the vector. 
    
            """
            return _libBornAgainBase.kvector_t_mag2(self)
    
        def mag(self):
            r"""
            mag(kvector_t self) -> double
            double BasicVector3D< T >::mag() const
    
            Returns magnitude of the vector. 
    
            """
            return _libBornAgainBase.kvector_t_mag(self)
    
        def magxy2(self):
            r"""
            magxy2(kvector_t self) -> double
            double BasicVector3D< T >::magxy2() const
    
            Returns squared distance from z axis. 
    
            """
            return _libBornAgainBase.kvector_t_magxy2(self)
    
        def magxy(self):
            r"""
            magxy(kvector_t self) -> double
            double BasicVector3D< T >::magxy() const
    
            Returns distance from z axis. 
    
            """
            return _libBornAgainBase.kvector_t_magxy(self)
    
        def phi(self):
            r"""
            phi(kvector_t self) -> double
    
            double BasicVector3D< T >::phi() const
    
            Returns azimuth angle. 
    
    
            """
            return _libBornAgainBase.kvector_t_phi(self)
    
        def theta(self):
            r"""
            theta(kvector_t self) -> double
    
            double BasicVector3D< T >::theta() const
    
            Returns polar angle. 
    
    
            """
            return _libBornAgainBase.kvector_t_theta(self)
    
        def cosTheta(self):
            r"""
            cosTheta(kvector_t self) -> double
    
            double BasicVector3D< T >::cosTheta() const
    
            Returns cosine of polar angle. 
    
    
            """
            return _libBornAgainBase.kvector_t_cosTheta(self)
    
        def sin2Theta(self):
            r"""
            sin2Theta(kvector_t self) -> double
    
            double BasicVector3D< T >::sin2Theta() const
    
            Returns squared sine of polar angle. 
    
    
            """
            return _libBornAgainBase.kvector_t_sin2Theta(self)
    
        def unit(self):
            r"""
            unit(kvector_t self) -> kvector_t
    
            BasicVector3D< complex_t > BasicVector3D< complex_t >::unit() const
    
    
            """
            return _libBornAgainBase.kvector_t_unit(self)
    
        def complex(self):
            r"""
            complex(kvector_t self) -> cvector_t
    
            BasicVector3D<std::complex<double> > BasicVector3D< T >::complex() const
    
            Returns this, trivially converted to complex type. 
    
    
            """
            return _libBornAgainBase.kvector_t_complex(self)
    
        def real(self):
            r"""
            real(kvector_t self) -> kvector_t
    
            BasicVector3D< double > BasicVector3D< complex_t >::real() const
    
    
            """
            return _libBornAgainBase.kvector_t_real(self)
    
        def angle(self, v):
            r"""
            angle(kvector_t self, kvector_t v) -> double
    
            double BasicVector3D< T >::angle(const BasicVector3D< T > &v) const
    
            Returns angle with respect to another vector. 
    
    
            """
            return _libBornAgainBase.kvector_t_angle(self, v)
    
        def project(self, v):
            r"""
            project(kvector_t self, kvector_t v) -> kvector_t