-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathresolutionScaleFiller_submitIlya.sh
More file actions
executable file
·30 lines (26 loc) · 1.1 KB
/
resolutionScaleFiller_submitIlya.sh
File metadata and controls
executable file
·30 lines (26 loc) · 1.1 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
29
30
#!/bin/bash
# gorbunov_PiPt25_PUP200
SAMPLEFILE=$1
OUTDIR="/eos/user/c/clange/HGCal/ScaleResolution/_new/Ilya/"
PREFIX="root://eoscms.cern.ch//eos/cms/store/cmst3/group/hgcal/CMG_studies/Production/"
GUNTYPE="pt"
POSTFIX="NTUP"
REFNAME="genpart"
OBJNAMES="pfcluster megacluster"
QUEUE="8nh"
for SAMPLE in `cat $SAMPLEFILE`; do
SAMPLEDIR="${PREFIX}${SAMPLE}/${POSTFIX}/"
PTVAL=`echo ${SAMPLE} | gawk 'match($0, /.*gorbunov_PiPt(.*)_PUP.*/, arr) { print arr[1] }'`
PARTICLE=`echo ${SAMPLE} | gawk 'match($0, /.*gorbunov_(.*)Pt.*/, arr) { print arr[1] }'`
TAG="PU200"
PID=0
if [ "$PARTICLE" == "Pi" ]; then
PID=211
elif [ "$PARTICLE" == "Photon" ]; then
PID=22
fi;
for OBJNAME in $OBJNAMES; do
echo python resolutionScaleFiller_batchWrapper.py --inputdir ${SAMPLEDIR} --outdir ${OUTDIR} --gunType $GUNTYPE --pid $PID --genValue $PTVAL --tag $TAG --ref $REFNAME --obj $OBJNAME --queue $QUEUE
python resolutionScaleFiller_batchWrapper.py --inputdir ${SAMPLEDIR} --outdir ${OUTDIR} --gunType $GUNTYPE --pid $PID --genValue $PTVAL --tag $TAG --ref $REFNAME --obj $OBJNAME --queue $QUEUE
done
done