def check_006_Observable(self): from eos import Observable, Parameters, Kinematics, Options, QualifiedName obs = None try: obs = Observable.make('B->K^*ll::A_FB(s)@LargeRecoil', Parameters.Defaults(), Kinematics(s=1.0), Options(model='SM')) except: raise TestFailedError('cannot create Observable') if not obs: raise TestFailedError('lookup of Observable failed') if not obs.name() == 'B->K^*ll::A_FB(s)@LargeRecoil': raise TestFailedError('cannot obtain Observable name') value = None try: value = obs.evaluate() except: raise TestFailedError('cannote evaluate Observable')
def check_006_Observable(self): """Check if an instance of Observable can be created.""" from eos import Observable, Parameters, Kinematics, Options, QualifiedName obs = None try: obs = Observable.make('B->Dlnu::BR', Parameters.Defaults(), Kinematics(q2_min=0.02, q2_max=10), Options(model='SM')) except: raise TestFailedError('cannot create Observable') if not obs: raise TestFailedError('lookup of Observable failed') if not obs.name() == 'B->Dlnu::BR': raise TestFailedError('cannot obtain Observable name') value = None try: value = obs.evaluate() except: raise TestFailedError('cannote evaluate Observable')