def MakePmfFromHist(hist, name=None):
if name is None:<EOL><INDENT>name = hist.name<EOL><DEDENT>d = dict(hist.GetDict())<EOL>pmf = Pmf(d, name)<EOL>pmf.Normalize()<EOL>return pmf<EOL>
Makes a normalized PMF from a Hist object.

    Args:
        hist: Hist object
        name: string name

    Returns:
        Pmf object