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

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2014-04-30 - FranciscoYumiceva
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback