Skip to content

Commit

Permalink
Updating val_scripts to latest (2021) samples
Browse files Browse the repository at this point in the history
  • Loading branch information
mmasciov committed Jul 1, 2021
1 parent 33f5179 commit 808160a
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 138 deletions.
50 changes: 15 additions & 35 deletions val_scripts/validation-cmssw-10mu-fulldet-build-extrectracks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,30 @@

make -j 32 WITH_ROOT:=1

dir=/data2/slava77/samples/2017/pass-4874f28/initialStep
file=memoryFile.fv3.recT.072617.bin

ECN2=${dir}/10muEta-24to-17Pt1to10/${file}
ECN1=${dir}/10muEta-175to-055Pt1to10/${file}
BRL=${dir}/10muEtaLT06Pt1to10/${file}
ECP1=${dir}/10muEta055to175Pt1to10/${file}
ECP2=${dir}/10muEta17to24Pt1to10/${file}
dir=/data2/slava77/samples/2021/
subdir=10muPt0p2to10HS/
file=memoryFile.fv5.default.210623-b62fc88.bin
fin10mu=${dir}/${subdir}/${file}

base=SNB_CMSSW_10mu

for section in ECN2 ECN1 BRL ECP1 ECP2
do
for bV in "BH bh" "STD std" "CE ce" "FV fv"
do echo $bV | while read -r bN bO
do
oBase=${base}_${section}_${bN}
echo "${oBase}: validation [nTH:32, nVU:32]"
./mkFit/mkFit --cmssw-n2seeds --cmssw-val-trkparam --input-file ${!section} --build-${bO} --num-thr 32 >& log_${oBase}_NVU32int_NTH32_cmsswval.txt
mv valtree.root valtree_${oBase}.root
done
for bV in "BH bh" "STD std" "CE ce"
do echo $bV | while read -r bN bO
do
oBase=${base}_10muPt0p2to10HS_${bN}
echo "${oBase}: validation [nTH:32, nVU:32]"
./mkFit/mkFit --cmssw-n2seeds --cmssw-val-trkparam --input-file ${fin10mu} --build-${bO} --num-thr 32 >& log_${oBase}_NVU32int_NTH32_cmsswval.txt
mv valtree.root valtree_${oBase}.root
done
done

make clean

for section in ECN2 ECN1 BRL ECP1 ECP2
do
oBase=${base}_${section}
for build in BH STD CE FV
do
root -b -q -l plotting/runValidation.C\(\"_${oBase}_${build}\",1\)
done
root -b -q -l plotting/makeValidation.C\(\"${oBase}\",\"\",1\)
done

for build in BH STD CE FV
oBase=${base}_10muPt0p2to10HS
for build in BH STD CE
do
oBase=${base}
fBase=valtree_${oBase}
dBase=validation_${oBase}
hadd ${fBase}_FullDet_${build}.root `for section in ECN2 ECN1 BRL ECP1 ECP2; do echo -n ${dBase}_${section}_${build}/${fBase}_${section}_${build}.root" "; done`
root -b -q -l plotting/runValidation.C\(\"_${oBase}_FullDet_${build}\",1\)
root -b -q -l plotting/runValidation.C\(\"_${oBase}_${build}\",1\)
done
root -b -q -l plotting/makeValidation.C\(\"${oBase}_FullDet\",\"\",1\)
root -b -q -l plotting/makeValidation.C\(\"${oBase}\",\"\",1\)

make distclean
50 changes: 15 additions & 35 deletions val_scripts/validation-cmssw-10mu-fulldet-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,23 @@

make -j 32 WITH_ROOT:=1

dir=/data2/slava77/samples/2017/pass-4874f28/initialStep
file=memoryFile.fv3.recT.072617.bin

ECN2=${dir}/10muEta-24to-17Pt1to10/${file}
ECN1=${dir}/10muEta-175to-055Pt1to10/${file}
BRL=${dir}/10muEtaLT06Pt1to10/${file}
ECP1=${dir}/10muEta055to175Pt1to10/${file}
ECP2=${dir}/10muEta17to24Pt1to10/${file}
dir=/data2/slava77/samples/2021/
subdir=10muPt0p2to10HS/
file=memoryFile.fv5.default.210623-b62fc88.bin
fin10mu=${dir}/${subdir}/${file}

base=SKL-SP_CMSSW_10mu

for sV in "SimSeed --cmssw-simseeds" "CMSSeed --cmssw-n2seeds"
do echo $sV | while read -r sN sO
do
for section in ECN2 ECN1 BRL ECP1 ECP2
do
for bV in "BH bh" "STD std" "CE ce" "FV fv"
do echo $bV | while read -r bN bO
do
oBase=${base}_${sN}_${section}_${bN}
echo "${oBase}: validation [nTH:32, nVU:32]"
./mkFit/mkFit ${sO} --sim-val --input-file ${!section} --build-${bO} --num-thr 32 >& log_${oBase}_NVU32int_NTH32_val.txt
mv valtree.root valtree_${oBase}.root
done
for bV in "BH bh" "STD std" "CE ce"
do echo $bV | while read -r bN bO
do
oBase=${base}_${sN}_10muPt0p2to10HS_${bN}
echo "${oBase}: validation [nTH:32, nVU:32]"
./mkFit/mkFit ${sO} --sim-val --input-file ${fin10mu} --build-${bO} --num-thr 32 >& log_${oBase}_NVU32int_NTH32_val.txt
mv valtree.root valtree_${oBase}.root
done
done
done
Expand All @@ -35,25 +28,12 @@ make clean

for seed in SimSeed CMSSeed
do
for section in ECN2 ECN1 BRL ECP1 ECP2
do
oBase=${base}_${seed}_${section}
for build in BH STD CE FV
do
root -b -q -l plotting/runValidation.C\(\"_${oBase}_${build}\"\)
done
root -b -q -l plotting/makeValidation.C\(\"${oBase}\"\)
done

for build in BH STD CE FV
oBase=${base}_${seed}_10muPt0p2to10HS
for build in BH STD CE
do
oBase=${base}_${seed}
fBase=valtree_${oBase}
dBase=validation_${oBase}
hadd ${fBase}_FullDet_${build}.root `for section in ECN2 ECN1 BRL ECP1 ECP2; do echo -n ${dBase}_${section}_${build}/${fBase}_${section}_${build}.root" "; done`
root -b -q -l plotting/runValidation.C\(\"_${oBase}_FullDet_${build}\"\)
root -b -q -l plotting/runValidation.C\(\"_${oBase}_${build}\"\)
done
root -b -q -l plotting/makeValidation.C\(\"${oBase}_FullDet\"\)
root -b -q -l plotting/makeValidation.C\(\"${oBase}\"\)
done

make distclean
24 changes: 18 additions & 6 deletions val_scripts/validation-cmssw-benchmarks-multiiter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

suite=${1:-"forConf"} # which set of benchmarks to run: full, forPR, forConf, val, valMT1
style=${2:-"--mtv-like-val"} # option --mtv-like-val
inputBin=${3:-"104XPU50CCC_MULTI"}
inputBin=${3:-"112X_TTbar_PU50_MULTI"}

###################
## Configuration ##
Expand All @@ -26,6 +26,13 @@ case ${inputBin} in
subdir=/initialStep/default/11024.0_TTbar_13/AVE_50_BX01_25ns/RAW4NT
file=/memoryFile.fv5.clean.writeAll.CCC1620.recT.allSeeds.masks.201023-64302e5.bin
;;
"112X_TTbar_PU50_MULTI")
echo "Inputs from 2021 TTbar (PU50) sample with multiple iterations and hit binary mask"
dir=/data2/slava77/samples/
subdir=2021/11834.0_TTbar_14TeV+2021/AVE_50_BX01_25ns/
file=memoryFile.fv5.default.210623-b62fc88.bin
nevents=1000
;;
"112X_10mu_MULTI")
echo "Inputs from 2021 10mu sample with multiple iterations and hit binary mask"
dir=/data2/slava77/samples
Expand Down Expand Up @@ -63,8 +70,10 @@ siminfo="--try-to-save-sim-info"
bkfit="--backward-fit-pca"

## validation options: SIMVAL == sim tracks as reference, CMSSWVAL == cmssw tracks as reference
SIMVAL="SIMVAL --sim-val ${siminfo} ${bkfit} ${style} --num-iters-cmssw 10"
SIMVAL_SEED="SIMVALSEED --sim-val ${siminfo} ${bkfit} --mtv-require-seeds --num-iters-cmssw 10"
#SIMVAL="SIMVAL --sim-val ${siminfo} ${bkfit} ${style} --num-iters-cmssw 10"
#SIMVAL_SEED="SIMVALSEED --sim-val ${siminfo} ${bkfit} --mtv-require-seeds --num-iters-cmssw 10"
SIMVAL="SIMVAL --sim-val ${siminfo} ${bkfit} ${style} --num-iters-cmssw 2"
SIMVAL_SEED="SIMVALSEED --sim-val ${siminfo} ${bkfit} --mtv-require-seeds --num-iters-cmssw 2"

declare -a vals=(SIMVAL SIMVAL_SEED)

Expand Down Expand Up @@ -93,11 +102,14 @@ SIMPLOT6="SIMVAL iter6 0 6 0"
SIMPLOTSEED6="SIMVALSEED iter6 0 6 0"


declare -a plots=(SIMPLOT4 SIMPLOTSEED4 SIMPLOT22 SIMPLOTSEED22 SIMPLOT23 SIMPLOTSEED23 SIMPLOT5 SIMPLOTSEED5 SIMPLOT24 SIMPLOTSEED24 SIMPLOT7 SIMPLOTSEED7 SIMPLOT8 SIMPLOTSEED8 SIMPLOT9 SIMPLOTSEED9 SIMPLOT10 SIMPLOTSEED10 SIMPLOT6 SIMPLOTSEED6)
#declare -a plots=(SIMPLOT4 SIMPLOTSEED4 SIMPLOT22 SIMPLOTSEED22 SIMPLOT23 SIMPLOTSEED23 SIMPLOT5 SIMPLOTSEED5 SIMPLOT24 SIMPLOTSEED24 SIMPLOT7 SIMPLOTSEED7 SIMPLOT8 SIMPLOTSEED8 SIMPLOT9 SIMPLOTSEED9 SIMPLOT10 SIMPLOTSEED10 SIMPLOT6 SIMPLOTSEED6)
declare -a plots=(SIMPLOT4 SIMPLOTSEED4 SIMPLOT22 SIMPLOTSEED22)

## special cmssw dummy build
CMSSW="CMSSW cmssw SIMVAL --sim-val-for-cmssw ${siminfo} --read-cmssw-tracks ${style} --num-iters-cmssw 10"
CMSSW2="CMSSW cmssw SIMVALSEED --sim-val-for-cmssw ${siminfo} --read-cmssw-tracks --mtv-require-seeds --num-iters-cmssw 10"
#CMSSW="CMSSW cmssw SIMVAL --sim-val-for-cmssw ${siminfo} --read-cmssw-tracks ${style} --num-iters-cmssw 10"
#CMSSW2="CMSSW cmssw SIMVALSEED --sim-val-for-cmssw ${siminfo} --read-cmssw-tracks --mtv-require-seeds --num-iters-cmssw 10"
CMSSW="CMSSW cmssw SIMVAL --sim-val-for-cmssw ${siminfo} --read-cmssw-tracks ${style} --num-iters-cmssw 2"
CMSSW2="CMSSW cmssw SIMVALSEED --sim-val-for-cmssw ${siminfo} --read-cmssw-tracks --mtv-require-seeds --num-iters-cmssw 2"

###############
## Functions ##
Expand Down
16 changes: 15 additions & 1 deletion val_scripts/validation-cmssw-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

suite=${1:-"forPR"} # which set of benchmarks to run: full, forPR, forConf, val, valMT1
style=${2:-"--mtv-like-val"} # option --mtv-like-val
inputBin=${3:-"104XPU50CCC"}
inputBin=${3:-"112X_TTbar_PU50_MULTI"}

###################
## Configuration ##
Expand All @@ -32,6 +32,12 @@ case ${inputBin} in
subdir=
file=pu50-ccc-hs.bin
;;
"112X_TTbar_PU50_MULTI")
echo "Inputs from 2021 TTbar (PU50) sample with multiple iterations and hit binary mask"
dir=/data2/slava77/samples/
subdir=2021/11834.0_TTbar_14TeV+2021/AVE_50_BX01_25ns/
file=memoryFile.fv5.default.210623-b62fc88.bin
;;
"104X10muCCC")
echo "Inputs from 2018 10mu large pt range using the offline initialStep seeds with CCC (phi3)"
dir=/data2/slava77/samples/2018/pass-925bb57
Expand All @@ -40,6 +46,14 @@ case ${inputBin} in
nevents=10000
sample=CMSSW_10mu
;;
"112X_10mu_MULTI")
echo "Inputs from 2021 10mu sample with multiple iterations and hit binary mask"
dir=/data2/slava77/samples
subdir=2021/10muPt0p2to1000HS
file=memoryFile.fv5.default.210623-b62fc88.bin
nevents=20000
sample=10mu
;;
"104X10muHLT3CCC")
echo "Inputs from 2018 10mu large pt range using HLT iter0 seeds as triplets with CCC (phi3)"
dir=/data2/slava77/samples/2018/pass-2eaa1f7
Expand Down
19 changes: 10 additions & 9 deletions val_scripts/validation-cmssw-ttbar-fulldet-build-extrectracks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

make -j 32 WITH_ROOT:=1

dir=/data2/slava77/samples/2017/pass-4874f28/initialStep
file=memoryFile.fv3.clean.writeAll.recT.072617.bin
dir=/data2/slava77/samples/2021/11834.0_TTbar_14TeV+2021/
file=memoryFile.fv5.default.210623-b62fc88.bin

NoPU=10024.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017_GenSimFullINPUT+DigiFull_2017+RecoFull_2017+ALCAFull_2017+HARVESTFull_2017
PU35=10224.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017PU_GenSimFullINPUT+DigiFullPU_2017PU+RecoFullPU_2017PU+HARVESTFullPU_2017PU
PU70=PU70/10224.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017PU_GenSimFullINPUT+DigiFullPU_2017PU+RecoFullPU_2017PU+HARVESTFullPU_2017PU
NoPU=AVE_0_BX01_25ns/
PU35=AVE_35_BX01_25ns/
PU50=AVE_50_BX01_25ns/
PU70=AVE_70_BX01_25ns/

base=SKL-SP_CMSSW_TTbar

for ttbar in NoPU PU35 PU70
for ttbar in NoPU PU35 PU50 PU70
do
for bV in "BH bh" "STD std" "CE ce" "FV fv"
for bV in "BH bh" "STD std" "CE ce"
do echo $bV | while read -r bN bO
do
oBase=${base}_${ttbar}_${bN}
Expand All @@ -26,10 +27,10 @@ done

make clean

for ttbar in NoPU PU35 PU70
for ttbar in NoPU PU35 PU50 PU70
do
tbase=${base}_${ttbar}
for build in BH STD CE FV
for build in BH STD CE
do
root -b -q -l plotting/runValidation.C\(\"_${tbase}_${build}\",1\)
done
Expand Down
19 changes: 10 additions & 9 deletions val_scripts/validation-cmssw-ttbar-fulldet-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@

make -j 32 WITH_ROOT:=1

dir=/data2/slava77/samples/2017/pass-4874f28/initialStep
file=memoryFile.fv3.clean.writeAll.recT.072617.bin
dir=/data2/slava77/samples/2021/11834.0_TTbar_14TeV+2021/
file=memoryFile.fv5.default.210623-b62fc88.bin

NoPU=10024.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017_GenSimFullINPUT+DigiFull_2017+RecoFull_2017+ALCAFull_2017+HARVESTFull_2017
PU35=10224.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017PU_GenSimFullINPUT+DigiFullPU_2017PU+RecoFullPU_2017PU+HARVESTFullPU_2017PU
PU70=PU70/10224.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017PU_GenSimFullINPUT+DigiFullPU_2017PU+RecoFullPU_2017PU+HARVESTFullPU_2017PU
NoPU=AVE_0_BX01_25ns/
PU35=AVE_35_BX01_25ns/
PU50=AVE_50_BX01_25ns/
PU70=AVE_70_BX01_25ns/

base=SKL-SP_CMSSW_TTbar

for ttbar in NoPU PU35 PU70
for ttbar in NoPU PU35 PU50 PU70
do
for sV in "SimSeed --cmssw-simseeds" "CMSSeed --cmssw-n2seeds"
do echo $sV | while read -r sN sO
do
for bV in "BH bh" "STD std" "CE ce" "FV fv"
for bV in "BH bh" "STD std" "CE ce"
do echo $bV | while read -r bN bO
do
oBase=${base}_${ttbar}_${sN}_${bN}
Expand All @@ -31,12 +32,12 @@ done

make clean

for ttbar in NoPU PU35 PU70
for ttbar in NoPU PU35 PU50 PU70
do
for seed in SimSeed CMSSeed
do
oBase=${base}_${ttbar}_${seed}
for build in BH STD CE FV
for build in BH STD CE
do
root -b -q -l plotting/runValidation.C\(\"_${oBase}_${build}\"\)
done
Expand Down
4 changes: 2 additions & 2 deletions val_scripts/validation-toymc-fulldet-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ file=simtracks_fulldet_400x2p5k_val.bin

base=SKL-SP_ToyMC_FullDet

for bV in "BH bh" "STD std" "CE ce" "FV fv"
for bV in "BH bh" "STD std" "CE ce"
do echo $bV | while read -r bN bO
do
oBase=${base}_${bN}
Expand All @@ -17,7 +17,7 @@ do echo $bV | while read -r bN bO
done
done

for build in BH STD CE FV
for build in BH STD CE
do
root -b -q -l plotting/runValidation.C\(\"_SNB_ToyMC_FullDet_${build}\"\)
done
Expand Down
Loading

0 comments on commit 808160a

Please sign in to comment.