Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DaVinci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LHCb
DaVinci
Merge requests
!573
Resolve "Tupling test running on spruced output"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Tupling test running on spruced output"
6-tupling-test-running-on-spruced-output
into
master
Overview
79
Commits
25
Pipelines
24
Changes
9
Merged
Davide Fazzini
requested to merge
6-tupling-test-running-on-spruced-output
into
master
3 years ago
Overview
55
Commits
25
Pipelines
24
Changes
9
Expand
Closes
#6 (closed)
Edited
3 years ago
by
Davide Fazzini
1
0
Merge request reports
Compare
master
version 22
466b22ea
3 years ago
version 21
168ed7aa
3 years ago
version 20
3cc24dba
3 years ago
version 19
df6bf7f3
3 years ago
version 18
429603bf
3 years ago
version 17
737644f5
3 years ago
version 16
0843cd84
3 years ago
version 15
1137add6
3 years ago
version 14
844ad6cf
3 years ago
version 13
36d50663
3 years ago
version 12
2be3303c
3 years ago
version 11
a2a2bb56
3 years ago
version 10
cc136816
3 years ago
version 9
49bf4136
3 years ago
version 8
29e1fa31
3 years ago
version 7
ee3691f1
3 years ago
version 6
18a5d9e3
3 years ago
version 5
8f312c9e
3 years ago
version 4
36b39bd3
3 years ago
version 3
d34c5c0e
3 years ago
version 2
07b036e6
3 years ago
version 1
0033e504
3 years ago
master (base)
and
version 17
latest version
6b72647b
25 commits,
3 years ago
version 22
466b22ea
24 commits,
3 years ago
version 21
168ed7aa
23 commits,
3 years ago
version 20
3cc24dba
22 commits,
3 years ago
version 19
df6bf7f3
21 commits,
3 years ago
version 18
429603bf
19 commits,
3 years ago
version 17
737644f5
18 commits,
3 years ago
version 16
0843cd84
19 commits,
3 years ago
version 15
1137add6
18 commits,
3 years ago
version 14
844ad6cf
17 commits,
3 years ago
version 13
36d50663
16 commits,
3 years ago
version 12
2be3303c
15 commits,
3 years ago
version 11
a2a2bb56
14 commits,
3 years ago
version 10
cc136816
13 commits,
3 years ago
version 9
49bf4136
12 commits,
3 years ago
version 8
29e1fa31
10 commits,
3 years ago
version 7
ee3691f1
9 commits,
3 years ago
version 6
18a5d9e3
7 commits,
3 years ago
version 5
8f312c9e
5 commits,
3 years ago
version 4
36b39bd3
4 commits,
3 years ago
version 3
d34c5c0e
3 commits,
3 years ago
version 2
07b036e6
2 commits,
3 years ago
version 1
0033e504
1 commit,
3 years ago
9 files
+
452
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
DaVinciTests/tests/options/option_davinci_sprucing.py
0 → 100644
+
67
−
0
Options
###############################################################################
# (c) Copyright 2021 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. #
###############################################################################
"""
Read the output of an Sprucing job with the new DaVinci configuration.
"""
import
Functors
as
F
from
FunTuple
import
FunctorCollection
from
FunTuple
import
FunTuple_Particles
as
Funtuple
from
FunTuple.NewTupleTools
import
Kinematics
from
PyConf.application
import
make_data_with_FetchDataFromFile
bd2dsk_line
=
make_data_with_FetchDataFromFile
(
"
/Event/Spruce/SpruceB2OC_BdToDsmK_DsmToHHH_FEST_Line/Particles
"
)
branches
=
{
'
B0
'
:
"
[B0 -> D_s- K+]CC
"
,
'
Ds
'
:
"
[B0 -> ^D_s- K+]CC
"
,
'
Kp
'
:
"
[B0 -> D_s- ^K+]CC
"
}
variables_B0
=
FunctorCollection
({
'
LOKI_MAXPT
'
:
'
TRACK_MAX_PT
'
,
'
LOKI_Muonp_PT
'
:
'
CHILD(PT, 1)
'
,
'
LOKI_Muonm_PT
'
:
'
CHILD(PT, 2)
'
,
})
variables_extra
=
FunctorCollection
({
'
LOKI_NTRCKS_ABV_THRSHLD
'
:
'
NINTREE(ISBASIC & (PT > 15*MeV))
'
})
variables_B0
+=
variables_extra
#FunTuple: make functor collection from the imported functor library Kinematics
variables_all
=
FunctorCollection
(
Kinematics
)
#FunTuple: associate functor collections to branch name
variables
=
{
'
ALL
'
:
variables_all
,
#adds variables to all branches
'
B0
'
:
variables_B0
,
'
Ds
'
:
variables_extra
,
'
Kp
'
:
variables_extra
}
loki_preamble
=
[
'
TRACK_MAX_PT = MAXTREE(ISBASIC & HASTRACK, PT, -1)
'
]
tuple_B0DsK
=
Funtuple
(
name
=
"
B0DsK_Tuple
"
,
tree_name
=
"
DecayTree
"
,
branches
=
branches
,
variables
=
variables
,
loki_preamble
=
loki_preamble
,
inputs
=
bd2dsk_line
)
def
main
():
tools
=
[]
algs
=
[
tuple_B0DsK
]
return
algs
,
tools
Loading