Main Page
Namespaces
Classes
Package Documentation
PhysicsTools
PythonAnalysis
examples
MCTruth2.py
Go to the documentation of this file.
1
from
PhysicsTools.PythonAnalysis
import
*
2
from
ROOT
import
*
3
4
# prepare the FWLite autoloading mechanism
5
gSystem.Load(
"libFWCoreFWLite.so"
)
6
FWLiteEnabler::
enable
()
7
8
# access the event tree
9
events = EventTree(
"generatorOutput.root"
)
10
11
# event loop
12
for
event
in
events:
13
genEvent = event.VtxSmeared.GetEvent()
14
print
genEvent
Reconstruction_hiPF_cff.enable
enable
Definition:
Reconstruction_hiPF_cff.py:82
PythonAnalysis
Generated for CMSSW Reference Manual by
1.8.11