parameters: (self, name="")
return_statement: return th2f
docstring: Return a ROOT.TH2F object with contents of this Hist2D.
docstring_summary: Return a ROOT.TH2F object with contents of this Hist2D.
docstring_tokens: Return a ROOT . TH2F object with contents of this Hist2D .
function: def TH2F(self, name=""):
          """Return a ROOT.TH2F object with contents of this Hist2D."""
          th2f = ROOT.TH2F(name, "",
                           self.nbinsx, array.array('f', self.xedges),
                           self.nbinsy, array.array('f', self.yedges))
          th2f.SetTitle("%s;%s;%s" % (self.title, self.xlabel, self.ylabel))
          for ix in range(self.nbinsx):
              for iy in range(self.nbinsy):
                  th2f.SetBinContent(ix + 1, iy + 1, self.content[iy][ix])
          return th2f
function_tokens: def TH2F ( self , name = "" ) : th2f = ROOT . TH2F ( name , "" , self . nbinsx , array . array ( 'f' , self . xedges ) , self . nbinsy , array . array ( 'f' , self . yedges ) ) th2f . SetTitle ( "%s;%s;%s" % ( self . title , self . xlabel , self . ylabel ) ) for ix in range ( self . nbinsx ) : for iy in range ( self . nbinsy ) : th2f . SetBinContent ( ix + 1 , iy + 1 , self . content [ iy ] [ ix ] ) return th2f