original_docstring: Returns normalized histogram clone of input histogram
  
      Args:
          histogram: A TH1 histogram
      
docstring: Returns normalized histogram clone of input histogram
docstring_tokens: Returns normalized histogram clone of input histogram
code: def normalize(histogram):
      """Returns normalized histogram clone of input histogram
  
      Args:
          histogram: A TH1 histogram
      """
      nbins    = histogram.GetNbinsX()
      integral = histogram.Integral(1,nbins)
      newhist  = histogram.Clone()
      newhist.Reset()
      for bin in range(1,nbins+1):
          ibinY = histogram.GetBinContent(bin)
          newhist.SetBinContent(bin,ibinY/integral)
      return newhist
code_tokens: def normalize ( histogram ) : nbins = histogram . GetNbinsX ( ) integral = histogram . Integral ( 1 , nbins ) newhist = histogram . Clone ( ) newhist . Reset ( ) for bin in range ( 1 , nbins + 1 ) : ibinY = histogram . GetBinContent ( bin ) newhist . SetBinContent ( bin , ibinY / integral ) return newhist
short_docstring: Returns normalized histogram clone of input histogram
short_docstring_tokens: Returns normalized histogram clone of input histogram
comment: """Returns normalized histogram clone of input histogram
  
      Args:
          histogram: A TH1 histogram
      """