test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VertexHistograms.py
Go to the documentation of this file.
1 from ROOT import TFile, TH1F
2 
3 class VertexHistograms(object):
4 
5  def __init__(self, filename ):
6  self.file = TFile(filename, 'recreate')
7  self.hist = TH1F('pileup','', 70, 0, 70)
8  self.mindist = TH1F('mindist','Minimum distance between 2 vertices', 100, 0, 0.1)
9 
10  def write(self):
11  self.file.Write()