forked from cbeiraod/StopNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprepSamples.sh
More file actions
executable file
·32 lines (25 loc) · 1.03 KB
/
Copy pathprepSamples.sh
File metadata and controls
executable file
·32 lines (25 loc) · 1.03 KB
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
#!/bin/bash
FILES="Wjets_200to400 Wjets_400to600 Wjets_600to800 T2DegStop_300_270"
for file in $FILES; do
echo "Checking files for sample ${file}"
if [[ ! -f ${file}_test.root ]]; then
echo " The test file does not exist, downloading it"
scp cbeiraod@fermi.ncg.ingrid.pt:~/local-area/Stop4Body/nTuples_v2017-06-05_SysVar_test/${file}.root ./${file}_test.root
fi
if [[ ! -f ${file}_train.root ]]; then
echo " The train file does not exist, downloading it"
scp cbeiraod@fermi.ncg.ingrid.pt:~/local-area/Stop4Body/nTuples_v2017-06-05_SysVar_train/${file}.root ./${file}_train.root
fi
done
setupRoot
for file in $FILES; do
echo "Checking files of sample ${file} for skimming"
if [[ ! -f ${file}_test_skimmed.root ]]; then
echo " The test sample has not been skimmed, skimming now"
root -b -q -l skimmer.cc+\(\"${file}_test\"\)
fi
if [[ ! -f ${file}_train_skimmed.root ]]; then
echo " The train sample has not been skimmed, skimming now"
root -b -q -l skimmer.cc+\(\"${file}_train\"\)
fi
done