flav-io / flavio

A Python package for flavour physics phenomenology in the Standard model and beyond
http://flav-io.github.io/
MIT License
71 stars 61 forks source link

Implementation of binned observables in the Likelihood #202

Closed DegCo closed 1 year ago

DegCo commented 1 year ago

Hi all,

I have probably a simple question, but I have not found the answer in the previous issues. Hopefully it will be useful for other "rookies" like me.

When I try to implement in the likelihood binned observables just by their name, e.g. '(B0->K*mumu)', I get the error 'no measurements found'. Of course, I understand that one should also implement the binning, i.e. q2min and q2max, but I have not found a way of doing so. How do I pass in q2min and q2max information into the likelihood?

Thank you very much for your time and great work!

Example of code (that raises the error): FL = FastLikelihood(name='test', observables= [ '<FL>(B0->K*mumu)'], include_measurements=['LHCb B->K*mumu 2020 P 4-6'])

peterstangl commented 1 year ago

Observables that require additional arguments can be specified in three equivalent ways:

DegCo commented 1 year ago

Thank you very much! I'll make good use of it.