ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/GPetrucc/python/tools/plots.py
Revision: 1.1
Committed: Thu May 28 22:49:52 2009 UTC (15 years, 11 months ago) by gpetrucc
Content type: text/x-python
Branch: MAIN
CVS Tags: V03-00-00, V02-00-00, Before34X, V01-00-00, Checkpoint_2_2_10_v1, HEAD
Log Message:
Utility to work with CandViewHistoAnalyzer

File Contents

# Content
1 import FWCore.ParameterSet.Config as cms
2
3 def mkplot(var,bins,min,max,name=None,title=None,items=-1):
4 if name==None: name = var
5 if title==None: title = name
6 ret = cms.PSet(
7 name = cms.untracked.string(name),
8 description = cms.untracked.string(title),
9 plotquantity = cms.untracked.string(var),
10 min = cms.untracked.double(min),
11 max = cms.untracked.double(max),
12 nbins = cms.untracked.int32(bins),
13 )
14 if (items != -1):
15 ret.itemsToPlot = cms.untracked.int32(items)
16 return ret