forked from CMS-HGCAL/reco-prodtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedSubmitGunImproved.sh
executable file
·62 lines (47 loc) · 2.12 KB
/
edSubmitGunImproved.sh
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#TIER="GSD"
#TIER="RECO"
#TIER="NTUP"
if [ $# -ne 3 ]
then
echo "ERROR - needs three arguments"
echo "First should be one of GSD, RECO, or NTUP"
echo "Second is the PDGID"
echo "Third is the pT"
exit 1
fi
TIER=$1
PARTID=$2
PT=$3
NEVTS=5000
QUEUE="8nh"
#PARTID=22
NPART=1
#PT=35
TAG="escott_PDGid${PARTID}_nPart1_Pt${PT}_AcceptedPR"
EOS="/eos/cms/store/group/dpg_hgcal/comm_hgcal/escott"
RELVAL="/RelValDoublePiPt25Eta17_27/CMSSW_9_0_0_pre5-PU25ns_90X_upgrade2023_realistic_v4_2023D4TnoSmearPU140-v1/GEN-SIM-RECO"
#DATE="20160729" #for "old" sample from Clemens
GSDDATE="20170529"
RECODATE="20170529"
EXTRALABEL=""
if [ "$TIER" == "GSD" ]
then
EVTSPERJOB=50
echo "python SubmitHGCalPGun.py --datTier $TIER --nevts $NEVTS --evtsperjob $EVTSPERJOB --queue $QUEUE --partID $PARTID --nPart $NPART --pTmin $PT --pTmax $PT --tag $TAG --eosArea $EOS"
#python SubmitHGCalPGun.py --datTier $TIER --nevts $NEVTS --evtsperjob $EVTSPERJOB --queue $QUEUE --partID $PARTID --nPart $NPART --thresholdMin $PT --thresholdMax $PT --tag $TAG --eosArea $EOS --dry-run
python SubmitHGCalPGun.py --datTier $TIER --nevts $NEVTS --evtsperjob $EVTSPERJOB --queue $QUEUE --partID $PARTID --nPart $NPART --thresholdMin $PT --thresholdMax $PT --tag $TAG --eosArea $EOS
fi
if [ "$TIER" == "RECO" ]
then
EVTSPERJOB=200
echo "python SubmitHGCalPGun.py --datTier $TIER --evtsperjob $EVTSPERJOB --queue $QUEUE --tag $TAG$EXTRALABEL --eosArea $EOS --inDir partGun_${TAG}_$GSDDATE"
python SubmitHGCalPGun.py --datTier $TIER --evtsperjob $EVTSPERJOB --queue $QUEUE --tag $TAG$EXTRALABEL --eosArea $EOS --inDir partGun_${TAG}_$GSDDATE
fi
if [ "$TIER" == "NTUP" ]
then
EVTSPERJOB=200
echo "python SubmitHGCalPGun.py --datTier $TIER --evtsperjob $EVTSPERJOB --queue $QUEUE --tag $TAG${EXTRALABEL} --eosArea $EOS --inDir partGun_${TAG}${EXTRALABEL}_$RECODATE"
python SubmitHGCalPGun.py --datTier $TIER --evtsperjob $EVTSPERJOB --queue $QUEUE --tag ${TAG}${EXTRALABEL} --eosArea $EOS --inDir partGun_${TAG}${EXTRALABEL}_$RECODATE
#python SubmitHGCalPGun.py --datTier $TIER --evtsperjob $EVTSPERJOB --queue $QUEUE --eosArea $EOS -r $RELVAL #--dry-run
fi