Madgraph
Setup
Let's first setup a CMSSW test area:
cmsrel CMSSW_5_3_3
cd CMSSW_5_3_3/src
cmsenv
ExRootAnalysis
For ntuple analyses, we need to build the tree library so we can loop over events in the Madgraph trees. The description of the objects in the LHEF tree is in this
page.
cd CMSSW_5_3_3/src
wget http://madgraph.hep.uiuc.edu/Downloads/ExRootAnalysis/ExRootAnalysis_V1.0.10.tar.gz
tar zxvf ExRootAnalysis_V1.0.10.tar.gz
cd ExRootAnalysis/
make
Analyzer
This analyzer is written in pyROOT. It loops over events in the LHEF tree and fill histograms with some selection criteria.
cd CMSSW_5_3_3/src
git clone git@github.com:yumiceva/FXYExRoot.git
cd FXYExRoot
git checkout V00-00-00
To Produce plots:
cd FXYExRoot
./GenAnalysis.py -b -q
./GenAnalysis.py -b -q -s "whizard"
To make comparison plots
cd CMSSW_5_3_3/src
git init usercode
cd usercode
git config core.sparsecheckout true
echo "cuy" > .git/info/sparse-checkout
git remote add fxy https://github.com/yumiceva/usercode.git
git pull fxy master
git fetch fxy
git checkout V10-00-01
cd cuy
scram b
rehash
cd $CMSSW_BASE/src/FXYExRoot
cuy.py -q -b -x compare.xml -f "CMS Simulation #sqrt{s} = 8TeV" -o plots/ -p "png"
--
FranciscoYumiceva - 14 Nov 2013