From 776589fa351d9676cdc69c6db6c5a76a42d46e59 Mon Sep 17 00:00:00 2001 From: William Barter Date: Tue, 21 Sep 2021 16:24:45 +0200 Subject: [PATCH 1/2] add CCNU .yaml file --- .../options/hlt2_qee_eff_zee.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml diff --git a/HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml b/HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml new file mode 100644 index 0000000..a17bb50 --- /dev/null +++ b/HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml @@ -0,0 +1,59 @@ +# HltEfficiencyChecker "wizard" example for Hlt2 job with QEE options +annotated_decay_descriptor: + "${Z0}Z0 => ${ep}e+ ${em}e-" +ntuple_path: &NTUPLE eff_ntuple.root +job: + trigger_level: 2 + evt_max: -1 + input_type: ROOT + lines_from: Hlt2Conf.lines.qee # Specify the import path to where the lines live + # subdirectories accessed with a "." e.g. b_to_open_charm.b_to_dd + # NOTE only works with Hlt2 lines - you cannot specify a Hlt1 line at this time. + input_files: + # MagDown + # - "root://lhcb-sdpd21.t1.grid.kiae.ru:1094/t1.grid.kiae.ru/data/lhcb/lhcbdisk/l +#hcb/MC/Upgrade/XDIGI/00127638/0000/00127638_00000030_1.xdigi" + # MagUp + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000002_1.xdigi" + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000006_1.xdigi" + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000007_1.xdigi" + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000010_1.xdigi" + + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000014_1.xdigi" + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000015_1.xdigi" + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000018_1.xdigi" + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000020_1.xdigi" + - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000022_1.xdigi" + + simulation: True + conddb_tag: 'sim-20201218-vc-mu100' + dddb_tag: 'dddb-20201211' + #conddb_tag: 'sim-20180530-vc-mu100' + #dddb_tag: 'dddb-20190223' + input_raw_format: 0.3 + ft_decoding_version: 6 + run_reconstruction: True + + options: + #- $HLTEFFICIENCYCHECKERROOT/options/hlt2_lines_example.py # Not needed as the "lines_from" is used instead + - $HLTEFFICIENCYCHECKERROOT/options/options_template.py.jinja # first rendered with jinja2 + # One can also write templated options directly as a multi-line string, for example: + # - | + # from Moore import options + # options.ntuple_file = "{{ ntuple_path }}" +analysis: + script: $HLTEFFICIENCYCHECKERROOT/scripts/hlt_line_efficiencies.py + args: + input: *NTUPLE + level: Hlt2 + reconstructible_children: ep,em + # The parent is automatically deduced from the annotated decay descriptor, + # which is passed in a file such as eff_ntuple.root.json, but can also be given: + # parent: B_s0 + legend_header: "Z #rightarrow #e#e" + make_plots: true + denoms: CanRecoChildren,HighTruthPtMuon + plot_format: png + # vars: "PT,em:em_TRUEpT" + vars: "PT,ep:PT,em:PT,em-ep:Max-PT,em-ep:Min-PT" + # vars: "MaxChildPt" -- GitLab From 6dda54ef33d069699e2b3fd728609abe9aa5f3af Mon Sep 17 00:00:00 2001 From: William Barter Date: Tue, 21 Sep 2021 20:08:16 +0200 Subject: [PATCH 2/2] working version --- HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml b/HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml index a17bb50..e3efaac 100644 --- a/HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml +++ b/HltEfficiencyChecker/options/hlt2_qee_eff_zee.yaml @@ -14,17 +14,7 @@ job: # - "root://lhcb-sdpd21.t1.grid.kiae.ru:1094/t1.grid.kiae.ru/data/lhcb/lhcbdisk/l #hcb/MC/Upgrade/XDIGI/00127638/0000/00127638_00000030_1.xdigi" # MagUp - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000002_1.xdigi" - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000006_1.xdigi" - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000007_1.xdigi" - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000010_1.xdigi" - - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000014_1.xdigi" - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000015_1.xdigi" - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000018_1.xdigi" - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000020_1.xdigi" - - "/eos/home-j/jideng/TestMCZee/UP/00127652_00000022_1.xdigi" - + - "root://x509up_u1000@eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/XDIGI/00128257/0000/00128257_00000001_1.xdigi" simulation: True conddb_tag: 'sim-20201218-vc-mu100' dddb_tag: 'dddb-20201211' @@ -55,5 +45,5 @@ analysis: denoms: CanRecoChildren,HighTruthPtMuon plot_format: png # vars: "PT,em:em_TRUEpT" - vars: "PT,ep:PT,em:PT,em-ep:Max-PT,em-ep:Min-PT" + vars: "PT,ep:PT,em:PT" # vars: "MaxChildPt" -- GitLab