I've found that the following bash commands are useful when working with the output from Madgraph.
Unzip the unweighted event file for each process:
- for i in `ls ~/corrections/MadGraph|grep -v tar`; do j=`ls $i/Events/|grep lhe|grep -v gz`; gzip ~/corrections/MadGraph/$i/Events/$j; j=`ls $i/Events/|grep unweighted`; gunzip ~/corrections/MadGraph/$i/Events/$j; done
- for j in `ls ~/corrections/MadGraph/|grep -v gz`; do python LHEParser.py -f `ls ~/corrections/MadGraph/$j/Events/*.lhe` -d sqlite:////Users/metson/Desktop/$j.db; done; python LHEParser.py -f `ls ~/corrections/Pythia/*.lhe` -d sqlite:////Users/metson/Desktop/Signal.db;
- for i in `ls ~/Desktop|grep -e "D.db"`; do python LHEParser.py -d sqlite:////Users/metson/Desktop/$i -s; done
- python LHEPlotter.py -d ~/Desktop/
No comments:
Post a Comment