1 |
hegner |
1.1 |
# How to use the python examples in CMSSW
|
2 |
|
|
|
3 |
|
|
# You need to include cms helper classes in PYTHONPATH ("cmstools")
|
4 |
|
|
bash: export PYTHONPATH=$CMSSW_BASE/src/PhysicsTools/PythonAnalysis/python:$PYTHONPATH
|
5 |
|
|
csh: setenv PYTHONPATH $CMSSW_BASE/src/PhysicsTools/PythonAnalysis/python:$PYTHONPATH
|
6 |
|
|
|
7 |
|
|
#execute examples via
|
8 |
|
|
python example.py
|
9 |
|
|
|
10 |
|
|
# read generatorOutput.root and print the generated event number
|
11 |
|
|
python MCTruth.py # standard ROOT and FWLite
|
12 |
|
|
python MCTruth2.py # with cmstools
|
13 |
|
|
|
14 |
|
|
# makes some tracker plots
|
15 |
|
|
python trackerHits.py
|