PhysicsTools
PythonAnalysis
examples
MCTruth2.py
Go to the documentation of this file.
1
from
__future__
import
print_function
2
from
PhysicsTools.PythonAnalysis
import
*
3
from
ROOT
import
*
4
5
# prepare the FWLite autoloading mechanism
6
gSystem.Load(
"libFWCoreFWLite.so"
)
7
ROOT.FWLiteEnabler.enable()
8
9
# access the event tree
10
events = EventTree(
"generatorOutput.root"
)
11
12
# event loop
13
for
event
in
events:
14
genEvent = event.VtxSmeared.GetEvent()
15
print
(genEvent)
PythonAnalysis
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition:
JobReport.cc:66
Generated for CMSSW Reference Manual by
1.8.16