Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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.mindist
mindist
Definition:
VertexHistograms.py:8
core.VertexHistograms.VertexHistograms.file
file
Definition:
VertexHistograms.py:6
core.VertexHistograms.VertexHistograms.__init__
def __init__
Definition:
VertexHistograms.py:5
core.VertexHistograms.VertexHistograms
Definition:
VertexHistograms.py:3
core.VertexHistograms.VertexHistograms.write
def write
Definition:
VertexHistograms.py:10
core.VertexHistograms.VertexHistograms.hist
hist
Definition:
VertexHistograms.py:7
Generated for CMSSW Reference Manual by
1.8.5