Skip to content

Instantly share code, notes, and snippets.

View jpata's full-sized avatar

Joosep Pata jpata

View GitHub Profile
@jpata
jpata / crab.cfg
Created August 21, 2012 09:49
crab.cfg for T2_EE_Estonia
[CMSSW]
total_number_of_events=-1
events_per_job=20000
#output_file=STPol_WJets_ntuple.root
#pycfg_params=outputFile=STPol_WJets_ntuple.root
pset=step1_cfg.py
datasetpath=/T_t-channel_TuneZ2star_8TeV-powheg-tauola_CAF_EDM/dkonst-T_t-channel_TuneZ2star_8TeV-powheg-tauola-AOD-FASTSIM_5_2_6_filter-f4dff057d52a2128cc15dd525ba19b60/USER
dbs_url= https://cmsdbsprod.cern.ch:8443/cms_dbs_ph_analysis_02_writer/servlet/DBSServlet
get_edm_output = 1
[MULTICRAB]
cfg=crab_ntuples_rew.cfg
[COMMON]
USER.ui_working_dir = /afs/cern.ch/user/j/jpata/private/stpol/CMSSW/CMSSW_4_2_8_patch7/src/TopQuarkAnalysis/SingleTop/test/crab_multicrab2
USER.publish_data_name = systematics_reweight_7to8TeV_v2
[T_t_default]
CMSSW.datasetpath=/T_TuneZ2_t-channel_7TeV-powheg-tauola/Fall11-PU_S6_START42_V14B-v1/AODSIM
@jpata
jpata / crab_parse.py
Created August 16, 2012 09:26
parse the output of crab and resubmit jobs
import re
import subprocess
import os
import sys
import datetime
import time
import signal
import glob
import pdb
import datetime
@jpata
jpata / eoscp.sh
Created August 10, 2012 08:14
Copy all files in EOS directory
#!/bin/bash
INDIR=/eos/cms/store/caf/user/dkonst/T_t-channel_TuneZ2star_8TeV-powheg-tauola_CAF_EDM/T_t-channel_TuneZ2star_8TeV-powheg-tauola-AOD-FASTSIM_5_2_6/ c02e037c328b91752ebcd32fa1215b6f
EOSCMD="/afs/cern.ch/project/eos/installation/0.1.0-22d/bin/eos.select"
COPYCMD=xrdcp
FILES=$($EOSCMD ls $INDIR)
OUTDIR=/afs/cern.ch/user/j/jpata/work/public
for f in $FILES
do