Skip to content
Snippets Groups Projects
Commit 393b6b22 authored by Alessandro Brusamolino's avatar Alessandro Brusamolino
Browse files

[load-from-root] Run all configurations at once

Run all configurations at once

See merge request abrusamo/pftruth-standalone!11
parents 29855bdb 683a2559
Branches master
No related tags found
No related merge requests found
......@@ -127,10 +127,22 @@ if $recompile ; then
doxygen Doxyfile
fi
score_thresholds=(0.1 0.2 0.3 0.4 0.5)
score_labels=("0p1" "0p2" "0p3" "0p4" "0p5")
frac_thresholds=(0.95 0.85 0.75 0.65)
frac_labels=("0p95" "0p85" "0p75" "0p65")
if $run_merging ; then
print_step "Running the cluster merging"
./build/COCOATruth /ceph/abrusamolino/PFTruthSamples/COCOATests/SingleTau_Geant4_FlatEtaPt.root 0.85 0.5
cp /ceph/abrusamolino/PFTruthSamples/COCOATests/SingleTau_Geant4_FlatEtaPt.root /ceph/abrusamolino/PFTruthSamples/COCOATests/SingleTau_Geant4_FlatEtaPt_0p85_0p5.root
for i in "${!frac_thresholds[@]}"; do
for j in "${!score_thresholds[@]}"; do
INPUT_FILE="/ceph/abrusamolino/PFTruthSamples/COCOA_wBackscattering/SingleElectron_Geant4_FlatEtaPt.root"
OUTPUT_FILE="/ceph/abrusamolino/PFTruthSamples/COCOA_wBackscattering/SingleElectron_Geant4_FlatEtaPt_${frac_labels[i]}_${score_labels[j]}.root"
./build/COCOATruth ${INPUT_FILE} ${frac_thresholds[i]} ${score_thresholds[j]}
cp ${INPUT_FILE} ${OUTPUT_FILE}
print_step "Saved output file to ${OUTPUT_FILE}"
done
done
fi
print_step "Done"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment