Skip to content

Latest commit

 

History

History
95 lines (69 loc) · 3.62 KB

code.org

File metadata and controls

95 lines (69 loc) · 3.62 KB

Prepare

export NUMBER_OF_EVENTS=1000 export EVENTS_PER_FILE=25 export NUM_FILES=$((NUMBER_OF_EVENTS / EVENTS_PER_FILE)) export GEOMETRY=CLIC_o3_v15

source /cvmfs/sw.hsf.org/key4hep/setup.sh git clone https://github.com/jmcarcell/trackvalidation –depth 1 git clone https://github.com/iLCSoft/CLICPerformance –depth 1 git clone https://github.com/jmcarcell/key4hep-reco-validation –depth 1

cp ${LCGEO}/CLIC/compact/${GEOMETRY} . -r

Conf

Create the sample

“` bash

ary=($(ls -d /eos/experiment/clicdp/grid/ilc/prod/clic/100gev/Z_uds/gen/00011619/000/* | head -n $NUM_FILES))

for i in {1..$NUM_FILES}; do ddsim –compactFile ${GEOMETRY}/${GEOMETRY}.xml –outputFile sim$i.slcio –steeringFile CLICPerformance/clicConfig/clic_steer.py –inputFiles ${ary[i]} –numberOfEvents $EVENTS_PER_FILE& done lcio_merge_files sim.slcio sim*.slcio

cd CLICPerformance/clicConfig Marlin clicReconstruction.xml –InitDD4hep.DD4hepXMLFile=../../${GEOMETRY}/${GEOMETRY}.xml –global.LCIOInputFiles=../../sim.slcio mv Output_DST.slcio Output_REC.slcio histograms.root ../../ cd -

sed -ie ‘s/TightSelectedPandoraPFOs/PandoraPFOs/’ CLICPerformance/Calorimetry/testCalibJetStudies.xml sed -ie “s|/eos.*|$PWD/Output_DST.slcio|” CLICPerformance/Calorimetry/testCalibJetStudies.xml

Marlin CLICPerformance/Calorimetry/testCalibJetStudies.xml

cat << EOF > trackvalidation/cfg/run_script_analysis.json { “Release date” : “2020-02-07”, “Input folder” : “$PWD/”, “Output folder”: “./”,

“Ntuple types” : [“ttbar3TeV”], “Ntuple names” : [“histograms.root”], “Histo names” : [“histo_muons_1GeV.root”], “Test Mode”: 1 } EOF

cd trackvalidation/run_analysis python script_analysis.py ../cfg/run_script_analysis.json cd -

cat << EOF > trackvalidation/cfg/run_script_plotting.json { “Input files” : ”../run_analysis/histo_muons_1GeV.root”, “Group features”: [“"No background:4:20" "3 TeV #gamma#gamma#rightarrow hadrons background:2:21"”], “Histo types” : [“ttbar3TeV”],

“Output folder” : [“results/ILCSoft-2020-02-07/ttbar3TeV/”], “Plot specs” : [“eff_vs_theta:x:#theta [#circ]:7:90:False:y:Tracking efficiency:0.9:1.01:False|eff_vs_phi:x:#phi [#circ]:-180:180:False:y:Tracking efficiency:0.9:1.01:False|eff_vs_pt:x:pT [GeV]:0.09:250:True:y:Tracking efficiency:0.7:1.05:False|fake_vs_theta:x:Reconstructed track #theta [#circ]:7:90:False:y:Tracking fakerate:1E-4:0.9:True|fake_vs_phi:x:Reconstructed track #phi [#circ]:-180:180:False:y:Tracking fakerate:1E-4:0.9:True|fake_vs_pt:x:Reconstructed track pT [GeV]:0.09:250:True:y:Tracking fakerate:1E-4:0.9:True|dupl_vs_theta:x:Reconstructed track #theta [#circ]:7:90:False:y:Duplicates rate:1E-4:0.9:True|dupl_vs_phi:x:Reconstructed track #phi [#circ]:-180:180:False:y:Duplicates rate:1E-4:0.9:True|dupl_vs_pt:x:Reconstructed track pT [GeV]:0.09:250:True:y:Duplicates rate:1E-4:0.9:True”],

“Test Mode”: 1 } EOF

cd trackvalidation/produce_plots python script_plotting.py ../cfg/run_script_plotting.json cd -

mkdir plots cp key4hep-reco-validation/scripts/plots/template.tex plots/

python key4hep-reco-validation/scripts/make_jet_plots.py JetStudy_WW1000_11814_CLIC_o3_v14_CT_PandoraPFOs_testnew.root /eos/home-j/jcarcell/Testing_20/JetStudy_WW1000_11814_CLIC_o3_v14_CT_PandoraPFOs_testnew.root

mv *.png plots

python key4hep-reco-validation/scripts/make_tracking_plots.py /eos/home-j/jcarcell/Testing_20/trackvalidation/run_analysis/histo_muons_1GeV.root trackvalidation/run_analysis/histo_muons_1GeV.root mv *.pdf plots

cd plots mkdir plots mv *.pdf plots python ../key4hep-reco-validation/scripts/plots/add_plots.py pdflatex template.tex

“`