Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
AutoLibraryLoader.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
AutoLibraryLoader::enable
static void enable()
enable automatic library loading
Definition:
AutoLibraryLoader.cc:50
PythonAnalysis
Generated for CMSSW Reference Manual by
1.8.5