Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:21

0001 #!/usr/bin/env python
0002 from __future__ import print_function
0003 from builtins import range
0004 import sys
0005 import ROOT
0006 fin=ROOT.TFile.Open(sys.argv[1])
0007 pu = fin.Get("pileup")
0008 pileup = map( pu.GetBinContent, range(1,pu.GetNbinsX()+1) )
0009 print(",".join(map(lambda x: "%1.3g"%x, pileup)))