Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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)
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition:
Utilities.cc:47
EventTree
EventTree
Definition:
SiStripLAProfileBooker.cc:144
PythonAnalysis
Generated for CMSSW Reference Manual by
1.8.5