src
PhysicsTools
Heppy
python
analyzers
core
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()
core.VertexHistograms.VertexHistograms.__init__
def __init__(self, filename)
Definition:
VertexHistograms.py:5
core.VertexHistograms.VertexHistograms.mindist
mindist
Definition:
VertexHistograms.py:8
core.VertexHistograms.VertexHistograms.file
file
Definition:
VertexHistograms.py:6
core.VertexHistograms.VertexHistograms
Definition:
VertexHistograms.py:3
core.VertexHistograms.VertexHistograms.hist
hist
Definition:
VertexHistograms.py:7
core.VertexHistograms.VertexHistograms.write
def write(self)
Definition:
VertexHistograms.py:10
resolutioncreator_cfi.object
object
Definition:
resolutioncreator_cfi.py:4
Generated for CMSSW Reference Manual by
1.8.14