User:Spieker
From KIP Wiki
⧼kip-jumptonavigation⧽⧼kip-jumptosearch⧽
Useful Commands
Analysis
pkgco.py -r <PACKAGE NAME> pkgco.py -s <PACKAGE NAME> # just show currently used package version cmt co -r MyPackage-00-00-01 Path/To/MyPackage showVersions athena | grep AthAnalysisBase python /afs/cern.ch/work/w/will/public/showConfigurables.py cmt find_packages; cmt compile cmt show packages checkSG.py <xAOD FILE> checkxAOD.py <xAOD FILE>
Looking for stuff
sometimes athena know how to find stuff and you dont know where it is looking for it?
$CALIBPATH - dev/PileupReweighting/ - get the default config for pileup reweighting from here type -a <BINARY> - find where your binary is lying
L1Calo
setupL1CALO (problably only works on lxplus)
Farm
Clean jobs from hens
farm_allHensCmd 'pkill -u <USER>'
Manage nodes
http://docs.adaptivecomputing.com/8-1-0/basic/Content/topics/torque/commands/pbsnodes.htm pbsnodes -o hen01.atlas-farm.kip.uni-heidelberg.de-0 (offline hen) pbsnodes -r hen01.atlas-farm.kip.uni-heidelberg.de-0 (release hen from offline)
Linux security options
setenforce getenforce setsebool -a (all) getsebool -P (permanent)
Open website via ssh tunnel
- in terminal:
ssh -L 9000:192.168.0.238:8888 spieker@rooster01.kip.uni-hiedelberg.de
- in browser
localhost:9000
MadGraph Event Generation
Installation
- get madgraph
wget https://launchpad.net/mg5amcnlo/2.0/2.5.x/+download/MG5_aMC_v2.5.2.tar.gz
- untar
tar -xvzf MG5_aMC_v2.5.2.tar.gz
- setup current python and gcc version (necessary for NLO calculations)
setupATLAS lsetup root (sets up all most current compilers)
Versions at setup Requested: root ... Setting up gcc gcc493_x86_64_slc6 ... Setting up python 2.7.9p1-x86_64-slc6-gcc49 ... Skipping: python 2.7 x86_64 already setup. Setting up gsl 1.10-x86_64-slc6-gcc49-opt ... Setting up fftw 3.1.2-x86_64-slc6-gcc49-opt ... Setting up root 6.04.14-x86_64-slc6-gcc49-opt ... Setting up xrootd 4.2.3-x86_64-slc6 ... Setting up davix 0.6.4-x86_64-slc6 ...
- run
cd MG5_aMC_v2_5_2 && ./bin/mg5_aMC
- install plugins
install delphes install pythia-pgs install pythia8 install madevent
Find MC command to generate
rucio ls mc15_13TeV:mc15_13TeV*aMcAtNlo*yyW* rucio get mc15_13TeV:mc15_13TeV.342621.aMcAtNloHerwigppEvtGen_UEEE5_CTEQ6L1_CT10ME_hh_yyWW.evgen.log.e4419 tar zxvf log.06501703._000001.job.log.tgz.1
search job_setup.sh for Generate_tf.py
GetTfCommand.py --AMI p1575
Standalone Generate Wyy @ NLO
- in ./mg5_aMC
generate p p > W+ a a [QCD] output Wpaa_NLO launch
OTF Generate Wyy @ NLO
Create EVNT files using MadGraph
most important link: https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/MadGraph5aMCatNLOForAtlas asetup 19.2.5.15,here
Convert EVNT files to DAOD TRUTH
see: https://twiki.cern.ch/twiki/bin/view/AtlasProtected/TruthDAOD asetup 20.1.8.3,AtlasDerivation,gcc48,here Reco_tf.py --inputEVNTFile EVNT.root --outputDAODFile test.pool.root --reductionConf TRUTH1