Skip to content

Instantly share code, notes, and snippets.

View matz-e's full-sized avatar
🎯
Focusing

Matthias Wolf matz-e

🎯
Focusing
View GitHub Profile
@matz-e
matz-e / mc_production.py
Created May 26, 2015 16:46
MC test generation config.
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: MinBias_8TeV_cfi --conditions auto:startup -s GEN,SIM --datatier GEN-SIM -n 10
# --relval 9000,300 --eventcontent RAWSIM --io MinBias.io --python MinBias.py --no_exec --fileout minbias.root
import FWCore.ParameterSet.Config as cms
process = cms.Process('SIM')
@matz-e
matz-e / parrot_test.sh
Last active August 29, 2015 14:21
Parrot ELF error test script. Execute at ND or adjust HTTP_PROXY.
dir=$(mktemp -d)
cd $dir
export HTTP_PROXY="http://eddie.crc.nd.edu:3128"
parrot_run bash<<EOF
source /cvmfs/cms.cern.ch/cmsset_default.sh
export SCRAM_ARCH=slc6_amd64_gcc491
scramv1 project CMSSW CMSSW_7_3_5
cd CMSSW_7_3_5
@matz-e
matz-e / UseCrab.sh
Last active August 29, 2015 14:10
Crab bash completion for commands. Just source it!
# with help of the following unix-chainsaw command line:
# crab help|sed -n '/^Valid/,/^To/p'|awk '/^ / {print $1}'|while read cmd; do echo $cmd\); echo "'$(crab $cmd -h|sed -ne '/^ *-/ s/.*\(--\w*\).*/\1/p')'"; done
_UseCrab ()
{
local cur
COMPREPLY=()
# echo ${COMP_WORDS[1]}
cur=${COMP_WORDS[COMP_CWORD]}
sub=${COMP_WORDS[1]}
{
"cmsweb-dev": {
"delegate-dn": [
"/DC=ch/DC=cern/OU=computers/CN=jibbers-crabst.cern.ch|/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=matze/CN=695852/CN=Matthias Wolf|/DC=ch/DC=cern/OU=computers/CN=vocms(3[136]|21|045|052|021|03[01]).cern.ch"
],
"transformation": {
"Analysis": "http://common-analysis-framework.cern.ch/CMSRunAnaly.sh",
"PrivateMC": "http://common-analysis-framework.cern.ch/CMSRunMCProd.sh"
},
"backend-urls" : {