class DISTRO(object): def __init__(self, root="./"): self.PDF = CT10(root + "PDF") self.FF = FragFuncs(root + "FF/tables/PILO.TAB") self.flavmap = {"u": 1, "ub": -1, "d": 2, "db": -2, "g": 0} def get_PDF(self, flav, x, Q): return self.PDF.get_pdf(self.flavmap[flav], x, Q) def get_FF(self, flav, x, Q): return self.FF.get_FF(x, Q ** 2, flav, +1)
class DISTRO(object): def __init__(self,root='./'): self.PDF=CT10(root+'PDF') self.FF=FragFuncs(root+'FF/tables/PILO.TAB') self.flavmap={'u':1,'ub':-1,'d':2,'db':-2,'g':0} def get_PDF(self,flav,x,Q): return self.PDF.get_pdf(self.flavmap[flav],x,Q) def get_FF(self,flav,x,Q): return self.FF.get_FF(x,Q**2,flav,+1)