Monday, August 14, 2006

Equations, equations!

Such a useful site!! http://www.xs4all.nl/~johanw/contents.html

Wednesday, April 05, 2006

For loop of seds and greps to output trigger efficiency

Good for a quick look, instead of loading stuff into excel (run in bash):


for I in `grep -c jm03 LSFJOB_1*/STDOUT | grep -v :0 | sed s/:\[0-9]\*//`; do
J=`grep dataset $I | grep -v Analysing | grep -v MakePlots | sed s/dataset//`
echo `grep dataset $I | grep -v Analysing | grep -v MakePlots | grep -v MakePlots | sed s/dataset/==/`;
touch $J.trigger.txt;
grep dataset $I | grep -v Analysing | grep -v MakePlots | sed s/dataset/==/>> $J.trigger.txt;
grep Trigger $I | sed s/\ :\ /:/g >> $J.trigger.txt;
done


for I in `grep -c hg05 LSFJOB_1*/STDOUT | grep -v :0 | sed s/:\[0-9]\*//`; do
J=`grep dataset $I | grep -v Analysing | grep -v MakePlots | sed s/dataset//`
echo `grep dataset $I | grep -v Analysing | grep -v MakePlots | grep -v MakePlots | sed s/dataset/==/`;
touch $J.trigger.txt;
grep dataset $I | grep -v Analysing | grep -v MakePlots | sed s/dataset/==/>> $J.trigger.txt;
grep Trigger $I | sed s/\ :\ /:/g >> $J.trigger.txt;
done

for I in `grep -c hg03 LSFJOB_1*/STDOUT | grep -v :0 | sed s/:\[0-9]\*//`; do
J=`grep dataset $I | grep -v Analysing | grep -v MakePlots | sed s/dataset//`
echo `grep dataset $I | grep -v Analysing | grep -v MakePlots | grep -v MakePlots | sed s/dataset/==/`;
touch $J.trigger.txt;
grep dataset $I | grep -v Analysing | grep -v MakePlots | sed s/dataset/==/>> $J.trigger.txt;
grep Trigger $I | sed s/\ :\ /:/g >> $J.trigger.txt;
done

Thursday, February 16, 2006

Finding CE's and SE's

lcg-info --list-ce --vo cms | grep rl.ac.uk
lcg-info --list-se --vo cms | grep rl.ac.uk
lcg-info --list-se --vo cms --attrs CloseCE

Or do something a bit flash like:

lcg-info --list-ce --vo cms | grep .ac.uk|awk -F : {'print $2'}|uniq

Thursday, January 19, 2006

Command to grep for number of events in a log file

grep events 300log | sed -e 's/events passed the all VBF cuts /,/'|sed -e 's/ accepted at L1//'

Tuesday, January 17, 2006

How to get cross sections for data

Follow this guide from the JetMet Group.

For the jetmet samples used in the inv. higgs study this results in the following.