def setUpClass(cls):
        ReflectometryILLPreprocess(Run='ILL/D17/317369.nxs',
                                   Measurement='DirectBeam',
                                   ForegroundHalfWidth=5,
                                   OutputWorkspace='db')
        ReflectometryILLPreprocess(Run='ILL/D17/317370.nxs',
                                   Measurement='ReflectedBeam',
                                   ForegroundHalfWidth=5,
                                   OutputWorkspace='rb')
        # first the direct beam
        ReflectometryILLSumForeground(InputWorkspace='db',
                                      OutputWorkspace='db_frg')

        # then the reflected beam in lambda
        ReflectometryILLSumForeground(InputWorkspace='rb',
                                      OutputWorkspace='rb_frg',
                                      SummationType='SumInLambda',
                                      DirectLineWorkspace='db',
                                      DirectForegroundWorkspace='db_frg')

        # then the reflected beam in q
        ReflectometryILLSumForeground(InputWorkspace='rb',
                                      OutputWorkspace='rb_inq_frg',
                                      SummationType='SumInQ',
                                      DirectLineWorkspace='db',
                                      DirectForegroundWorkspace='db_frg')
예제 #2
0
    def testSumInLambdaD17(self):
        # first the direct beam
        ReflectometryILLSumForeground(InputWorkspace='db',
                                      OutputWorkspace='db_frg')

        # then the reflected beam
        ReflectometryILLSumForeground(InputWorkspace='rb',
                                      OutputWorkspace='rb_frg',
                                      SummationType='SumInLambda',
                                      DirectLineWorkspace='db',
                                      DirectForegroundWorkspace='db_frg')
        self.checkOutput(mtd['rb_frg'], 991)
    def testDirectBeamFigaro(self):
        # the direct beam
        ReflectometryILLSumForeground(InputWorkspace='fig_db',
                                      OutputWorkspace='fig_db_frg')

        self.checkOutput(mtd['fig_db_frg'], 971)