CMS 3D CMS Logo

VertexHistograms.py
Go to the documentation of this file.
1 from ROOT import TFile, TH1F
2 
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()