Commit 07afa566 authored by Marcel Materok's avatar Marcel Materok
Browse files

adding files for Ross to check

parent 3bccc9d2
Pipeline #2023496 passed with stage
in 24 seconds
###############################################################################
# (c) Copyright 2019 CERN for the benefit of the LHCb Collaboration #
# #
# This software is distributed under the terms of the GNU General Public #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
from Moore import options
from HltEfficiencyChecker.config import run_moore_with_tuples
from RecoConf.reconstruction_objects import reconstruction
from RecoConf.protoparticles import make_charged_protoparticles
decay = (
"${Bs}[B_s0 => ( J/psi(1S) => ${mup}mu+ ${mum}mu- ) ( phi(1020) => ${Kp}K+ ${Km}K- )]CC"
)
options.input_files = [
# HLT1-filtered
# Bs2JpsiPhi, 13144011
# sim+std://MC/Upgrade/Beam7000GeV-Upgrade-MagDown-Nu7.6-25ns-Pythia8/Sim09c-Up02/Reco-Up01/Trig0x52000000/13144011/LDST
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000001_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000002_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000003_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000004_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000005_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000006_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000007_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000064_1.ldst",
"root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000068_1.ldst",
]
options.input_type = 'ROOT'
options.input_raw_format = 4.3
options.evt_max = 100
options.simulation = True
options.data_type = 'Upgrade'
options.dddb_tag = 'dddb-20171126'
options.conddb_tag = 'sim-20171127-vc-md100'
# options.output_file = 'hlt2_example.dst'
# options.output_type = 'ROOT'
options.ntuple_file = "eff_ntuple.root"
# needed to run over FTv2 data
from RecoConf.hlt1_tracking import default_ft_decoding_version
default_ft_decoding_version.global_bind(value=2)
# TODO stateProvider_with_simplified_geom must go away from option files
from RecoConf.global_tools import stateProvider_with_simplified_geom
with reconstruction.bind(from_file=False), make_charged_protoparticles.bind(
enable_muon_id=True):
run_moore_with_tuples(
options, decay, public_tools=[stateProvider_with_simplified_geom()])
# HltEfficiencyChecker "wizard" example for Hlt2 job
annotated_decay_descriptor:
#"${Bs}[B0 => ( J/psi(1S) => ${mup}mu+ ${mum}mu- ) ( K*(892)0 => ${Kp}K+ ${Km}pi- )]CC"
"${Bs}[B_s0 => ( J/psi(1S) => ${mup}mu+ ${mum}mu- ) ( phi(1020) => ${Kp}K+ ${Km}K- )]CC"
ntuple_path: &NTUPLE eff_ntuple.root
job:
trigger_level: 2
evt_max: 10000
input_type: ROOT
lines_from: Hlt2Conf.lines.InclusiveDetachedDilepton # Specify the import path to where the lines live
#lines_from: Hlt2Conf.lines.Bs2JpsiPhi # 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:
# HLT1-filtered
# Bs2JpsiPhi, 13144011
# sim+std://MC/Upgrade/Beam7000GeV-Upgrade-MagDown-Nu7.6-25ns-Pythia8/Sim09c-Up02/Reco-Up01/Trig0x52000000/13144011/LDST
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000001_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000002_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000003_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000004_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000005_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000006_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000007_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000064_1.ldst"
#- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00076706/0000/00076706_00000068_1.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000001_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000002_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000005_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000009_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000007_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000003_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000008_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000004_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000006_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000011_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000010_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000146_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000150_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000158_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000049_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000093_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000023_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000192_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000139_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000197_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000161_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000058_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000157_2.ldst"
- "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00102760/0000/00102760_00000181_2.ldst"
simulation: True
conddb_tag: 'sim-20171127-vc-md100'
dddb_tag: 'dddb-20171126'
input_raw_format: 4.3
ft_decoding_version: 2
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: mup,mum,Kp,pim
reconstructible_children: mup,mum,Kp,Km
# 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: "B^{0}_{s} #rightarrow J/#Psi#phi"
legend_header: "B^{0}_{s} #rightarrow J/#PsiK*"
make_plots: true
denoms: CanRecoChildrenAndChildPt
#AllEvents: total number of events that the trigger ran over.
#CanRecoChildren: all final state children left charged, long tracks within 2<η<5.
#CanRecoChildrenParentCut: in addition to CanRecoChildren, the decay parent is also required to have a true decay time greater than 0.2 ps, and a minimum pT of 2 GeV.
#CanRecoChildrenAndChildPt: in addition to CanRecoChildren, all final state children have pT>250 MeV.
###############################################################################
# (c) Copyright 2019-2020 CERN for the benefit of the LHCb Collaboration #
# #
# This software is distributed under the terms of the GNU General Public #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
from Moore import options
from Hlt2Conf.lines.InclusiveDetachedDilepton import all_lines
def make_lines():
return [builder() for builder in all_lines.values()]
options.lines_maker = make_lines
###############################################################################
# (c) Copyright 2019 CERN for the benefit of the LHCb Collaboration #
# #
# This software is distributed under the terms of the GNU General Public #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
from Moore import options
from HltEfficiencyChecker.config import run_moore_with_tuples
from RecoConf.reconstruction_objects import reconstruction
from RecoConf.protoparticles import make_charged_protoparticles
options.set_input_from_testfiledb('upgrade_minbias_hlt1_filtered')
options.input_raw_format = 4.3
options.evt_max = 1000
options.set_conds_from_testfiledb('upgrade_minbias_hlt1_filtered')
options.ntuple_file = "rate_ntuple.root"
from RecoConf.hlt1_tracking import default_ft_decoding_version
default_ft_decoding_version.global_bind(value=2)
# TODO stateProvider_with_simplified_geom must go away from option files
from RecoConf.global_tools import stateProvider_with_simplified_geom
with reconstruction.bind(from_file=False),\
make_charged_protoparticles.bind(enable_muon_id=True):
run_moore_with_tuples(
options, public_tools=[stateProvider_with_simplified_geom()])
# HltEfficiencyChecker "wizard" example for Hlt2 rates
ntuple_path: &NTUPLE rate_ntuple.root
job:
trigger_level: 2
evt_max: 2000
testfiledb_key: upgrade_minbias_hlt1_filtered
input_raw_format: 4.3
lines_from: Hlt2Conf.lines.InclusiveDetachedDilepton # Specify the import path to where the lines live
run_reconstruction: True
ft_decoding_version: 2
#
# Rates can only be calculated w.r.t min bias, but you can specify your own min bias files e.g.
#
# input_type: ROOT
# input_files:
# - "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00070317/0000/00070317_00000033_2.ldst"
# simulation: True
# conddb_tag: conddb-20301313
# dddb_tag: dddb-20301313
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_calculate_rates.py
args:
input: *NTUPLE
level: Hlt2
json: Hlt2_rates.json
#!/bin/bash
###############################################################################
# (c) Copyright 2020 CERN for the benefit of the LHCb Collaboration #
# #
# This software is distributed under the terms of the GNU General Public #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
#set -euxo pipefail
#default_dir=checker-hlt2-examples-$(date '+%Y%m%d-%H%M%S')
default_dir=check_hlt2incdilep
#dir=${1:-$default_dir}
#mkdir -p $dir
#cd $dir
# Efficiency
#~/stack/MooreAnalysis/run $HLTEFFICIENCYCHECKERROOT/scripts/hlt_eff_checker.py \
#$HLTEFFICIENCYCHECKERROOT/options/hlt2_eff_incdilep.yaml \
#-o check_hlt2 -s incdilep --force | tee check_hlt2incdilep_eff.log
~/stack/MooreAnalysis/run $HLTEFFICIENCYCHECKERROOT/scripts/hlt_eff_checker.py \
$HLTEFFICIENCYCHECKERROOT/options/hlt2_eff_incdilep_Phijpsimm_test.yaml \
-o check_hlt2 -s incdilep_jpsiphi_mm_test --force | tee check_hlt2incdilep_eff_jpsiphi_mm_test.log
#~/stack/MooreAnalysis/run $HLTEFFICIENCYCHECKERROOT/scripts/hlt_eff_checker.py \
#$HLTEFFICIENCYCHECKERROOT/options/hlt2_eff_incdilep_Phijpsimm.yaml \
#-o check_hlt2 -s incdilep_jpsiphi_mm --force | tee check_hlt2incdilep_eff_jpsiphi_mm.log
# Rates
# Rates
#~/stack/MooreAnalysis/run $HLTEFFICIENCYCHECKERROOT/scripts/hlt_eff_checker.py \
#$HLTEFFICIENCYCHECKERROOT/options/hlt2_rate_incdilep.yaml \
#| tee rate_results.log
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment