-
Notifications
You must be signed in to change notification settings - Fork 21
/
README_artur_batch_recipe
43 lines (31 loc) · 5.52 KB
/
README_artur_batch_recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## (These instructions are almost entirely a copy from Juskas recipe)
cmsrel CMSSW_8_0_11
cd CMSSW_8_0_11/src/CMSDIJET/DijetRootTreeAnalyzer/
git clone https://github.com/CMSDIJET/DijetRootTreeAnalyzer.git CMSDIJET/DijetRootTreeAnalyzer
## in a directory setup for Analyzer, create a list of files to be run over.
# With this cryptic command I write a sorted lists of absolute file paths
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016B-v1_Jun-10-2016_20160610_230518/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016B-v1__RAW/160610_210532/0000/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' > lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016B-v2_Jun-10-2016_20160610_230545/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016B-v2__RAW/160610_210607/0000/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016B-v2_Jun-16-2016_20160616_155820/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016B-v2__RAW/160616_135851/0000/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016B-v2_Jun-24-2016_20160625_074015/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016B-v2__RAW/160625_054104/0000/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016C-v2_Jul-08-2016_20160708_073241/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016C-v2__RAW/160708_053311/0000/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016D-v2_Jul-08-2016_20160708_073739/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016D-v2__RAW/160708_053809/0000/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016E-v2_Nov-17-2016_20161117_180016/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016E-v2__RAW/161117_170239/000*/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016F-v1_Nov-17-2016_20161117_180601/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016F-v1__RAW/161117_170751/0000/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016G-v1_Nov-17-2016_20161117_180846/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016G-v1__RAW/161117_171149/000*/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
ls -1 eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloCommissioning_Run2016H-v1_Nov-17-2016_20161117_181530/ScoutingCaloCommissioning/crab_ScoutingCaloCommissioning__Run2016H-v1__RAW/161117_171701/000*/*.root | sed -e 's\eos\root://eoscms.cern.ch//eos\g' >> lists/ScoutingData/Commissioning/CaloScoutingCommissioning2016.txt
## Recompile
./scripts/make_rootNtupleClass.sh -f eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloHT_Run2016B-v2_Jun-24-2016_20160625_165656/ScoutingCaloHT/crab_ScoutingCaloHT__Run2016B-v2__RAW/160625_145744/0000/ScoutingCaloHT__Run2016B-v2__RAW_1.root -t dijetscouting/events
ln -sf analysisClass_mainDijetCaloScoutingSelection.C src/analysisClass.C
make clean
make
## Download fresh cert JSON and change the path accordingly in cutfile
wget https://cms-service-dqm.web.cern.ch/cms-service-dqm/CAF/certification/Collisions16/13TeV/DCSOnly/json_DCSONLY.txt
# Replace the beginning of the cutfile with path to new JSON. Use your favourite editor.
vim config/cutFile_mainDijetCaloScoutingSelection.txt
## Create necessary directories and start batch analysis. Pay attention to the -m flag and the -o output directory
mkdir batch
python scripts/submit_batch_EOS_split_scouting.py -i lists/ScoutingData/Commissioning -m 2016 -o /eos/cms/store/group/phys_exotica/dijet/Dijet13TeV/woodson/reduced_skims -q 1nh --tag ScoutingCaloCommissioning2016_JEC_CaloL1L2L3_PFL2L3Residual_BiasCorrected_Golden7640pb --split 1 --cut config/cutFile_mainDijetCaloScoutingSelection.txt
python scripts/submit_batch_EOS_split_scouting.py -i lists/ScoutingData/HT -m 2016 -o /eos/cms/store/group/phys_exotica/dijet/Dijet13TeV/woodson/reduced_skims -q 8nh --tag ScoutingCaloHT2016_JEC_CaloL1L2L3_PFL2L3Residual_BiasCorrected_Golden7640pb --split 1 --cut config/cutFile_mainDijetCaloScoutingSelection.txt
## update the location of file lists here:
vim data/trees_2016/README