ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/lucieg/macros/bookHisto.py
Revision: 1.2
Committed: Thu Jul 14 09:01:39 2011 UTC (13 years, 9 months ago) by lucieg
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
Log Message:
resync

File Contents

# User Rev Content
1 lucieg 1.1 import FWCore.ParameterSet.Config as cms
2     import ROOT
3    
4     def bookHisto(cuts, bins, histos) :
5     for cut in cuts :
6     if (cut == ""):
7     continue
8     else :
9 lucieg 1.2 histos.append(ROOT.TH1F(("h"+str(cut)), "pt",len(bins)-1, bins))
10 lucieg 1.1